FreeCAD-Doc/localwiki/Aeroplane.html
2018-07-08 12:11:49 -05:00

138 lines
13 KiB
HTML

<html><head><title>Aeroplane</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Aeroplane</h1></div>
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><table class="fcinfobox wikitable ct" style="width: 230px; float: right; margin-left: 1em">
<tr>
<td class="ctTitle">
<h3><span class="mw-headline" id="Tutorial"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Base_ExampleCommandModel.png" class="image"><img alt="Base ExampleCommandModel.png" src="32px-Base_ExampleCommandModel.png" width="32" height="30" srcset="/wiki/images/thumb/9/93/Base_ExampleCommandModel.png/48px-Base_ExampleCommandModel.png 1.5x, /wiki/images/9/93/Base_ExampleCommandModel.png 2x" /></a> Tutorial</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Topic
</th></tr>
<tr>
<td class="ctEven">Part Workbench
</td></tr>
<tr>
<th class="ctOdd">Level
</th></tr>
<tr>
<td class="ctEven">Beginner
</td></tr>
<tr>
<th class="ctOdd">Time to complete
</th></tr>
<tr>
<td class="ctEven">10 minutes
</td></tr>
<tr>
<th class="ctOdd">Author
</th></tr>
<tr>
<td class="ctEven">
</td></tr>
<tr>
<th class="ctOdd">FreeCAD version
</th></tr>
<tr>
<td class="ctEven">
</td></tr>
<tr>
<th class="ctOdd">Example File(s)
</th></tr>
<tr>
<td class="ctEven">
</td></tr>
<tr>
<td class="ctToc"><br /><div id="toc" class="toc"><div class="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1"><a href="#Tutorial"><span class="tocnumber">1</span> <span class="toctext">Tutorial</span></a></li>
<li class="toclevel-1 tocsection-1"><a href="#First_Steps"><span class="tocnumber">2</span> <span class="toctext">First Steps</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="#Second_Steps"><span class="tocnumber">3</span> <span class="toctext">Second Steps</span></a></li>
<li class="toclevel-1 tocsection-3"><a href="#Rotations"><span class="tocnumber">4</span> <span class="toctext">Rotations</span></a></li>
</ul>
</div>
</td></tr></table>
<p><br />
</p><p><br />
</p>
<h2><span class="mw-headline" id="First_Steps">First Steps</span></h2>
<p>We will be working in the <a href="Part_Workbench.html" class="mw-redirect" title="Part Workbench">Part Workbench</a> - select it from menus via View-&gt;Workbench-&gt;Part or from the Workbench selector.
</p>
<ul><li> Create a new empty document.</li>
<li> Switch to Axonometric View.</li>
<li> Toggle axis cross ON (via View Menu).</li>
<li> Ensure you have the Combo View showing (via View-&gt;Views).</li></ul>
<ul><li> Create a cylinder by clicking on the <a href="https://www.freecadweb.org/wiki/index.php?title=File:Part_Cylinder.png" class="image"><img alt="Part Cylinder.png" src="32px-Part_Cylinder.png" width="32" height="32" srcset="/wiki/images/thumb/d/d4/Part_Cylinder.png/48px-Part_Cylinder.png 1.5x, /wiki/images/d/d4/Part_Cylinder.png 2x" /></a> <a href="Part_Cylinder.html" title="Part Cylinder">Cylinder</a> button.</li>
<li> Select it by clicking on Cylinder in the Project viewer.</li>
<li> Click on the Data tab at the bottom of the Project viewer.</li></ul>
<p>Change the Height to 20mm. Leave the Radius at 2mm.
</p><p>Click on <a href="Tasks_Placement.html" title="Tasks Placement">Placement</a> (note the little [+]) and a button with three dots will appear. Click on it. (You can also select: Menu-&gt;Edit-&gt;Placement.) The Tasks viewer appears.
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:HTCaeroplane01.png" class="image"><img alt="HTCaeroplane01.png" src="300px-HTCaeroplane01.png" width="300" height="385" srcset="/wiki/images/thumb/8/8f/HTCaeroplane01.png/450px-HTCaeroplane01.png 1.5x, /wiki/images/8/8f/HTCaeroplane01.png 2x" /></a>
</p><p>If you are unfamiliar with the XYZ axes then have a play with the numbers in the Translation box. When finished playing click on the Reset button.
</p>
<h2><span class="mw-headline" id="Second_Steps">Second Steps</span></h2>
<div class="floatright"><a href="https://www.freecadweb.org/wiki/index.php?title=File:HTCaeroplane02.png" class="image"><img alt="HTCaeroplane02.png" src="400px-HTCaeroplane02.png" width="400" height="283" srcset="/wiki/images/thumb/8/8a/HTCaeroplane02.png/600px-HTCaeroplane02.png 1.5x, /wiki/images/8/8a/HTCaeroplane02.png 2x" /></a></div>
<p>We are now going to rotate the cylinder so that it is lying along the X axis. To do this it needs to be rotated around the Y axis. The Rotation box should say 'Rotation axis with angle' so change the Axis to Y and increment the Angle until it reaches 90. Click on OK.
</p><p>I like to play with rotating the view at this point (and often!) so by all means do so. You should find the 'seam' of the cylinder on the underside.
</p><p><br style="clear:both" />
</p>
<div class="floatright"><a href="https://www.freecadweb.org/wiki/index.php?title=File:HTCaeroplane03.png" class="image"><img alt="HTCaeroplane03.png" src="400px-HTCaeroplane03.png" width="400" height="263" srcset="/wiki/images/thumb/c/cd/HTCaeroplane03.png/600px-HTCaeroplane03.png 1.5x, /wiki/images/c/cd/HTCaeroplane03.png 2x" /></a></div>
<p>We are now going to add and modify a box so click on the <a href="https://www.freecadweb.org/wiki/index.php?title=File:Part_Box.png" class="image"><img alt="Part Box.png" src="32px-Part_Box.png" width="32" height="32" srcset="/wiki/images/thumb/a/a5/Part_Box.png/48px-Part_Box.png 1.5x, /wiki/images/a/a5/Part_Box.png 2x" /></a> <a href="Part_Box.html" title="Part Box">Box</a> button. Select it by clicking on Box in the Project viewer.
Change the Height to 1mm, the Length to 5mm and the Width to 20mm.
</p><p>Click on <a href="Tasks_Placement.html" title="Tasks Placement">Placement and the three dots</a> to get the Tasks viewer. Using the Translation box enter Y: -10 and Z: -1. Click on OK
</p><p>We are now going to merge these two shapes together with a Boolean Operation. Click on the <a href="https://www.freecadweb.org/wiki/index.php?title=File:Part_Booleans.png" class="image"><img alt="Part Booleans.png" src="32px-Part_Booleans.png" width="32" height="32" srcset="/wiki/images/thumb/8/89/Part_Booleans.png/48px-Part_Booleans.png 1.5x, /wiki/images/8/89/Part_Booleans.png 2x" /></a> <a href="Part_Booleans.html" title="Part Booleans">Booleans</a> button and the Tasks viewer will display the Boolean Operation selector.
</p><p>Make sure Union is selected, and that the Cylinder and the Box are each ticked once in the two shape lists. Click on Apply. Click on Close. You now have a single object called Fusion.
</p><p><br style="clear:both" />
</p><p>Let's add one more box to finish off our model. Create a Box, Select it and change its Height to 5mm, Length to 3mm and Width to 1mm. Change its Placement by Y: -0.5.
</p><p>We now need to join our Fusion to Box001 so we'll do it the quick way. Click on Fusion in the Project viewer and CTRL-click on Box001. This selects both parts together. Now click on the <a href="https://www.freecadweb.org/wiki/index.php?title=File:Part_Fuse.png" class="image"><img alt="Part Fuse.png" src="32px-Part_Fuse.png" width="32" height="32" srcset="/wiki/images/thumb/c/c6/Part_Fuse.png/48px-Part_Fuse.png 1.5x, /wiki/images/c/c6/Part_Fuse.png 2x" /></a> <a href="Part_Union.html" title="Part Union">Union</a> button to get Fusion001.
</p><p>You should now have a simple aeroplane model. Right-click on Fusion001 and Rename it 'Aeroplane'.
</p>
<div class="floatright"><a href="https://www.freecadweb.org/wiki/index.php?title=File:HTCaeroplane04.png" class="image"><img alt="HTCaeroplane04.png" src="500px-HTCaeroplane04.png" width="500" height="237" srcset="/wiki/images/thumb/d/d1/HTCaeroplane04.png/750px-HTCaeroplane04.png 1.5x, /wiki/images/d/d1/HTCaeroplane04.png 2x" /></a></div>
<p>I think the wings need to be moved forward a bit but if I select Aeroplane and try changing its Placement X Translation the whole thing moves. I only want to move the wings so cancel the Placement.
</p><p>Expand Aeroplane (click on the [+] beside it) and expand Fusion.
</p><p>Click on Box and get its <a href="Tasks_Placement.html" title="Tasks Placement">Placement into Tasks</a>. Notice it already has Y: -10 and Z: -1 in the Translation. Change the X translation to 3 and click on Apply. That's better. Click OK.
</p><p><br style="clear:both" />
</p>
<h2><span class="mw-headline" id="Rotations">Rotations</span></h2>
<p>Click on Aeroplane and get its <a href="Tasks_Placement.html" title="Tasks Placement">Placement into Tasks</a> (Other explanation on <a href="Placement.html" title="Placement">Placement</a>). In the Rotation section change where it says 'Rotation axis with angle' to 'Euler angles' because they're a lot easier to work with.
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Tache_Placement_Lacet_fr_Mini.gif" class="image"><img alt="Tache Placement Lacet fr Mini.gif" src="Tache_Placement_Lacet_fr_Mini.gif" width="450" height="325" /></a></div><b>Yaw</b> is the rotation about the <b>Z axis</b>, that is to say a rotation from left to right. (The yaw angle is the <b>Psi ψ</b>).
<div style="clear:both"></div>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Tache_Placement_Tangage_fr_Mini.gif" class="image"><img alt="Tache Placement Tangage fr Mini.gif" src="Tache_Placement_Tangage_fr_Mini.gif" width="445" height="355" /></a></div><b>Pitch</b> is rotation about the <b>Y axis</b>, that is to say nose-up and nose-down. (The Pitch angle is the Phi φ).
<div style="clear:both"></div>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Tache_Placement_Roulis_fr_Mini.gif" class="image"><img alt="Tache Placement Roulis fr Mini.gif" src="Tache_Placement_Roulis_fr_Mini.gif" width="445" height="355" /></a></div><b>Roll</b> is rotation about the <b>X axis</b>, that is to say wing up and down. (The Roll angle is the Thêta θ).
<p><br />
</p>
<div style="clear:both"></div>
<p><br />
However, even here there are some important things to remember:
</p>
<ul><li> Positive Rotations are clockwise when viewed from the Origin outwards along a positive axis. Or to put it another way: Positive Rotations are anticlockwise when viewed from a positive axis towards the Origin.</li></ul>
<ul><li> Although the three labels are Yaw, Pitch and Roll that's not really what they are. Yaw, Pitch and Roll are references to the <i>body coordinates</i> of an object in 3D space. The labels should be Heading, Elevation and Bank or even Azimuth, Inclination and Bank because thay actually refer to the <i>space coordinates</i> of the 3D system. These are the <b>Tait-Bryan angles</b>. If you want more information then try <a rel="nofollow" class="external text" href="http://en.wikipedia.org/wiki/Euler_angles#Tait-Bryan_angles">Euler Angles</a>.</li></ul>
<ul><li> With the Aeroplane in its present position simple rules apply. Yaw is rotation around the Z axis, ie left and right. Pitch is rotation around the Y axis, ie nose up and down. Roll is rotation around the X axis, ie wings up and down. That's fine to start with but it's not going to be true later!</li></ul>
<p>Have a play with the three YPR numbers. You only need to change things by a few degrees to get the idea. Reset when you finished.
</p><p>Now we're going to see why the Yaw-Pitch-Roll labels are not really suitable. Change the Roll number to 90°. Yaw should move the nose of the aeroplane up and down and Pitch should move it side to side <i>as viewed from outside the aeroplane</i> which is where we are. Do they? No they don't! Pitch changes the yaw and Yaw changes the pitch. OK, Reset.
</p><p>So, a better way of thinking about rotations is that Yaw changes your Longitude, Pitch changes your Latitude and Roll changes the direction (NSEW) that you're facing. Or you could check out <a rel="nofollow" class="external text" href="http://en.wikipedia.org/wiki/Axes_conventions">Axes conventions</a> for other descriptions.
</p><p>Right, back to work. Change Yaw to 45° and Pitch to -30°. Click on OK to show that the operation has been completed. Now get back the <a href="Tasks_Placement.html" title="Tasks Placement">Placement Task</a> and look at the Rotation box. It has reverted to 'Rotation axis with angle' and has some wierd numbers Axis and Angle boxes. Mine had Axis: (0.219493,-0.529904,0.819161) and Angle: 53.65°. The three numbers in brackets are the XYZ components of a unit vector in the 3D space. It is the axis about which our original Aeroplane was rotated to get our final Aeroplane. The angle is how much it was rotated. Clever, huh, but not very friendly! It was Euler who showed that you could combine a series of XYZ rotations into one rotation about one axis.
</p><p>Here's some more suggestions for playing with the Aeroplane:
</p>
<ul><li> Change the Z Location (and Apply) then change the YPR numbers and see what the effect is. Then try changing the X and Y Locations and rotating.</li>
<li> Change the X Centre (and Apply) then change the YPR numbers and see what the effect is. Then try changing the Y and Z Centres and rotating.</li></ul>
<p>I hope this little tutorial has helped you to get a feel for rotations.
</p><p><br />
</p>
</div>
</div>
</div><div class="printfooter">
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Aeroplane&amp;oldid=211693">http://www.freecadweb.org/wiki/index.php?title=Aeroplane&amp;oldid=211693</a>"</div>
<div id="catlinks" class="catlinks" data-mw="interface"></div><div class="visualClear"></div>
</div>
</div>
<div id="mw-navigation">
<h2>Navigation menu</h2>
</body></html>