Difference between revisions of "FEA Mesh Generation Commands"
m (→Notes) |
|||
Line 87: | Line 87: | ||
* [[Path Command#XML Path Command|<tt><Path></tt>]]: Define a path used in defining [[Area Command#XML Area Block|areas]]. | * [[Path Command#XML Path Command|<tt><Path></tt>]]: Define a path used in defining [[Area Command#XML Area Block|areas]]. | ||
* [[Keypoint Command#XML Keypoints Block|<tt><Keypoints></tt>]]: Define a key point used in defining [[Path Command|paths]] | * [[Keypoint Command#XML Keypoints Block|<tt><Keypoints></tt>]]: Define a key point used in defining [[Path Command|paths]] | ||
== Using Images and Shapes == | |||
If some elements in the generate mesh are set to <tt>mat=0</tt>, you can follow mesh creation with [[Create a Mesh with Images and Shapes|image and shape commands]] to fill in material types, angles, and define the final mesh geometry. This option is described [[Create a Mesh with Images and Shapes|here]]. | |||
== Notes == | == Notes == | ||
# Once the mesh is created, an optional method to create complicated meshes is to define the materials, angles, and final geometry using [[Create a Mesh with Images and Shapes|images and shapes]]. This meshing method is described [[Create a Mesh with Images and Shapes|elsewhere]]. | # Once the mesh is created, an optional method to create complicated meshes is to define the materials, angles, and final geometry using [[Create a Mesh with Images and Shapes|images and shapes]]. This meshing method is described [[Create a Mesh with Images and Shapes|elsewhere]]. |
Revision as of 19:50, 10 September 2013
The best way to generate an FEA mesh is to use Keypoint, Path, and Area commands. Advanced mesh generation can be done with image files and shape commands.
Scripted Input Files
In scripted input files, you build the mesh by using multiple mesh generation commands. These commands are usually grouped together, but may be at various locations in the input file. For example, a simple 2D, rectangular mesh of width #length, height #height, and thickness #thick with #horiz elements in the horizontal direction and #vert elements in the vertical direction (where terms beginning in number signs are script variables) can be created with:
Area #matname$,#thick Path "Bottom",#horiz Keypoint "BotLeft",0,0 Keypoint "BotRight",#length,0 EndPath Path "Right",#vert Keypoints "BotRight" Keypoint "TopRight",#length,#height EndPath Path "Top",#horiz Keypoints "TopRight" Keypoint "TopLeft",0,#height EndPath Path "Left",#vert Keypoints "TopLeft","BotRIght" EndPath EndArea Resequence "BotRight"
Basic Commands
The fundamental commands for generating a mesh are
- Area: Define an area for mesh generation.
- Path: Define a path used in defining areas.
- Paths: Add multiple defined paths to an area.
- Keypoint: Define a keypoint used in defining paths
- Keypoints: Add multiple defined keypoints to a path.
Mesh Attribute Commands
- <a href="Origin.html">Origin</a>: Define coordinate system origin for entry of <a href="keypoint.html">Keypoints</a> using polar coordinates.
- <a href="element.html">Element</a>: Define type of element to use in the mesh.
- <a href="fliptriangles.html">FlipTriangles</a>: Select the direction of triangular elements in meshes that use those elements.
- <a href="resequence.html">Resequence</a>: To turn on the option to resequence the nodes, which will minimize the bandwidth of the problem and speed the calculations.
XML Input Files
In XML input files, you build the mesh with mesh generation commands that must be within a single <Mesh> block. Here is a <Mesh> block that creates at 50X10 mm rectangular mesh with 6 elements in the horizontal direction and 3 in the vertical direction:
<Mesh> <Keypoints> <pt x='0' y='0' id='lowerleft'/> <pt x='0' y='10' id='upperleft'/> <pt x='50' y='0' id='lowerright'/> <pt x='50' y='10' id='upperright'/> </Keypoints> <Path id="bottom" intervals='6' ratio='1'> <keypt id='lowerleft'/> <keypt id='lowerright'/> </Path> <Path id="right" intervals='3'> <keypt id='lowerright'/> <keypt id='upperright'/> </Path> <Path id="top" intervals='6'> <keypt id='upperright'/> <keypt id='upperleft'/> </Path> <Path id="left" intervals='3'> <keypt id='upperleft'/> <keypt id='lowerleft'/> </Path> <Area mat="1" thick="10" type="4" flip="0" angle="0"> <path id="bottom"/> <path id="right"/> <path id="top"/> <path id="left"/> </Area> </Mesh>
Mesh Generation Commands
The fundamental XML commands for generating a mesh are:
- <Area>: Define an area for mesh generation.
- <Path>: Define a path used in defining areas.
- <Keypoints>: Define a key point used in defining paths
Using Images and Shapes
If some elements in the generate mesh are set to mat=0, you can follow mesh creation with image and shape commands to fill in material types, angles, and define the final mesh geometry. This option is described here.
Notes
- Once the mesh is created, an optional method to create complicated meshes is to define the materials, angles, and final geometry using images and shapes. This meshing method is described elsewhere.