Remarks and Examples

Remarks and examples for the command VARIABLE.

This page discusses:

Remarks

  1. Definition can be done by direct allocation of a number or a database entry or by linking several numerical variables. Variables make different commands (for example, STOP, OBJ_FUNC) much more flexible. A numerical variable can have the following status:
    • NOT_CHECK: The variable is not yet determined.
    • UNSET: The variable cannot be determined.
    • SET: The value of the variable is determined and has been saved.
  2. Only variables of TYPE DISP_X, DISP_Y, DISP_Z and ROT_X, ROT_Y, ROT_Z and REACTION_FORCE_X, REACTION_FORCE_Y, REACTION_FORCE_Z and REACTION_MOMENT_X, REACTION_MOMENT_Y, REACTION_MOMENT_Z and INTERNAL_FORCE_X, INTERNAL_FORCE_Y, INTERNAL_FORCE_Z and INTERNAL_MOMENT_X, INTERNAL_MOMENT_Y, INTERNAL_MOMENT_Z are admitted for COMBINE using SUB, SUB_ABS or VAR_OPER. Absolute displacements are not allowed for combination. Mean values of displacements can be calculated using this option.
  3. The parameter VARIABLE can also be used to define operands for other VAR_OPER items. In this case, only two (or 2-4) entries are admitted, weights are not admissible, and their order is significant.
  4. Plastic strain values (TYPE = STRAIN_PLASTIC) are calculated by Tosca Structure and might differ from your solver results.

Examples

VARIABLE
 ID_NAME  = var_01
 DEF_TYPE = FIX
 VALUE    = 10.5
END_

VARIABLE
 ID_NAME  = var_02
 DEF_TYPE = SYSTEM
 TYPE     = ITER
 UPDATE   = EVER
END_

VARIABLE
 ID_NAME    = var_03
 DEF_TYPE   = SYSTEM
 TYPE       = SIG_MISES
 EL_GROUP   = my_el_group
 GROUP_OPER = MAX
 UPDATE     = EVER
END_

VARIABLE
 ID_NAME         = DISP_TIP_RIGHT
 TYPE            = DISP_Z
 DEF_TYPE        = SYSTEM
 LC_SET          = STATIC,1
 GROUP_OPER      = MAX
 NODE            = 517
END_

VARIABLE
 ID_NAME  = MAX_VAL_11_14
 DEF_TYPE = OPER
 VAR_OPER = MAX
 VAR_A    = var_11
 VAR_B    = var_12
 VAR_C    = var_13
 VAR_D    = var_14
END_

VARIABLE
 ID_NAME  = MEAN_VALUE_11_12
 DEF_TYPE = OPER
 VAR_OPER = COMBINE
 VARIABLE = var_11,0.5
 VARIABLE = var_12,0.5
END_