Next: RESULTS CALCULATE EXTRAPOL
Up: RESULTS CALCULATE
Previous: RESULTS CALCULATE DIFFERENT Control
This command allows the user to perform calculations on the attributes of result data sets stored in the database. The resulting data is stored as either a new or an existing loadcase
Loadcase_name | = | The name of the loadcase in which the calculated results |
will be stored. | ||
Step_number | = | This defines the step number required for non linear analysis |
results. |
The command has four parts each having its own prompt sequence, they are:
- Output loadcase definition. | |
- Expression definition. | |
- Operand definition. | |
- Output attribute definition. |
If the `/' character is used to abort, the user will be placed at the begining of the current definition except when the user is at the begining of the definition when the complete command will be abandoned.
OUTPUT LOADCASE DEFINITION
The loadcase name given as part of the command defines the name of the loadcase which will be used to store the results of the calculation. If required a step number can be specified as well.
If the specified loadcase does not exist then the user is prompted for a 20 character title to be associated with it.
20 Character Ref = new loadcase text
If a step number is specified with the loadcase name then further prompts will be issued to define the type of analysis, starting with
ANALYSIS TYPE =
The user has the choice between `STATIC', `TIME-STEP', `FREQUENCY', `LOAD-STEP', `USER-1NAM' and `USER-2NAM'. If `TIME-STEP', `FREQUENCY' or `LOAD-STEP' are selected then the user will be prompted to enter the associated step value, if `USER-1NAM' is chosen then the user will be prompted to enter the analysis name followed by the associated step value, and if `USER-2NAM' is chosen then the user will be prompted to enter an analysis name followed by an associated step value twice.
EXPRESSION DEFINITION
The user is then prompted to enter an expression by the following prompt:
EXPRESSION =
An expression is defined in terms of operands and unary and binary operators. Expressions are evaluated in left to right order with no operator precedence. Brackets cannot be used. FEMVIEW uses an accumulator to store the intermediate results.
The syntax of an expression is :-
->[Subtract]-+-> [Unary operator] Operand -+--->
^ |
| v
+<--[Binary operator] --------+
An Operand is a user supplied name of up to eight alphanumeric characters. This name will be used to prompt for its definition (see Operand Definition below). An operand name may appear more than once in an expression.
Unary operators perform an operation on the subsequent operand putting the result in the accumulator. Available unary operators are defined below.
POWER | Each component of the operand is raised to the power of the input | |
real number. | ||
SQUARE ROOT | The square root is taken of each component of the operand. | |
RESULTANT | Forms the resultant of a vector, produces a SCALAR. | |
GRADIENT | Forms the gradient of a scalar, produces a VECTOR. | |
DIVERGENCE | Forms the divergence of a vector, produces a SCALAR. | |
CURL | Forms the curl of a vector, produces a VECTOR. | |
Calculates the Von Mises Stress from a 3 by 3 symmetric `stress' | ||
matrix, produces a SCALAR. | ||
Calculates the Principal Stresses from a 3 by 3 symmetric `stress' | ||
matrix, produces 3 Principal stresses, which can be 'sorted'. | ||
See 'RESULTS CALCULATE P-STRESS' | ||
Calculates the Principal Shears from either a 3 by 3 symmetric | ||
`stress' matrix or Principal Stresses, produces 4 SCALARS. | ||
Calculates the Plastic Yield from a 3 by 3 symmetric `stress' matrix, | ||
produces a SCALAR. | ||
Calculates the Pressure from a 3 by 3 symmetric `stress' matrix, | ||
produces a SCALAR. | ||
STRESS | Forms a stress matrix from Principal Stresses. |
Binary operators perform an operation on the current contents of the accumulator and the subsequent operand. Available binary operators are defined below.
ADD | Adds each component of this operand to its corresponding | |
component in the accumulator. | ||
SUBTRACT | Subtracts each component of this operand from its corresponding | |
component in the accumulator. | ||
MULTIPLY | Multiplies the accumulator by the operand by a method determined | |
from data types involved. | ||
DIVIDE | Divides the accumulator by the operand by a method determined | |
from data types involved. | ||
DOT PRODUCT | Forms the dot product of a VECTOR in the accumulator with the | |
VECTOR operand, produces a SCALAR. | ||
CROSS PRODUCT | Forms the cross product of a VECTOR in the accumulator with the | |
VECTOR operand, produces a VECTOR. |
The resultant output types for the MULTIPLY operator are:
SCALAR 'any' | Multiplies each component of `any' data type with the | |
SCALAR, produces `any' data type. | ||
`any' SCALAR | Multiplies each component of `any' data type with the | |
SCALAR, produces `any' data type. | ||
VECTOR VECTOR | Not defined, use DOT or CROSS. | |
VECTOR MATRIX | Performs homogeneous transformation, produces a VECTOR | |
(NB: assumes MATRIX is suitable). | ||
MATRIX VECTOR | Performs homogeneous transformation, produces a VECTOR | |
(NB: assumes MATRIX is suitable). | ||
MATRIX MATRIX | Performs matrix concatenation, produces a MATRIX. |
The resultant output types for the DIVIDE operator are:
`any' SCALAR | Divides each component of `any' type with the SCALAR, | |
produces `any' data type. | ||
`any' VECTOR | Not defined. | |
SCALAR MATRIX | Inverts the MATRIX and multiplies by SCALAR, produces a | |
MATRIX (NB: assumes MATRIX is suitable). | ||
VECTOR MATRIX | Inverts the matrix and performs homogeneous transformation, | |
produces a VECTOR (NB assumes MATRIX is suitable). | ||
MATRIX MATRIX | Inverts the operand MATRIX and performs matrix | |
concatenation, produces a MATRIX. |
OPERAND DEFINITION
After the expression has been entered the definition of each unique operand will be prompted for by the following sequence.
OPERAND `operand' =
where `operand' is the name of a user entered operand.
The syntax of the operand definition is:
->+->SCALAR-->'value'-------------------->-----------------------+-->
| ^
|->VECTOR-->`x-comp' `y-comp' `z-comp'-------------->----------|
| |
|->MATRIX--> `1,1' `2,1' `3,1' `4,1' `1,2' `2,2' `3,2' `4,2' |
| `1,3' `2,3' `3,3' `4,3' `1,4' `2,4' `3,4' `4,4'->-+
| |
+->LOADCASE->'Loadcase name'--+------->--------+------+ |
+->'Step number'-+ | ^
| |
+------------------------<----------------------------+ |
| |
+---->---+->NODAL ----+----> `attribute name'-->'scale factor'-+
|->ELEMENT --|
|->GAUSSIAN -|
+->INVARIANT +
The first three operand types are constants requiring the input of the indicated numbers.
The fourth type specifies the loadcase from which values for this operand will be taken. If loadcase is specified then the user is prompted for the attribute within the loadcase by:
ATTRIBUTE =
and a scale factor to be applied:
SCALE FACTOR (1.0)= `factor'
the factor will be applied to the components of the attribute before any other processing (default of 1.0).
Notes:
OUTPUT ATTRIBUTE DEFINITION
The preceeding sequences completely define the calculation to be performed and FEMVIEW will determine the type of output that it will produce. FEMVIEW will then prompt for the names of the attribute and components of the result.
OUTPUT ATTRIBUTE NAME = `name'
If output is a vector then further prompts for the components are issued:
COMPONENT (i) NAME = `name'
or if output is a matrix then further prompts:
COMPONENT (i,j) NAME = `name'
Notes:
BATCH FILE INPUT
Commonly used expressions can be stored in named batch files.
For example to rotate a vector by a 45 degree angle about the x axis, a batch file called TRAN45X could be created containing:
MATRIX MULT VECTOR .707 .707 0 0 -.707 .707 0 0 0 0 1 0 0 0 0 1 @
and then invoked by:
EXPRESSION = @TRAN45X
Examples:
To transform a vector, for example displacement, one would enter the following sequence of commands.
RESULTS CALCULATE EXPRESSN CASE4
EXPRESSION => MATRIX MULT VECTOR
OPERAND MATRIX => load case1 ATTRIBUTE => NODAL local SCALE FACTOR (1.0)=> OPERAND VECTOR => VECTOR 0.0 0.0 1.0
OUTPUT ATTRIBUTE NAME => normal COMPONENT (1) NAME => x COMPONENT (2) NAME => y COMPONENT (3) NAME => z
RESULTS CALCULATE EXPRESSN R4 1
20 Character Ref =>dot2
ANALYSIS TYPE => TIME-STEP
TIME STEP =>.5
EXPRESSION =>r1 dot r2
OPERAND R1 => l l1 2 ATTRIBUTE =>n d SCALE FACTOR (1.0)=> OPERAND R2 => l l1 4 ATTRIBUTE =>n d SCALE FACTOR (1.0)=>
OUTPUT ATTRIBUTE NAME =>dot14
Femsys Limited