ForcesCTRIA3

ForcesCTRIA3
Returns the matrix of results of FORCE in Nastran CTRIA3 elements. The result is a matrix with the same number of
rows that IDs Rows and the same number of columns that IDs Columns.
Syntax
ForcesCTRIA3(Results file;IDs Columns;IDs Rows;Element/LC/Component;Option)
Results file is the path where the op2 or xdb Nastran results file is located .
IDs Columns is a range of 1row x n columns that corresponds to either the Nastran CTRIA3 elements or the Nastran
FORCE components result or the Nastran subcases in which is desirable to obtain the results.
IDs Rows is a range of n rows x 1column that corresponds to either the Nastran CTRIA3 elements or the Nastran
FORCE components result or the Nastran subcases in which is desirable to obtain the results.
Element/LC/Component is a number corresponding to either the Nastran CTRIA3 element or the Nastran FORCE
component result or the Nastran subcase in which is desirable to obtain the results.
Option is a number that indicates the sorting of the results based on previous parameters.
Remarks
•
The last four arguments are related each other, namely, if there are Nastran CTRIA3elements in the range
IDs Columns, in the range IDs Rows only can be either the Nastran FORCE components results or the
Nastran subcases (never Nastran CTRIA3elements), so that if the Nastran subcases are selected in range
IDs Rows, in the argument Element/LC/Component only can be a number corresponding to a FORCE
component result, and therefore the argument Option will always be determined by the three previos
arguments. See Example 1 below.
•
Characteristic of the arguments of the ForcesCTRIA3 function and their associated errors:
o
The arguments IDs Columns and IDs Rows must be sorted in increasing order; if not the function
returns an error.
IDAERO-Documentation
naX2ceLL Help
o
The cells of the ranges IDs Columns and IDs Rows must be numbers (integers); if not the function
returns an error.
IDs Columns (1 row x n columns) integers that can be:
CTRIA3 elements: whatever Nastran CTRIA3 element ID
Subcases: whatever Nastran subcase ID
FORCE components of CTRIA3 elements:
1: Membrane Forces FX
2: Membrane Forces FY
3: Membrane Forces FXY
4: Bending Moments MX
5: Bending Moments MY
6: Bending Moments MXY
7: Transverse Shear Forces QX
8: Transverse Shear Forces QY
IDs Rows (n row x 1 column) integers that can be:
o
The argument Element/LC/Component must always be a number (integer); if not the function
returns an error.
o
CTRIA3 elements: whatever Nastran CTRIA3 element ID
Subcases: whatever Nastran subcase ID
FORCE components of CTRIA3 elements (see above)
Element: an integer which corresponds with the Nastran CTRIA3 element ID
Component: an integer between 1 and 8, which corresponds with the Nastran result
component that shown above.
Subcase: an integer which corresponds with the Nastran subcase ID
The argument Option must be a number from 1 up to 6 according to table below (which
corresponds with the sort of the results). See Example 1; if not the function returns an error.
Example 1
In this example the function ForcesCTRIA3 is used to obtain a matrix of results of the MEMBRANE FORCES FX in
IDAERO-Documentation
naX2ceLL Help
five CTRIA3 elements (Nastran IDs: 250, 300, 556, 1785, 1786) and for three load cases (Nastran Subcases IDs:
100100, 100200, 100300).
Since the elements (5) are selected via IDs Columns and the subcases (3) via IDs Rows, the matrix of results will
have a dimension of 3 rows x 5 columns. The Element/LC/Component (which actually corresponds to Component
because of that the IDs Columns are elements and the IDs Rows are subcases) argument is 1, therefore the result
shown will be the MEMBRANE FORCES FX for each element and each subcase. Due to this, the argument Option is
also 1, which means that CTRIA3 elements are selected as a range of columns, subcases as a range of rows and
component as a single cell.
There are two options to fill the matrix of results:
•
Via function wizard (See Example 2)
•
Via excel worksheet directly (recommended and treated in this example). In this case, the parameters of
ForcesCTRIA3 function are the followings:
o
o
o
o
o
Results file > cell B2 (the path of the op2 or xdb file from which results are extracted)
IDs Columns > range D5:H5 CTRIA3 elements sorted in increasing order in which is desirable to
obtain the results: 250 300 556 1785 1786)
IDs Rows > range C6:C8 (subcases sorted in increasing order in which is desirable to obtain the
results: 100100 100200 100300)
Element/LC/Component > cell B3 (component of the Nastran CTRIA3 FORCE component; in this
case 1 = MEMBRANE FORCES FX in CTRIA3 element)
Option > cell B4 (the type that indicates the order in which the results are presented; 1 =
Element/Subcase/Component = Elements in columns and Subcases in rows and Component in a
cell)
Once the meaning of the parameters are clarified, there are two equivalent manners for writing the results:
•
In the cell D6 write =ForcesCTRIA3(B2;D5:H5;C6:C8;B3;B4) and push Enter.
The cell D6 show the result for the first element (250) and the first subcase (100100).
IDAERO-Documentation
naX2ceLL Help
Now select the range D6:H8 to show the result for all the elements and subcases, click in the formula bar and
introduce the command Ctrl + Shift + Enter to obtain the result in all the range.
•
Select the range D6:H8 and in the formula bar write =ForcesCTRIA3(B2;D5:H5;C6:C8;B3;B4).
Finally introduce the command Ctrl + Shift + Enter to obtain the result in all the range.
Example 2
In this example the function ForcesCTRIA3 is used to obtain a matrix of results of the MEMBRANE FORCES FX in five
CTRIA3 elements (Nastran IDs: 250, 300, 556, 1785, 1786) and for three load cases (Nastran Subcases IDs: 100100,
100200, 100300), as the example 1, but via wizard.
Via wizard the input values to introduce are the following ones:
•
Results file > cell B2 (the path of the op2 or xdb file from which results are extracted)
IDAERO-Documentation
naX2ceLL Help
•
IDs Columns > range D5:H5 (CTRIA3 elements sorted in increasing order in which is desirable to obtain the
results: 250 300 556 1785 1786)
•
IDs Rows > range C6:C8 (subcases sorted in increasing order in which is desirable to obtain the results:
100100 100200 100300)
•
Element/LC/Component > cell B3 (component of the Nastran CTRIA3 FORCE component; in this case 1
= MEMBRANE FORCES FX in CTRIA3 element)
•
Option > cell B4 (the type that indicates the order in which the results are presented; 1 =
Element/Subcase/Component = Elements in columns and Subcases in rows and Component in a cell)
IDAERO-Documentation
naX2ceLL Help
Once the input parameters are introduced, the results are obtained in the excel cells as explained in the example 1.
IDAERO-Documentation
naX2ceLL Help