HyperWorks Solvers

/PARAMETER

/PARAMETER

Previous topic Next topic Expand/collapse all hidden text  

/PARAMETER

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Block Format Keyword

/PARAMETER - Define Parameters in the Starter File

Description

This card defines values of parameters in the Starter file that will be used throughout the RADIOSS model. The values replace the corresponding parameter names in various RADIOSS cards. The option allows easier parameterization of the model.

Format

(1)

(2)

(3)

(4)

(5)

(6)

(7)

(8)

(9)

(10)

/PARAMETER/range/type/Parameter_ID

parameter_title

 

If range = GLOBAL

Parameter value is used everywhere in the input deck (except card keyword definitions and titles).

 

If range = LOCAL

Parameter is specified and used only inside of a certain submodel (//SUBMODEL).

GLOBAL parameter definition with same parameter name will be overwritten.

 

If type = INTEGER

(1)

(2)

(3)

(4)

(5)

(6)

(7)

(8)

(9)

(10)

ParName

Ivalue

 

 

 

 

 

 

 

 

If type = REAL

(1)

(2)

(3)

(4)

(5)

(6)

(7)

(8)

(9)

(10)

ParName

Rvalue

 

 

 

 

 

 

 

If type = INT_EXPR or REAL_EXPR

(1)

(2)

(3)

(4)

(5)

(6)

(7)

(8)

(9)

(10)

ParName

Expression

... Expression ...

Up to 10 lines

 

If type = TEXT

(1)

(2)

(3)

(4)

(5)

(6)

(7)

(8)

(9)

(10)

ParName

Length


 

 

 

 

 

 

Text

Up to 10 lines

hmtoggle_plus1Flag Definition

Field

Contents

Parameter_ID

Parameter identifier

(Integer, maximum 10 digits)

ParName

Parameter name (Comment 3)

(Character string, maximum of 9 characters and MUST be aligned to the left of the field)

Ivalue

Parameter integer value

(Integer, maximum 10 digits)

Rvalue

Parameter real value

(Real, maximum 20 digits)

Expression

Parameter expression (see Templex syntax rules for more details)

Length

Length of character parameter

= 0: the full line is read.

(Integer, maximum 10 digits)

Text

Parameter text

(Character string, maximum of 10 characters)

hmtoggle_plus1Comments
1.All /PARAMETER/GLOBAL cards should be defined between the #RADIOSS Starter and /BEGIN cards of a master Starter file.
2./PARAMETER/LOCAL cards can be specified and used only inside of a submodel (//SUBMODEL). Local parameter overwrites a global parameter definition with the same name inside of the submodel, where it is specified. Local parameters can be specified in any part of submodel, not necessary at the beginning.
3.Parameters with a name “ParName” can be referenced after /BEGIN card for global parameters and in any place of submodel for local parameters, using the syntax, &ParName. Multiple references of such parameters are possible. Comment lines, names of include files, and keywords cannot be used as parameters.
4.The &ParName input found after /BEGIN is replaced by the corresponding parameter value starting at “&” position and using:
10 digits for an integer
20 digits for a real value

The character '&' can be used in the model only for referring parameters. It should not be used in card titles.

In the example below, a parameter named “TTF” is defined in the /PARAMETER card. The value of the parameter (10) is aligned to the left of the field. The parameter is used with an  additional prefix “&”, in the /SENSOR card.

#RADIOSS STARTER

#---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----|

/PARAMETER/GLOBAL/REAL/1

Time to fire

TTF                         10

#---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----|

. . .

/BEGIN

. . .

/SENSOR/TIME/1

Airbag fire time use global parameter TTF=10.0

&TTF

. . .

//SUBMODEL/1

# sub-model title

submodel

#  Off_dft   Off_nod   Off_elt  Off_part   Off_mat  Off_prop

         0         0         0         0         0         0

#include airbag_submodel.inc

//ENDSUB

#---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----|

. . .

/END

 

In include file “airbag_submodel.inc”:

 

/PARAMETER/LOCAL/REAL/1

Time to fire

TTF       20

. . .

#---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----|

/SENSOR/TIME/2

Use local parameter TTF, it is now covered to 20.0 inside include file

&TTF

. . .

#ENDDATA

5.If the minus (-) sign is used before the prefix “&”, as follows:

-&ParName”

Then, the value of the parameter is multiplied by -1. In this case, ParName must not exceed 8 digits.

For example, if you need exchange external surface normal for airbag:

Set parameter s_part=4 and specific “-&s_part” in surface definition, then a value of “-4” will be substituted for “-&s_part”. -> shell normal reversed.
Set parameter s_part=-4 and specific “&s_part” in surface definition, then a value of “-4” will be substituted for “&s_part”. -> shell normal reversed.
Set parameter s_part=-4 and specific “-&s_part” in surface definition, then a value of “4” will be substituted for “-&s_part”. -> shell normal not reversed.

#---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----|

/PARAMETER/GLOBAL/INTEGER/8

surf part for airbag

s_part             4

#---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----|

. . .

#---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----|

/SURF/PART/4

Airbag - surf normal of part 4 reversed with -4

        2-&s_part           5         6         7         8

#---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----|

/END

6.The expression parameter cards, type /INT_EXPR or /REAL_EXPR accept parameters as arguments. These argument parameters should be defined before these expression parameter cards in the input deck. The expression results are calculated to a maximum accuracy of 12 digits.

In the example below, parameters “MW” and “CPM” are defined before the expression parameter card type /REAL_EXPR. The expression parameter card (/4) calculates the value of CP which is equal to “CPM/MW”. The value MW1 cannot be used in this expression parameter card (/4) because it is defined after the /REAL_EXPR card. If “CPM/MW1” is specified in the expression parameter card (/4), the program runs into an error.

RADIOSS STARTER

#---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----|

/PARAMETER/GLOBAL/REAL/2

Molar mass of inflating gas

MW                        .025

#---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----|

/PARAMETER/GLOBAL/REAL/3

Cp heat constant molar

CPM                         13

#---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----|

/PARAMETER/GLOBAL/REAL_EXPR/4

Cp heat constant mass

CP        CPM/MW                                                                                  

#---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----|

/PARAMETER/GLOBAL/REAL/9

Molar mass of inflating gas

MW1                       .024

#---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----|

7.During the execution of the expression parameter types INT_EXPR or REAL_EXPR, RADIOSS Starter calls an external executable: templex. This program is available in the standard HyperWorks installation. The call to templex.exe is automatically managed by the RADIOSS Graphical User Interface (GUI) in the installation.
8.If the RADIOSS GUI is not used, the following environment variables need to be defined:
ALTAIR_HOME which points to the Altair directory, for example:
 
Windows:  C:\Program Files\Altair\[version]
Linux: /opt/altair/[version]/altair
TEMPLEX_PATH
 
Windows: =%ALTAIR_HOME%\hw\bin\[win64]\
Linux:  $ALTAIR_HOME/hw/bin/linux64/
On Linux, update LD_LIBRARY_PATH with the following path:

$ALTAIR_HOME/hw/tcl/tcl[version]/linux64/lib;$ALTAIR_HOME/hw/bin/linux64; $ALTAIR_HOME/hw/lib/linux64

Note: The fields within [] need to be updated with the correct values.

Create a text file mytest containing:

{test=1}

results={test}

 

Launch the newly created text file mytest using the templex executable:
 
Windows: %ALTAIR_HOME%\hw\bin\win64\templex.exe mytest
Linux: $ALTAIR_HOME/scripts/templex mytest

 

If it returns " results = 1", the environment has been correctly setup.

9.Type could also be TEXT.

In the example below, the string “         1         1         0” is defined for TEXT parameter “var”. This parameter is used in part definition. The property ID 1 and material ID 1 have been set for part 5.

#---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----|

/PARAMETER/GLOBAL/TEXT/7

text parameter for part 5

var

        1         1         0

#---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----|

. . .

#---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----|

/PART/5

Chamber_2_lower

&var

#---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----|

10.TEXT type parameter can be stitched together with character “$”:

hmtoggle_plus1        Example

Text parameter definition:

/PARAMETER/GLOBAL/TEXT/1

Update output

Name       12

EXAMPLE_TEXT

…….

 

Text parameter reference. Text parameter is stitched with text string “123456”:

 

/TH/NODE/2

&Name$123456

#     var1      var2      var3      var4      var5      var6      var7      var8      var9     var10

DEF      

#    NODid     Iskew                                           NODname

        5              0&Name$123456

 

After parameter replacement:

TH GROUP:         2,EXAMPLE_TEXT123456                                                                                                                                                                                                                                                                                                                                                                                                                                           ,  6 VAR,    1 NODE      :

-------------------

DX        DY        DZ        VX        VY        VZ

   NODE  SKEW(OR FRAME)     NAME

        5         0             0EXAMPLE_TEXT123456