Difference between revisions of "Area Command"

From OSUPDOCS
Jump to navigation Jump to search
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
The <tt>Area</tt> command defines a 2D area or a 1D interface which will automatically be divided into elements to [[FEA Mesh Generation Commands|generate]] all or part of an FEA mesh.
The <tt>Area</tt> command defines a 2D area or a 1D interface which will automatically be divided into elements to [[FEA Mesh Generation Commands|generate]] all or part of an FEA mesh.
__TOC__
__TOC__
== Scripted Area Block ==
== Area Command Blocks ==


In scripted files, the <tt>Area</tt> command is a block that begins with <tt>Area</tt> command and ends with an <tt>EndArea</tt> command.
=== Scripted Area Block ===
 
In scripted files, the <tt>Area</tt> command is a block that begins with an <tt>Area</tt> command and ends with an <tt>EndArea</tt> command.
Between the <tt>Area</tt> and its matching <tt>EndArea</tt>, the area is defined by a collection of paths that enclose the area. To define a solid 2D area, the area block must include four paths:
Between the <tt>Area</tt> and its matching <tt>EndArea</tt>, the area is defined by a collection of paths that enclose the area. To define a solid 2D area, the area block must include four paths:
  Area #1,#2,&lt;#3&gt;
  Area (id),(thick),<(angle)>
   Paths "Bottom"
   Paths "Bottom"
     Keypoint "BotLeft",0,0
     Keypoint "BotLeft",0,0
Line 16: Line 18:
To define a 1D interface, the area block must includes two separate, but identical paths:
To define a 1D interface, the area block must includes two separate, but identical paths:
  Area #1,#2,&lt;#3&gt;
  Area (id),(thick),<(angle)>
   Path "Left",6
   Path "Left",6
    Keypoint "LeftBot",0,0
    Keypoint "LeftBot",0,0
    Keypoints "LeftTop"
    Keypoints "LeftTop"
   EndPath
   EndPath
   Paths "Right"
   Paths "Right"
Line 28: Line 30:
<ul>
<ul>


<li>#1 is the material ID for a previously defined [[FEA Material Models|material]]. All elements in the area will be set to this material. When the mesh will be defined using [[Create a Mesh with Images and Shapes|images and shapes]], set the material ID for any region that will use the images and shapes to be <tt>_NONE_</tt>; the images and shapes will fill in the materials later.</li>
<li><tt>(id)</tt> is the material ID for a previously defined [[FEA Material Models|material]]. All elements in the area will be set to this material. When the mesh will be defined using [[Create a Mesh with Images and Shapes|images and shapes]], set the material ID for any region that will use the images and shapes to be <tt>_NONE_</tt>; the images and shapes will fill in the materials later.</li>


