Difference between revisions of "FEA Region and Hole Commands"

From OSUPDOCS
Jump to navigation Jump to search
Line 47: Line 47:
In <tt>XML<tt> files, the command is:
In <tt>XML<tt> files, the command is:


  <Rect xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)' units='mm'/>
  <Rect xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)'/>


where
where


* <tt>(xmin),(xmax),(ymin)</tt>, and <tt>(ymax)</tt> are the x and y extents of the rectangle (or R and Z extents if axisymmetric). If xmax<xmin or ymax<ymin, the will be automatically switched to define the rectangle. The units are mm in scripted files or determined by the [[Units Attribute|units attribute]] in <tt>XML</tt> files.
* <tt>(xmin),(xmax),(ymin)</tt>, and <tt>(ymax)</tt> are the x and y extents of the rectangle (or R and Z extents if axisymmetric). If xmax<xmin or ymax<ymin, the will be automatically switched to define the rectangle. The units are mm (or determined by a [[Units Attribute|units attribute]] in <tt>XML</tt> files).


If the defined rectangle overlaps areas that already has assigned elements, or has been defined as a hole, those areas will be ignored.
If the defined rectangle overlaps areas that already has assigned elements, or has been defined as a hole, those areas will be ignored.
== Oval Command ==
A scripted <tt>Oval</tt> command defines a region to be assign element materials or to be defined as a hole:
Oval (xmin),(xmax),(ymin),(ymax)
In <tt>XML<tt> files, the command is:
<Oval xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)'/>
where
* <tt>(xmin),(xmax),(ymin)</tt>, and <tt>(ymax)</tt> are the x and y extents of the rectangle (or R and Z extents if axisymmetric) that encloses the oval. If xmax<xmin or ymax<ymin, the will be automatically switched to define the oval. The units are mm (or determined by a [[Units Attribute|units attribute]] in <tt>XML</tt> files).
If the defined oval overlaps areas that already has assigned elements, or has been defined as a hole, those areas will be ignored.


== Oval Command ==
== Oval Command ==


== PolyPt Command ==
== PolyPt Command ==

Revision as of 12:32, 13 September 2013

When using shapes to define an FEA mesh, use Region command to define material properties for elements and use Hole commands to remove elements from the mesh.

Region Commands

Once the mesh is ready to use shapes, elements within shapes are assigned to materials by using a series of Region commands (or <Body> commands in XML files). In scripted files, the Region command defines material type, thickness, and angle (needed for some anisotropic materials):

Region (matid),(thick),<(angle)>
  (any number of shape commands)
EndRegion

In XML files, the <Body> block is:

<Body mat='(matid)' angle='(angle)' thick='(thick)'>
  (any number of shape commands)    
</Body>

where

  • (matid) is the material ID for a previously defined material.
  • (thick) is the thickness of the region in mm.
  • (angle) is an optional angle for the material which is only relevant for anisotropic materials. It can be entered as a number or as a user-defined function of the coordinates for the element centroid. The units are degrees.

Between the Region command and the subsequent EndRegion command (or within the <Body> block), there can be any number of Rect, Oval, and PolyPt commands to define the geometry whose elements will use the region's material properties.

Hole Commands

Once the mesh is ready to use shapes, elements within shapes can be removed with a series of Hole commands (or <Hole> commands in XML files). In scripted files, the Hole command is:

Hole
  (any number of shape commands)
EndHole

In XML files, the <Body> block is:

<Hole>
  (any number of shape commands)    
</Hole>

Between the Hole command and the subsequent EndHole command (or within the <Hole> block), there can be any number of Rect, Oval, and PolyPtcommands to define the geometry whose elements should be removed.

Rect Command

A scripted Rect command defines a region to be assign element materials or to be defined as a hole:

Rect (xmin),(xmax),(ymin),(ymax)

In XML files, the command is:

<Rect xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)'/>

where

  • (xmin),(xmax),(ymin), and (ymax) are the x and y extents of the rectangle (or R and Z extents if axisymmetric). If xmax<xmin or ymax<ymin, the will be automatically switched to define the rectangle. The units are mm (or determined by a units attribute in XML files).

If the defined rectangle overlaps areas that already has assigned elements, or has been defined as a hole, those areas will be ignored.

Oval Command

A scripted Oval command defines a region to be assign element materials or to be defined as a hole:

Oval (xmin),(xmax),(ymin),(ymax)

In XML files, the command is:

<Oval xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)'/>

where

  • (xmin),(xmax),(ymin), and (ymax) are the x and y extents of the rectangle (or R and Z extents if axisymmetric) that encloses the oval. If xmax<xmin or ymax<ymin, the will be automatically switched to define the oval. The units are mm (or determined by a units attribute in XML files).

If the defined oval overlaps areas that already has assigned elements, or has been defined as a hole, those areas will be ignored.

Oval Command

PolyPt Command