== Fibers and Fields exercise == [[TableOfContents(3)]] === Description === * An automated script that runs this tutorial is included in the Continuity installation: `examples\mesh11\fieldsAndFibers.py`. To run it, click [:Continuity/Documentation/Help/ReadPythonScript:File→Scripts→Read script→Python or session script] === Setup and render mesh === * Launch the Continuity Client * [:Continuity/Documentation/Help/MeshEditCoordinates:Mesh→Edit→Coordinates...] * Select '''prolate spheriodal''' in the {{{Global Coordinates:}}} pop-up menu * Enter '''3.75''' next to the {{{Focus Position}}} field * Click '''OK''' to submit {{{Coordinate Form}}} * [:Continuity/Documentation/Help/MeshEditBasis:Mesh→Edit→Basis...] * Choose '''Hermite Basis Function→3D→Linear-Cubic-Cubic''' * Click '''Add Linear-Cubic-Cubic''' * Choose '''Lagrange Basis Function→3D→Linear-Linear-Linear''' * Click '''Add Linear-Linear-Linear''' * Verify that the list of basis functions now contains: * Linear-Cubic-Cubic Hermite 3*3*3 * Linear-Cubic Hermite 3*3 * Cubic-Cubic Hermite 3*3 * Cubic-Linear Hermite 3*3 * Linear-Linear-Linear Lagrange 3*3*3 * Linear-Linear Lagrange 3*3 * Click '''OK''' to submit {{{Basis Form}}} * [:Continuity/Documentation/Help/MeshEditNodes:Mesh→Edit→Nodes...] * Click '''Import/Export/Graph''' button to open [:Continuity/Documentation/Help/TableManager:Continuity Table Manager] * [:Continuity/Documentation/Help/TableManager#FileMenu:Continuity Table Manager→File→Open...] * Select tab-delimited nodes file ( attachment:nodes.xls ) * [:Continuity/Documentation/Help/TableManager#FileMenu:Continuity Table Manager→File→Close and update form] * You should now have nodes numbered 1-8 in the list * In the {{{Node Form}}} under {{{Dervatives with respect to}}}, select the '''Angle Changes''' radio button * Select '''Linear-Cubic-Cubic''' under {{{Coordinate 1}}}, {{{Coordinate 2}}}, and {{{Coordinate 3}}} * Click on the {{{Fiber Angles}}} tab * Select '''Linear-Linear-Linear''' under {{{Fiber Angle}}}, {{{Transverse Angle}}}, and {{{Sheet Angle}}} * Click on the {{{Field Vector 1}}} tab * Select '''Linear-Linear-Linear''' under {{{Field Variable 1}}} * Click '''OK''' to submit {{{Node Form}}} * [:Continuity/Documentation/Help/MeshEditElements:Mesh→Edit→Elements...] * Click '''Import/Export''' button to open [:Continuity/Documentation/Help/TableManager:Continuity Table Manager] * [:Continuity/Documentation/Help/TableManager#FileMenu:Continuity Table Manager→File→Open...] * Select tab-delimited elemsents file ( attachment:elems.xls ) * [:Continuity/Documentation/Help/TableManager#FileMenu:Continuity Table Manager→File→Close and update form] * You should now have 3 elements in the list * Click '''OK''' to submit {{{Element Form}}} * [:Continuity/Documentation/Help/MeshRenderNodes:Mesh→Render→Nodes...] * [:Continuity/Documentation/Help/MeshRenderElements:Mesh→Render→Elements...] * Click the '''lines''' radio button * Click '''Render''' * The mesh should now look similar to the following screenshot attachment:mesh8-1.png * [:Continuity/Documentation/Help/ViewShowOpenMesh:View→Show Open Mesh...] * Click on '''elements lines2''' in the list on the left * Click on the {{{Colors}}} tab * Change the {{{R,G,B}}} color field to '''1.0, 0.0, 0.0''' to change the color to the brightest red and hit '''Enter''' * [:Continuity/Documentation/Help/MeshEditMaterialCoordinates:Mesh→Edit→Material Coordinates...] * Click on the {{{OK}}} Button * [:Continuity/Documentation/Help/FileSend:File→Send] * [:Continuity/Documentation/Help/MeshRenderFibers:Mesh→Render→Fibers...] * For the {{{Xi3 Locations}}} field, enter '''0.0,0.5,1.0''' * Click '''OK''' * [:Continuity/Documentation/Help/MeshRenderFields:Mesh→Render→Fields...] * Select '''3''' for {{{At Xi}}} * Enter '''0.0''' for the {{{Location}}} field * Click '''Render''' * The mesh shoud now look similar to the following screenshot attachment:mesh8-2.png * [:Continuity/Documentation/Help/MeshRenderFields:Mesh→Render→Fields...] * Select '''3''' for {{{At Xi}}} * Enter '''1.0''' for the {{{Location}}} field * Click '''Render''' * The mesh should look similar to the following screenshort. You can change the size of the fibers from View→Show Open Mesh→material axes→Properties tab→Scale, increase it to around 200, or as desired attachment:mesh8-3.png === Pre-built model === This cont6 file contains all data and parameters for this problem: attachment:mesh8.cont6 [[BR]] . '''Warning: Render Fields does not always work correctly with the !DejaVu renderer on laptops. If this is the case, try using the !OpenMesh renderer.'''