<li>#2 is the thickness of all the elements in mm for 2D plane stress or plain strain analyses. It is ignored for axisymmetric analyses, but is still required.</li>
<li><tt>(thick)</tt> is the thickness of all the elements in [[ConsistentUnits Command#Legacy and Consistent Units|length units]] for 2D plane stress or plain strain analyses. It is ignored for axisymmetric analyses, but is still required.</li>


<li>#3 is an optional material angle for all the elements. It may be needed for certain [[FEA Material Models|anisotropic materials]]. It can be entered as a number or as a [[User Defined Functions|function]]. A function is evaluated at the midpoint of an element. Triangular elements are created in pairs and the function is evaluated at the midpoint of each pair.</li>
<li>The optional <tt>(angle)</tt> is a material angle for all the elements. It may be needed for certain [[FEA Material Models|anisotropic materials]]. It can be entered as a number or as a [[User Defined Functions|user-defined function]]. A function is evaluated at the midpoint of an element. Triangular elements are created in pairs and the function is evaluated at the midpoint of each pair.</li>


</ul>
</ul>
Line 38: Line 40:
Each path can be explicitly defined (<i>e.g.</i>, the paths with subordinate [[Keypoint Command|Keypoint commands]]) or can refer to a previously defined path (<i>e.g.</i>, the [[Path Command|Paths]] commands with one or more path names). See the [[Path Command|Path]] and [[Keypoint Command|Keypoint]] commands for details on defining paths and keypoints.
Each path can be explicitly defined (<i>e.g.</i>, the paths with subordinate [[Keypoint Command|Keypoint commands]]) or can refer to a previously defined path (<i>e.g.</i>, the [[Path Command|Paths]] commands with one or more path names). See the [[Path Command|Path]] and [[Keypoint Command|Keypoint]] commands for details on defining paths and keypoints.


The [[FEA Elements|element type]] to use when meshing the area is determined by the [[Element Command]].
The [[Element Types|element type]] to use when meshing the area is determined by the [[FEA Elements#Scripted Input Files|Element and FlipTriangles commands]].


== XML Area Block ==
See more [[#Area Details|details below]].
 
=== XML Area Block ===


In XML input files, all Area blocks must be within the single <tt><Mesh></tt> block and they must come after the [[Keypoint Command#XML Keypoints Block|<tt><Keypoints></tt> block]] and all [[Path Command#XML Path Command|path definitions]]. Each area block has the form
In XML input files, all Area blocks must be within the single <tt><Mesh></tt> block and they must come after the [[Keypoint Command#XML Keypoints Block|<tt><Keypoints></tt> block]] and all [[Path Command#XML Path Command|path definitions]]. Each area block has the form
Line 53: Line 57:
</pre>
</pre>


An <tt><Area></tt> block links a series of previously defined [[Path Command|paths]] into a region to be meshed. Subordinate to each <tt>Area</tt> block are a series of <tt><path></tt> commands that list the  [[Path Command|paths]] that define the area and specifies them by their <tt>id</tt>. Currently NairnFEA only supports areas with four paths, to mesh quadrilateral areas, or areas with two paths, to mesh interfaces. The attributes for an <tt><Area></tt> block are:
An <tt><Area></tt> block links a series of previously defined [[Path Command|paths]] into a region to be meshed. Subordinate to each <tt><Area></tt> block are a series of <tt><path></tt> commands that list the  [[Path Command|paths]] that define the area and specifies them by their <tt>id</tt>. Currently NairnFEA only supports areas with four paths, to mesh quadrilateral areas, or areas with two paths, to mesh interfaces. The attributes for an <tt><Area></tt> block are:


* <tt>mat</tt>: Material number in the list of [[Material Command Block#XML Input Commands|defined materials]] when referring to material [[Material Command Block#Referencing Materials in XML Files|"By Number"]]. When the mesh will be defined using [[Create a Mesh with Images and Shapes|images and shapes]], the <tt>mat</tt> should be 0 for elements that will be set later by images and shapes.
* <tt>mat</tt>: Material number in the list of [[Material Command Block#XML Input Commands|defined materials]] when referring to material [[Material Command Block#Referencing Materials in XML Files|"By Number"]]. When the mesh will be defined using [[Create a Mesh with Images and Shapes|images and shapes]], the <tt>mat</tt> should be 0 for elements that will be set later by images and shapes.
* <tt>matname</tt>: Alternatively, materials can be specified [[Material Command Block#Referencing Materials in XML Files|"By Name"]].
* <tt>matname</tt>: Alternatively, materials can be specified [[Material Command Block#Referencing Materials in XML Files|"By Name"]].
*<tt>angle</tt>: Optional material angle relevant to [[FEA Material Models|anisotropic materials]]. It can be entered as a number or as a [[User Defined Functions|function]]. A function is evaluated at the midpoint of an element. Triangular elements are created in pairs and the function is evaluated at the midpoint of each pair.
*<tt>angle</tt>: Optional material angle relevant to [[FEA Material Models|anisotropic materials]]. It can be entered as a number or as a [[User Defined Functions|function]]. A function is evaluated at the midpoint of an element. Triangular elements are created in pairs and the function is evaluated at the midpoint of each pair.
* <tt>thick</tt>: Thickness in mm (for plane stress or plane strain 2D calculations); not needed for axisymmetric analysis.
* <tt>thick</tt>: Thickness in [[ConsistentUnits Command#Legacy and Consistent Units|length units]] (for plane stress or plane strain 2D calculations); not needed for axisymmetric analysis.
* <tt>type</tt>: The type of [[FEA Elements|element to create]] in the meshed area.
* <tt>type</tt>: The type of [[FEA Elements|element to create]] in the meshed area.
* <tt>flip</tt>: For triangular elements, the initially created quadrilaterials are split into two elements by drawing a diagonal across the quadrilaterial. The <tt>flip</tt> option can change which diagonal is used. It should be 0 or 1. Once it is set, it will apply to that area and all subsequent areas until it is changed.
* <tt>flip</tt>: For triangular elements, the initially created quadrilaterials are split into two elements by drawing a diagonal across the quadrilaterial. The <tt>flip</tt> option can change which diagonal is used. It should be 0 or 1. Once it is set, it will apply to that area and all subsequent areas until it is changed.


== Notes ==
== Area Details ==


<ol>
Quadrilateral areas must use [[Element Types|solid elements]] and interface areas must use [[Element Types|interface elements]].


<li>For quadrilateral areas, the end of the last path must connect to the start of the first path. The direction of each path does not matter as they will be rearranged if needed to define the area; but the paths must circumnavigate the area in the counter-clockwise direction.</li>
For quadrilateral areas, the end of the fourth path must connect to the start of the first path. The direction of each path does not matter as they will be rearranged if needed to define the area; but the paths must circumnavigate the area in the counter-clockwise direction. Furthermore, if n<sub>1</sub>, n<sub>2</sub>, n<sub>3</sub>, and n<sub>4</sub> are the number of intervals along the four paths, they must satisfy


<li>Currently all solid areas must be defined by four paths. Furthermore, if n<sub>1</sub>, n<sub>2</sub>, n<sub>3</sub>, and n<sub>4</sub> are the number of intervals along the four paths, they must satisfy either n<sub>1</sub>+n<sub>2</sub>=n<sub>3</sub>+n<sub>4</sub> or n<sub>1</sub>+n<sub>4</sub>=n<sub>2</sub>+n<sub>3</sub>.</li>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<math>n_1+n_2 = n_3+n_4 \qquad{\rm or}\qquad n_1+n_4 = n_2+n_3</math>


<li>For interface meshing, the two paths must be different, but indentical paths. In other words, they must connect different keypoints, but the coordinates of the keypoints, the number of intervals along the path, and the path ratios must be identical. The order and orientation of the two paths in the area command does not matter. Finally, interfaces only function when they connect two areas. To insure this connection, the paths for an interface must have each been previously used in exactly one quadrilateral area.</li>
For interface meshing, the two paths must be different, but indentical paths. More more details see help on [[Imperfect Interfaces#Imperfect Interfaces in FEA|imperfect interfaces in FEA]].


<li>Solid (or quadrilateral) areas must use [[FEA Material Models|normal materials]] while interface areas must use [[FEA Material Models|interface materials]].
== Notes ==


<li>Solid (or quadrilateral) areas must use [[FEA Elements|solid elements]] while interface areas must use [[FEA Elements|interface elements]].
<ol>


<li>An FEA analysis can have any number of areas. To connect areas into a solid object, the areas must share common paths.</li>
<li>An FEA analysis can have any number of areas. To connect areas into a solid object, the areas must share common paths.</li>

Latest revision as of 22:29, 5 December 2016

The Area command defines a 2D area or a 1D interface which will automatically be divided into elements to generate all or part of an FEA mesh.

Area Command Blocks

Scripted Area Block

In scripted files, the Area command is a block that begins with an Area command and ends with an EndArea command. Between the Area and its matching EndArea, the area is defined by a collection of paths that enclose the area. To define a solid 2D area, the area block must include four paths:

Area (id),(thick),<(angle)>
  Paths "Bottom"
    Keypoint "BotLeft",0,0
    Keypoints "BotRight"
  EndPath
  Paths "Right", "Top" "Left"
EndArea

To define a 1D interface, the area block must includes two separate, but identical paths:

Area (id),(thick),<(angle)>
  Path "Left",6
    Keypoint "LeftBot",0,0
    Keypoints "LeftTop"
  EndPath
  Paths "Right"
EndArea

The Area command starts with three arguments

  • (id) is the material ID for a previously defined material. All elements in the area will be set to this material. When the mesh will be defined using images and shapes, set the material ID for any region that will use the images and shapes to be _NONE_; the images and shapes will fill in the materials later.
  • (thick) is the thickness of all the elements in length units for 2D plane stress or plain strain analyses. It is ignored for axisymmetric analyses, but is still required.
  • The optional (angle) is a material angle for all the elements. It may be needed for certain anisotropic materials. It can be entered as a number or as a user-defined function. A function is evaluated at the midpoint of an element. Triangular elements are created in pairs and the function is evaluated at the midpoint of each pair.

Each path can be explicitly defined (e.g., the paths with subordinate Keypoint commands) or can refer to a previously defined path (e.g., the Paths commands with one or more path names). See the Path and Keypoint commands for details on defining paths and keypoints.

The element type to use when meshing the area is determined by the Element and FlipTriangles commands.

See more details below.

XML Area Block

In XML input files, all Area blocks must be within the single <Mesh> block and they must come after the <Keypoints> block and all path definitions. Each area block has the form

  <Area mat="1" thick="10" type="4" flip="0" angle="0">
    <path id="bottom"/>
    <path id="right"/>
    <path id="top"/>
    <path id="left"/>
  </Area>

An <Area> block links a series of previously defined paths into a region to be meshed. Subordinate to each <Area> block are a series of <path> commands that list the paths that define the area and specifies them by their id. Currently NairnFEA only supports areas with four paths, to mesh quadrilateral areas, or areas with two paths, to mesh interfaces. The attributes for an <Area> block are:

  • mat: Material number in the list of defined materials when referring to material "By Number". When the mesh will be defined using images and shapes, the mat should be 0 for elements that will be set later by images and shapes.
  • matname: Alternatively, materials can be specified "By Name".
  • angle: Optional material angle relevant to anisotropic materials. It can be entered as a number or as a function. A function is evaluated at the midpoint of an element. Triangular elements are created in pairs and the function is evaluated at the midpoint of each pair.
  • thick: Thickness in length units (for plane stress or plane strain 2D calculations); not needed for axisymmetric analysis.
  • type: The type of element to create in the meshed area.
  • flip: For triangular elements, the initially created quadrilaterials are split into two elements by drawing a diagonal across the quadrilaterial. The flip option can change which diagonal is used. It should be 0 or 1. Once it is set, it will apply to that area and all subsequent areas until it is changed.

Area Details

Quadrilateral areas must use solid elements and interface areas must use interface elements.

For quadrilateral areas, the end of the fourth path must connect to the start of the first path. The direction of each path does not matter as they will be rearranged if needed to define the area; but the paths must circumnavigate the area in the counter-clockwise direction. Furthermore, if n1, n2, n3, and n4 are the number of intervals along the four paths, they must satisfy

      [math]\displaystyle{ n_1+n_2 = n_3+n_4 \qquad{\rm or}\qquad n_1+n_4 = n_2+n_3 }[/math]

For interface meshing, the two paths must be different, but indentical paths. More more details see help on imperfect interfaces in FEA.

Notes

  1. An FEA analysis can have any number of areas. To connect areas into a solid object, the areas must share common paths.
  2. The Area command is only allowed for FEA analyses.