Import ANSYS File: Parameter Data
Description
Parameter Commands
ANSYS uses *DIM to define an array parameter and specify the dimensions. Straus7 stores the parameter name and array dimensions.
ANSYS uses *SET to assign values to scalar or array parameters. An array parameter must be defined first using the *DIM command before a value can be assigned. Straus7 assigns the values to the specified parameter name and array elements.
ANSYS uses *GET to retrieve a value for an item (e.g., node, element, area) and stores it as a user-named parameter. Straus7 provides some support for this command, limited to the keywords (NODE, ELEM), the items (NUM, COUNT) and the numbers (MIN, MAX, MIND, MAXD).
ANSYS uses *AFUN to specify the units for angular functions in parameter expressions. Angular units may be specified as degrees or radians. Straus7 sets the defined angular units type as the active angular units type for parameter expression evaluation.
Parameter Assignment
Straus7 allows scalar and array parameters to be assigned using the *SET command, or by direct assignment using the "=" operator. For example, the expressions:
*SET, X, 152.83
*SET, Y(1,2), 323.18, 12.77, -156.34
are equivalent to:
X = 152.83
Y(1,2) = 323.18, 12.77, -156.34
Similarly, the expressions:
*GET, MyFirstNode, NODE, 0, NUM, MIND
*GET, MyLastPlate, ELEM, 0, NUM, MAXD
are equivalent to:
MyFirstNode = {the lowest node number imported so far}
MyLastPlate = {the highest plate number imported so far}
Supported Array Types
Straus7 supports the array types ARRAY and TABLE. Three-dimensional arrays are supported for the array type ARRAY (column indexed from 1). For the array type TABLE, two-dimensional arrays with primary variables TIME and TEMP are supported (column indexed from 0).
Supported Operator Types for Parameter Data
Straus7 supports the following ANSYS operator types for parameter data:
ANSYS Operators | Functions |
+ |
Addition |
- |
Subtraction |
* |
Multiplication |
/ |
Division |
** |
Raise to the power of (e.g., X**2 = X^2 = X2) |
( |
Left open bracket |
) |
Right close bracket |
ABS(X) |
Absolute value of X |
EXP(X) |
Exponential of X (eX) |
LOG(X) |
Natural logarithm of X |
LOG10(X) |
Logarithm to the base 10 of X |
SQRT(X) |
Square root of X |
SIN(X) |
Sine of X |
COS(X) |
Cosine of X |
TAN(X) |
Tangent of X |
SINH(X) |
Hyperbolic sine of X |
COSH(X) |
Hyperbolic cosine of X |
TANH(X) |
Hyperbolic tangent of X |
ASIN(X) |
Arcsine of X |
ACOS(X) |
Arccosine of X |
ATAN(X) |
Arctangent of X |
Parameter Evaluation
Straus7 evaluates parameter expressions and assigns the parameter value directly where the expression is specified in a numerical data entry, or where a parameter name is referenced by a numerical data entry.
See Also