Difference between revisions of "Area Command"

From OSUPDOCS
Jump to navigation Jump to search
Line 28: Line 28:
<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. Solid areas must use normal materials and interface areas must use [[FEA Material Models|interface materials]]. 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>#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>#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>#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>#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 <a href="function.html">user-defined function</a>. 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>#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>


</ul>
</ul>
Line 53: Line 53:
An <tt>Area</tt> block links a series of 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 paths that define the area. 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 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 paths that define the area. 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"]]. If you are using the optional [[BMP, Region, and Hole Commands|BMP, Body, and Hole commands method to set element properties, the <tt>mat</tt> should be 0 for elements that will be set later by other commands.
* <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]].
*<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)
* <tt>thick</tt>: Thickness in mm (for plane stress or plane strain 2D calculations); not needed for axisymmetric analysis.
* <tt>type</tt>: The type of element to create in the meshed area.


<ul>
<ul>
<li><code>mat</code>: Material number in the list of defined materials. Quadrilateral areas cannot use an <a href="definematl.html#interface">interface material</a> while interface areas must use an <a href="definematl.html#interface">interface material</a>. When materials and angle will be set using a <code>BMP</code> file, the <code>mat</code> should be set to 0 to indicate no material assigned until the <a href="#bmpcmd"><code>&lt;BMP&gt;</code></a> command.</li>
 
<li><code>matname</code>: Alternatively, materials can be specied by name. See <a href="definematl.html#usemats">Defining Materials</a> for details on this method.</li>
 
<li><code>angle</code>: Optional material angle relevant to <a href="definematl.html">anisotropic materials</a>. It can be entered as a number or as a <a href="function.html">user-defined function</a>. 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><code>thick</code>: Thickness in mm for plane stress or plain strain analysis; not needed for axisymmetric analysis.</li>
<li><code>type</code>: The type of element to create. The options are:
<ul class="lev2args">
<li><code>1</code>: 3-node constant-stain triangular elements (linear)</li>
<li><code>2</code>: 4-node isoparametric rectangular elements(linear)</li>
<li><code>3</code>: 8-node isoparametric rectangular elements (quadratic)</li>
<li><code>4</code>: 6-node isoparametric triangular elements (quadratic)</li>
<li><code>5</code>: 4-node imperfect interface elements (linear)</li>
<li><code>6</code>: 6-node imperfect interface elements (quadratic)</li>
<li><code>8</code>: 9-node Langrangian rectangular element (quadratic) (9 point Gaussian quadrature)</li>
</ul>
The first <code>&lt;Area&gt;</code> command must define an element type. Subsequent <code>&lt;Area&gt;</code> commands can omit the element type unless the element type is changed to have an analysis with mixed elements. When mixed elements are used, they must be compatible elements (<i>i.e.</i>, you can mix linear elements (types 1, 2, and 5) with each other or quadratic elements (types 3, 4, 6, and 8) with each other, but cannot mix linear elements with quadratic elements). Whenever a <code>type</code> attribute is used, it will apply to that area and all subsequent areas until it is changed. Finally, quadrilateral areas can only use solid elements (types 1, 2, 3, 4, and 8) and interface areas can use only interface elements (type 5 and 6).</li>
The first <code>&lt;Area&gt;</code> command must define an element type. Subsequent <code>&lt;Area&gt;</code> commands can omit the element type unless the element type is changed to have an analysis with mixed elements. When mixed elements are used, they must be compatible elements (<i>i.e.</i>, you can mix linear elements (types 1, 2, and 5) with each other or quadratic elements (types 3, 4, 6, and 8) with each other, but cannot mix linear elements with quadratic elements). Whenever a <code>type</code> attribute is used, it will apply to that area and all subsequent areas until it is changed. Finally, quadrilateral areas can only use solid elements (types 1, 2, 3, 4, and 8) and interface areas can use only interface elements (type 5 and 6).</li>
<li><code>flip</code>: For triangular elements, the initially created quadrilaterials are split into two elements by drawing a diagonal across the quadrilaterial. The <code>flip</code> 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.</li>
<li><code>flip</code>: For triangular elements, the initially created quadrilaterials are split into two elements by drawing a diagonal across the quadrilaterial. The <code>flip</code> 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.</li>
Line 86: Line 75:


<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>
<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>
<li>Solid (or quadrilateral) areas must use [[FEA Material Models|normal materials]] while interface areas must use [[FEA Material Models|interface materials]].


<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>

Revision as of 09:31, 30 August 2013

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

Scripted Area Block

In scripted files, the Area command is a block that begins with 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 #1,#2,<#3>
  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 #1,#2,<#3>
  Path "Left",6
   Keypoint "LeftBot",0,0
   Keypoints "LeftTop"
  EndPath
  Paths "Right"
EndArea

The Area command starts with three arguments

  • #1 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.
  • #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.
  • #3 is an optional material angle for all the elements. It may be needed for certain 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.

Within the area block the Path and Paths commands a series of paths that must circumnavigate the area in the counter clockwise direction. The paths must be connected and define a closed area. Each path can be explicitly defined (e.g., the paths with subordinate [[Keypoint Command|Keypoins commands</a>) 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.

XML Area Block

In XML input files, the Area block must be within the single Mesh block and have 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 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. 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 mm (for plane stress or plane strain 2D calculations); not needed for axisymmetric analysis.
  • type: The type of element to create in the meshed area.
    The first <Area> command must define an element type. Subsequent <Area> commands can omit the element type unless the element type is changed to have an analysis with mixed elements. When mixed elements are used, they must be compatible elements (i.e., you can mix linear elements (types 1, 2, and 5) with each other or quadratic elements (types 3, 4, 6, and 8) with each other, but cannot mix linear elements with quadratic elements). Whenever a type attribute is used, it will apply to that area and all subsequent areas until it is changed. Finally, quadrilateral areas can only use solid elements (types 1, 2, 3, 4, and 8) and interface areas can use only interface elements (type 5 and 6).
  • 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.

Notes

  1. 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.
  2. Currently all solid areas must be defined by four paths. Furthermore, if n1, n2, n3, and n4 are the number of intervals along the four paths, they must satisfy either n1+n2=n3+n4 or n1+n4=n2+n3.
  3. 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.
  4. Solid (or quadrilateral) areas must use normal materials while interface areas must use interface materials.
  5. An FEA analysis can have any number of areas. To connect areas into a solid object, the areas must share common paths.
  6. The area will be meshed into elements of the type defined in the most recent <a href="element.html">Element command</a>. Solid areas must use solid elements. Interfaces must use <a href="imperfect.html">interface elements</a>.
  7. The Area command is only allowed for <a href="analysis.html">FEA analyses.</a>