Difference between revisions of "FEA Boundary Conditions"

From OSUPDOCS
Jump to navigation Jump to search
Line 101: Line 101:
</GridBCs>
</GridBCs>
</pre>
</pre>
<dl>
<dt><a name="DisplacementBCs"></a>&lt;DisplacementBCs&gt;</dt>
<dd>This command can set fixed displacement boundary conditions on nodes. Subordinate to the command can be any number of <code>&lt;fix&gt;</code> and <code>&lt;rotate&gt;</code> commands. The <code>&lt;fix&gt;</code> commands specify a <code>node</code> (by number) and the direction that is fixed with <code>dof</code> of 1 or x for x direction or 2 or y for y direction. The value of the <code>&lt;fix&gt;</code> tag is the fixed displacement in mm.<br>
&nbsp;&nbsp;&nbsp;&nbsp;The <code>&lt;rotate&gt;</code> tag can be used to apply skewed displacement (or load) boundary conditions that are in some direction that is not along the x or y axis. The method is to rotate the node first using a <code>&lt;rotate&gt;</code> cammand where the <code>node</code> attribute gives the node to rotate and the <code>axis</code> attribute is the axis of rotation, which must be 3 or z for 2D calculations or for rotation about the z axis. The value of the <code>&lt;rotate&gt;</code> tag is the angle to rotate in the clockwise direction in degress. Alternatively, the angle can be set using an <code>angle</code> attribute. Any rotated node can only be rotated once. After rotating a node, you can apply displacement (or load) boundary conditions in the rotated coordinate system.<br>
&nbsp;&nbsp;&nbsp;&nbsp;Nodes located at <code>r=0</code> in axisymmetric analysis can not move thus should be fixed in the 1 or x direction. Any such nodes not fixed by a boundary conditions will automatically be fixed for you.
</dd>
<dt><a name="LoadBCs"></a>&lt;LoadBCs&gt;</dt>
<dd>This command is used to apply loads directly to nodes. Subordinate to the command can be any number of <code>&lt;load&gt;</code> and <code>&lt;rotate&gt;</code> commands. The <code>&lt;load&gt;</code> commands specify a <code>node</code> (by number) and the direction of the load with <code>dof</code> of 1 or x for x direction or 2 or y for y direction. The value of the <code>&lt;load&gt;</code> tag is the applied load in mm. You can apply skewed loads, or loads not in the x or y direction by rotating the node first with a <code>&lt;rotate&gt;</code> command and then applying the load to the rotated axes. See <code>&lt;DisplacementBCs&gt;</code> command above for details.
</dd>
<dt><a name="EdgeBCs"></a>&lt;EdgeBCs&gt;</dt>
<dd>This command is used to apply stress to edges of elements. Subordinate to the command can be <code>&lt;stress&gt;</code> commands. Each <code>&lt;stress&gt;</code> command specifies an element (using <code>elem</code>), a <code>face</code> of the element, and a direction (using <code>dir</code> with setting 1 or n for normal stress or 2 or t for tangential or shear stress). The value of the <code>&lt;stress&gt;</code> tag should be 1 to 3 stresses, separated by commas, to allow applying constant or variable stress. If three stresses are given, the entered values correspond to the applied stress at the endpoints and in the middle of the face. If only two stresses are given, the stress will vary linearly between the endpoints of the face. If only one stress is given, the stress will be constant. The element faces are numbered around the element in the counter-clockwise direction starting with 1.
</dd>
</dl>


== Notes ==
== Notes ==


# When doing axisymmetric FEA, nodes at r=0 will automatically be set to zero velocity in the r directions. You therefore need not set those conditions.
# When doing axisymmetric FEA, nodes at r=0 will automatically be set to zero velocity in the r directions. You therefore need not set those conditions.

Revision as of 10:42, 11 September 2013

Nodal and element face boundary conditions in FEA analyses are applied to nodes or elements by using the commands on this page.

Scripted Input Files

In scripted input files, FEA boundary conditions are applied with a series of FixLine commands and FixPoint commands, each of which is available in two versions. The FixLine command can either select nodes and elements along a previously defined path or can select all nodes close to that line:

FixLine (pathid)
  (boundary conditions commands)
EndFixLine

FixLine (x1),(y1),(x2),(y2),<(tolerance)>
  (boundary condition commands)
EndFixLine

The FixPoint command can either select one define keypoint or can select the one node closest to a point:

FixPoint (keyid)
  (boundary conditions commands)
EndFixPoint

FixPoint (x3),(y3)
  (boundary condition commands)
EndFixPoint

In these commands, the arguments are:

  • (pathid) to select a previously defined path by id, which must have be used in an area.
  • (x1,y1) to (x2,y2) define (x,y) coordinates (in mm) for the points at the beginning and end of the line (or (R,Z) coordinates in axisymmetric calculations). All nodes close to that line are selected.
  • (tolerance) is an optional tolerance (in mm). When used it accepts nodes within that distance of the define line; when omitted, tolerance is set to small number bases on mesh dimensions.
  • (keyid) to select a previously defined keypoint by id, which must be part of a path that is in an area.
  • (x3,y3) define (x,y) coordinates (in mm) for a single point (or (R,Z) coordinates in axisymmetric calculations). The node closest to that point is selected.

