Difference between revisions of "Controlling FEA Output"
Line 54: | Line 54: | ||
<Select node='23'></pre> | <Select node='23'></pre> | ||
The text of the <tt>Output</tt> command has 1 to 6 letters, each of which must be 'Y', 'C', or 'N' &emdash; 'Y' means that result is fully included in the file; 'C' means that result is conditionally included only if it is relevant to one of a set of preselected nodes; and 'N' means that result is not included in the file. The six output options are listed [[#Scripted Input Files|above]]. To preselect nodes for the 'C' option, include one or mode <tt>Select</tt> commands in the [[FEA Input Files#Main Header|main header]] using its <tt>node</tt> attribute to specify the node by number. | The text of the <tt>Output</tt> command has 1 to 6 letters, each of which must be 'Y', 'C', or 'N' &emdash; 'Y' means that result is fully included in the file; 'C' means that result is conditionally included only if it is relevant to one of a set of preselected nodes; and 'N' means that result is not included in the file. The six output options are listed [[#Scripted Input Files|above]]. | ||
To preselect nodes for the 'C' option, include one or mode <tt>Select</tt> commands in the [[FEA Input Files#Main Header|main header]] using its <tt>node</tt> attribute to specify the node by number. This method, however, is typically not very useful. A better way to select nodes in <tt>XML</tt> files is to select them using [[BCLine Command|BCLine]] or [[BCPt Command|BCPt]] commands. | |||
== Notes == | == Notes == | ||
# If no <tt>Output</tt> command is used, the default output will be "yes" (or 'Y') for all options except | # If no <tt>Output</tt> command is used, the default output will be "yes" (or 'Y') for all options except <tt>"reactivities"</tt>, which will be "no" (or 'N') | ||
The | # The <tt>"reactivities"</tt> and <tt>"energy"</tt> options can only be "yes" (or 'Y') or "no" (or 'N'); if "selected" (or 'C') is used it will be treated like a "yes" (or 'Y'). | ||
Revision as of 11:38, 28 May 2013
If FEA files, the Output command defines which results are written to the output text file. Some of the output options can be restricted to selected nodes.
Scripted Input Files
The Output command is used to determine what FEA calculation results are in the output file. The format is
Output #1,#2,<#3,#4>,<#5,#6>,...
where the arguments are given in pairs: (#1,#2), (#3,#4), etc.; the first number gives a calculation result. The options are:
- "displacements" to output nodal displacements.
- "forces" to output nodal forces calculated in each element.
- "elementstresses" to output all components of stress calculated in each element and surface tractions in each <a href="imperfect.html">interface</a> elements.
- "nodalstresses" to output average stresses at the nodal points.
- "reactivities" to output reaction forces at all nodes with fixed boundary conditions.
- "energy" to output strain energy of each element and the total strain energy.
Each output option is followed by an option that determines what is included in the option file. These options are:
- "yes" means fully output the preceding option. Fully option means to output all nodal results are all element results.
- "no" means to completely omit the preceding option.
- "selected" means to only output result relevant to selected nodes, which are selected as described below. If no nodes are selected, this mode will result in no output for that option.
Selecting Nodes
You can select nodes for any output option using the "selected" style with the following commands:
- SelectLine command
- The SelectLine command is used to select all nodes near a line and it is available in two version:
SelectLine #1,#2,#3,#4,<#5>
- or
SelectLine #6
- where
- (#1, #2) and (#3, #4) define (x, y) coordinates (in mm) for the points at the beginning and end of the line (or (R, Z) coordinates if axisymmetric).
- #5 is optional tolerance (in mm).
- #6 is the id of a previously defined path.
- SelectPoint command
- The SelectPoint command is used to select a single node and it is available in two version:
SelectPoint #1,#2
- or
SelectPoint #3
- where
- (#1, #2) define (x, y) coordinates (in mm) for a point (or (R, Z) coordinates if axisymmetric). The node closest to that point will be selected.
- #3 is a previously defined key point. The node at that key point will be selected.
- Select command
- The Select command (on a line by itself with no arguments) can be used within a FixLine Command to select all nodes on the defined line or within a FixPoint Command to select a single node.
XML Input Files
The Output and Select commands are used to determine what FEA calculation results are in the output file. The format within the main header is:
<Output>YYYYNY</Output> <Select node='1'/> <Select node='23'>
The text of the Output command has 1 to 6 letters, each of which must be 'Y', 'C', or 'N' &emdash; 'Y' means that result is fully included in the file; 'C' means that result is conditionally included only if it is relevant to one of a set of preselected nodes; and 'N' means that result is not included in the file. The six output options are listed above.
To preselect nodes for the 'C' option, include one or mode Select commands in the main header using its node attribute to specify the node by number. This method, however, is typically not very useful. A better way to select nodes in XML files is to select them using BCLine or BCPt commands.
Notes
- If no Output command is used, the default output will be "yes" (or 'Y') for all options except "reactivities", which will be "no" (or 'N')
- The "reactivities" and "energy" options can only be "yes" (or 'Y') or "no" (or 'N'); if "selected" (or 'C') is used it will be treated like a "yes" (or 'Y').