How to draw this modified bent tube using tikzpicture environment

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












Please consider this MWE:



documentclassarticle

usepackagetikz
usetikzlibraryshapes.geometric

begindocument
begintikzpicture
node (C) [cylinder,rotate=180,draw,minimum height=4cm,minimum width=1.5cm] ;
draw [thick,->] ([xshift=-20pt]C.top) -- ([xshift=-80pt]C.bottom) node ;
draw [thick] ([xshift=-80pt]C.bottom) -- ([xshift=-30pt]C.bottom) node ;
endtikzpicture
enddocument


Actual tube



With your help, I want to draw:



What I want



Thanks!










share|improve this question

























    up vote
    1
    down vote

    favorite












    Please consider this MWE:



    documentclassarticle

    usepackagetikz
    usetikzlibraryshapes.geometric

    begindocument
    begintikzpicture
    node (C) [cylinder,rotate=180,draw,minimum height=4cm,minimum width=1.5cm] ;
    draw [thick,->] ([xshift=-20pt]C.top) -- ([xshift=-80pt]C.bottom) node ;
    draw [thick] ([xshift=-80pt]C.bottom) -- ([xshift=-30pt]C.bottom) node ;
    endtikzpicture
    enddocument


    Actual tube



    With your help, I want to draw:



    What I want



    Thanks!










    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Please consider this MWE:



      documentclassarticle

      usepackagetikz
      usetikzlibraryshapes.geometric

      begindocument
      begintikzpicture
      node (C) [cylinder,rotate=180,draw,minimum height=4cm,minimum width=1.5cm] ;
      draw [thick,->] ([xshift=-20pt]C.top) -- ([xshift=-80pt]C.bottom) node ;
      draw [thick] ([xshift=-80pt]C.bottom) -- ([xshift=-30pt]C.bottom) node ;
      endtikzpicture
      enddocument


      Actual tube



      With your help, I want to draw:



      What I want



      Thanks!










      share|improve this question













      Please consider this MWE:



      documentclassarticle

      usepackagetikz
      usetikzlibraryshapes.geometric

      begindocument
      begintikzpicture
      node (C) [cylinder,rotate=180,draw,minimum height=4cm,minimum width=1.5cm] ;
      draw [thick,->] ([xshift=-20pt]C.top) -- ([xshift=-80pt]C.bottom) node ;
      draw [thick] ([xshift=-80pt]C.bottom) -- ([xshift=-30pt]C.bottom) node ;
      endtikzpicture
      enddocument


      Actual tube



      With your help, I want to draw:



      What I want



      Thanks!







      tikz-pgf tikz-shape






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 days ago









      manooooh

      635212




      635212




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          4
          down vote



          accepted










          This is so simple that even marmots can do it. (EDIT: compute the scattering angle.)



          documentclassarticle

          usepackagetikz
          usetikzlibraryshapes.geometric,intersections,decorations.markings,angles,calc

          begindocument
          begintikzpicture[thick,font=sffamily]
          node[ellipse,draw,inner sep=0pt,minimum height=1.5cm,minimum width=4mm]
          (L);
          draw[name path=tube] (L.north) -- ++ (3,0) coordinate (A) node[above] A
          -- ++ (-40:2) coordinate (B) node[right] B
          -- ++ (-80:3)
          [rotate=10]arc(0:-180:0.75 and 0.2)[rotate=0] -- ++(110:2) to[out=90,in=0] ++ (-0.5,0.5)
          --(L.south);
          draw[dashed] (A) to[out=0,in=110,looseness=1.3] (B);
          path[name path=test ray] (L.center) -- ++ (4.5,0);
          draw[ultra thick,-latex,name intersections=of=tube and test ray,
          postaction=decorate,decoration=markings,
          mark=at position 2.5cm with draw[-latex] (-5pt,0) -- (0,0);]
          let p1=($(intersection-1)-(A)$),n1=2*atan2(y1,x1) in
          ([xshift=-4mm]L.center) -- (intersection-1) -- ++ (n1:2.5);
          draw[dashed,very thick,blue] (intersection-1) -- ($(intersection-1)!3!90:(B) $)
          coordinate (x3);
          draw[dashed,very thick,red] (intersection-1) -- ($(intersection-1)!0.5cm!(B)$)
          coordinate (x4);
          draw pic[draw=purple,angle radius=5mm] angle=x4--intersection-1--x3;
          draw pic[draw=black,angle radius=5mm,pic text=$theta$,
          angle eccentricity=1.3] angle=A--intersection-1--L;
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer


















          • 2




            Marmots are everywhere with nice answers! <3
            – manooooh
            2 days ago










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "85"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f454184%2fhow-to-draw-this-modified-bent-tube-using-tikzpicture-environment%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          4
          down vote



          accepted










          This is so simple that even marmots can do it. (EDIT: compute the scattering angle.)



          documentclassarticle

          usepackagetikz
          usetikzlibraryshapes.geometric,intersections,decorations.markings,angles,calc

          begindocument
          begintikzpicture[thick,font=sffamily]
          node[ellipse,draw,inner sep=0pt,minimum height=1.5cm,minimum width=4mm]
          (L);
          draw[name path=tube] (L.north) -- ++ (3,0) coordinate (A) node[above] A
          -- ++ (-40:2) coordinate (B) node[right] B
          -- ++ (-80:3)
          [rotate=10]arc(0:-180:0.75 and 0.2)[rotate=0] -- ++(110:2) to[out=90,in=0] ++ (-0.5,0.5)
          --(L.south);
          draw[dashed] (A) to[out=0,in=110,looseness=1.3] (B);
          path[name path=test ray] (L.center) -- ++ (4.5,0);
          draw[ultra thick,-latex,name intersections=of=tube and test ray,
          postaction=decorate,decoration=markings,
          mark=at position 2.5cm with draw[-latex] (-5pt,0) -- (0,0);]
          let p1=($(intersection-1)-(A)$),n1=2*atan2(y1,x1) in
          ([xshift=-4mm]L.center) -- (intersection-1) -- ++ (n1:2.5);
          draw[dashed,very thick,blue] (intersection-1) -- ($(intersection-1)!3!90:(B) $)
          coordinate (x3);
          draw[dashed,very thick,red] (intersection-1) -- ($(intersection-1)!0.5cm!(B)$)
          coordinate (x4);
          draw pic[draw=purple,angle radius=5mm] angle=x4--intersection-1--x3;
          draw pic[draw=black,angle radius=5mm,pic text=$theta$,
          angle eccentricity=1.3] angle=A--intersection-1--L;
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer


















          • 2




            Marmots are everywhere with nice answers! <3
            – manooooh
            2 days ago














          up vote
          4
          down vote



          accepted










          This is so simple that even marmots can do it. (EDIT: compute the scattering angle.)



          documentclassarticle

          usepackagetikz
          usetikzlibraryshapes.geometric,intersections,decorations.markings,angles,calc

          begindocument
          begintikzpicture[thick,font=sffamily]
          node[ellipse,draw,inner sep=0pt,minimum height=1.5cm,minimum width=4mm]
          (L);
          draw[name path=tube] (L.north) -- ++ (3,0) coordinate (A) node[above] A
          -- ++ (-40:2) coordinate (B) node[right] B
          -- ++ (-80:3)
          [rotate=10]arc(0:-180:0.75 and 0.2)[rotate=0] -- ++(110:2) to[out=90,in=0] ++ (-0.5,0.5)
          --(L.south);
          draw[dashed] (A) to[out=0,in=110,looseness=1.3] (B);
          path[name path=test ray] (L.center) -- ++ (4.5,0);
          draw[ultra thick,-latex,name intersections=of=tube and test ray,
          postaction=decorate,decoration=markings,
          mark=at position 2.5cm with draw[-latex] (-5pt,0) -- (0,0);]
          let p1=($(intersection-1)-(A)$),n1=2*atan2(y1,x1) in
          ([xshift=-4mm]L.center) -- (intersection-1) -- ++ (n1:2.5);
          draw[dashed,very thick,blue] (intersection-1) -- ($(intersection-1)!3!90:(B) $)
          coordinate (x3);
          draw[dashed,very thick,red] (intersection-1) -- ($(intersection-1)!0.5cm!(B)$)
          coordinate (x4);
          draw pic[draw=purple,angle radius=5mm] angle=x4--intersection-1--x3;
          draw pic[draw=black,angle radius=5mm,pic text=$theta$,
          angle eccentricity=1.3] angle=A--intersection-1--L;
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer


















          • 2




            Marmots are everywhere with nice answers! <3
            – manooooh
            2 days ago












          up vote
          4
          down vote



          accepted







          up vote
          4
          down vote



          accepted






          This is so simple that even marmots can do it. (EDIT: compute the scattering angle.)



          documentclassarticle

          usepackagetikz
          usetikzlibraryshapes.geometric,intersections,decorations.markings,angles,calc

          begindocument
          begintikzpicture[thick,font=sffamily]
          node[ellipse,draw,inner sep=0pt,minimum height=1.5cm,minimum width=4mm]
          (L);
          draw[name path=tube] (L.north) -- ++ (3,0) coordinate (A) node[above] A
          -- ++ (-40:2) coordinate (B) node[right] B
          -- ++ (-80:3)
          [rotate=10]arc(0:-180:0.75 and 0.2)[rotate=0] -- ++(110:2) to[out=90,in=0] ++ (-0.5,0.5)
          --(L.south);
          draw[dashed] (A) to[out=0,in=110,looseness=1.3] (B);
          path[name path=test ray] (L.center) -- ++ (4.5,0);
          draw[ultra thick,-latex,name intersections=of=tube and test ray,
          postaction=decorate,decoration=markings,
          mark=at position 2.5cm with draw[-latex] (-5pt,0) -- (0,0);]
          let p1=($(intersection-1)-(A)$),n1=2*atan2(y1,x1) in
          ([xshift=-4mm]L.center) -- (intersection-1) -- ++ (n1:2.5);
          draw[dashed,very thick,blue] (intersection-1) -- ($(intersection-1)!3!90:(B) $)
          coordinate (x3);
          draw[dashed,very thick,red] (intersection-1) -- ($(intersection-1)!0.5cm!(B)$)
          coordinate (x4);
          draw pic[draw=purple,angle radius=5mm] angle=x4--intersection-1--x3;
          draw pic[draw=black,angle radius=5mm,pic text=$theta$,
          angle eccentricity=1.3] angle=A--intersection-1--L;
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer














          This is so simple that even marmots can do it. (EDIT: compute the scattering angle.)



          documentclassarticle

          usepackagetikz
          usetikzlibraryshapes.geometric,intersections,decorations.markings,angles,calc

          begindocument
          begintikzpicture[thick,font=sffamily]
          node[ellipse,draw,inner sep=0pt,minimum height=1.5cm,minimum width=4mm]
          (L);
          draw[name path=tube] (L.north) -- ++ (3,0) coordinate (A) node[above] A
          -- ++ (-40:2) coordinate (B) node[right] B
          -- ++ (-80:3)
          [rotate=10]arc(0:-180:0.75 and 0.2)[rotate=0] -- ++(110:2) to[out=90,in=0] ++ (-0.5,0.5)
          --(L.south);
          draw[dashed] (A) to[out=0,in=110,looseness=1.3] (B);
          path[name path=test ray] (L.center) -- ++ (4.5,0);
          draw[ultra thick,-latex,name intersections=of=tube and test ray,
          postaction=decorate,decoration=markings,
          mark=at position 2.5cm with draw[-latex] (-5pt,0) -- (0,0);]
          let p1=($(intersection-1)-(A)$),n1=2*atan2(y1,x1) in
          ([xshift=-4mm]L.center) -- (intersection-1) -- ++ (n1:2.5);
          draw[dashed,very thick,blue] (intersection-1) -- ($(intersection-1)!3!90:(B) $)
          coordinate (x3);
          draw[dashed,very thick,red] (intersection-1) -- ($(intersection-1)!0.5cm!(B)$)
          coordinate (x4);
          draw pic[draw=purple,angle radius=5mm] angle=x4--intersection-1--x3;
          draw pic[draw=black,angle radius=5mm,pic text=$theta$,
          angle eccentricity=1.3] angle=A--intersection-1--L;
          endtikzpicture
          enddocument


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 days ago

























          answered 2 days ago









          marmot

          63.8k468137




          63.8k468137







          • 2




            Marmots are everywhere with nice answers! <3
            – manooooh
            2 days ago












          • 2




            Marmots are everywhere with nice answers! <3
            – manooooh
            2 days ago







          2




          2




          Marmots are everywhere with nice answers! <3
          – manooooh
          2 days ago




          Marmots are everywhere with nice answers! <3
          – manooooh
          2 days ago

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f454184%2fhow-to-draw-this-modified-bent-tube-using-tikzpicture-environment%23new-answer', 'question_page');

          );

          Post as a guest













































































          DnZVEqCz4x3,bDt 6WzAqMLtChT2lpi5vqZD414 PPHD,XnazhfAtIBMbZWrA
          SB2,E0KpERE3JsW7FFP

          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          How many registers does an x86_64 CPU actually have?

          Displaying single band from multi-band raster using QGIS