All nodes along the selected path or along the selected line (for FixLine commands) or the single selected node (for FixPoint commands) can be assigned nodal displacement or load conditions, rotated for skewed boundary conditions, or designated for conditional output.

In addition, when using FixLine to select a defined path, all element faces along that path can be assigned stresses. You cannot, however, apply stress conditions along interior paths; they can only be assigned to paths on the boundary of the object. Also note that FixLine commands that use a line instead of a path cannot assign stresses to element faces).

XML Input Files

In XML input files, all FEA boundary conditions are applied within a <GridBC> block:

<GridBC>
  (boundary condition commands)
</GridBCs>

Within this block, most conditions are set with a series of <BCLine> commands and <BCPt> commands, each of which is available in two versions. The <BCLine> command can either select nodes and elements along a previously defined path or can select all nodes close to a line:

  <BCLine path='(pathid)'>
    (set conditions)
  </BCLine>

  <BCLine x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' tolerance='(tolerance)'>
    (set conditions)
  </BCLine>

The <BCPt> command can either select one defined keypoint or can select the one node closest to a point:

  <BCPt keypt='(keyid)'>
    (set conditions)
  </BCPt>

  <BCPt x='(x3)' y='(y3)'>
    (set conditions)
  </BCPt>

These commands and attributes function exactly as defined above for the scripted FixLine and FixPoint commands.

An alternative to the above boundary conditions commands, XML files can alternative explicitly set boundary conditions on nodes and element faces, but this method is rarely used.

Displacement Conditions

Load Conditions

Stress Conditions

Skewed Conditions

Selecting Nodes

Explicit XML Boundary Conditions

An alternate way to assign FEA boundary conditions (which can only be done in XML files is to to explicit list each one. This method is rarely used because the generate conditions desribed above are much more flexible. If needed (e.g., when creating an XML file in custom software), the basic format is

<GridBCs>
   <DisplacementBCs>
     <fix node='24' dof='2'>0</fix>
     <rotate node='5' axis='3'>45</rotate>
   </DisplacementBCs>
   
   <LoadBCs>
     <load node='5' dof='1'>45</load>
     <rotate node='5' axis='3'>45</rotate>
   </LoadBCs>
   
   <EdgeBCs>
     <stress elem='3' face='1' dir='1'>0,100</load>
   </EdgeBCs>
</GridBCs>
<a name="DisplacementBCs"></a><DisplacementBCs>
This command can set fixed displacement boundary conditions on nodes. Subordinate to the command can be any number of <fix> and <rotate> commands. The <fix> commands specify a node (by number) and the direction that is fixed with dof of 1 or x for x direction or 2 or y for y direction. The value of the <fix> tag is the fixed displacement in mm.
    The <rotate> tag can be used to apply skewed displacement (or load) boundary conditions that are in some direction that is not along the x or y axis. The method is to rotate the node first using a <rotate> cammand where the node attribute gives the node to rotate and the axis attribute is the axis of rotation, which must be 3 or z for 2D calculations or for rotation about the z axis. The value of the <rotate> tag is the angle to rotate in the clockwise direction in degress. Alternatively, the angle can be set using an angle attribute. Any rotated node can only be rotated once. After rotating a node, you can apply displacement (or load) boundary conditions in the rotated coordinate system.
    Nodes located at r=0 in axisymmetric analysis can not move thus should be fixed in the 1 or x direction. Any such nodes not fixed by a boundary conditions will automatically be fixed for you.
<a name="LoadBCs"></a><LoadBCs>
This command is used to apply loads directly to nodes. Subordinate to the command can be any number of <load> and <rotate> commands. The <load> commands specify a node (by number) and the direction of the load with dof of 1 or x for x direction or 2 or y for y direction. The value of the <load> tag is the applied load in mm. You can apply skewed loads, or loads not in the x or y direction by rotating the node first with a <rotate> command and then applying the load to the rotated axes. See <DisplacementBCs> command above for details.
<a name="EdgeBCs"></a><EdgeBCs>
This command is used to apply stress to edges of elements. Subordinate to the command can be <stress> commands. Each <stress> command specifies an element (using elem), a face of the element, and a direction (using dir with setting 1 or n for normal stress or 2 or t for tangential or shear stress). The value of the <stress> tag should be 1 to 3 stresses, separated by commas, to allow applying constant or variable stress. If three stresses are given, the entered values correspond to the applied stress at the endpoints and in the middle of the face. If only two stresses are given, the stress will vary linearly between the endpoints of the face. If only one stress is given, the stress will be constant. The element faces are numbered around the element in the counter-clockwise direction starting with 1.

Notes

  1. When doing axisymmetric FEA, nodes at r=0 will automatically be set to zero velocity in the r directions. You therefore need not set those conditions.