Variables

This section shows the placeholder variables in use.

This page discusses:

Overview

The following variables, when used within the statements of the DRIVER-command, are replaced automatically with strings that correspond to the specific run of SIMULIA Tosca Structure.

Variable

Example

__WORKDIR__

E:\scratch\WORK\tosca_job_files\holeplate_dam_stlx

__JOBNAME__

holeplate_dam_stlx

__FE_MODEL_PATH__

E:\scratch\WORK\tosca_job_files\holeplate_dam.inp

__FE_MODEL_FILE__

holeplate_dam.inp

__FE_MODEL__

holeplate_dam

__FE_MODEL_PATH_LIST__

['E:\\scratch\\WORK\\tosca_job_files\\holeplate_dam.inp']

__FE_MODEL_FILE_LIST__

['holeplate_dam.inp']

__FE_MODEL_LIST__

['holeplate_dam']

__LIFE_MODEL_PATH__

E:\scratch\WORK\tosca_job_files\Job-1.stlx

__LIFE_MODEL_FILE__

Job-1.stlx

__LIFE_MODEL__

Job-1

__LIFE_MODEL_PATH_LIST__

['E:\\scratch\\WORK\\tosca_job_files\\Job-1.stlx', 'E:\\scratch\\WORK\\tosca_job_files\\Job-2.stlx']

__LIFE_MODEL_FILE_LIST__

['Job-1.stlx', 'Job-2.stlx']

__LIFE_MODEL_LIST__

['Job-1', 'Job-2']

Using Variables

Use the Variables in the DRIVER section or configuration file without any special symbols. For example:

_work_dir = os.path.join( r'__WORKDIR__', 'SAVE.fesafe' )
_batch    = os.path.join( r'__WORKDIR__', r'__LIFE_MODEL_FILE__' )
_output   = os.path.join( r'__WORKDIR__', r'__LIFE_MODEL__.onf' )
driver.LifeSolver.StandardCallArgs = [ '-project', _work_dir, 'b=%s'%_batch, 'j=refresh', 'mode=surface', 'o=%s'%_output, 'OUTPUT_NODES=1', 'LOGLIVES=0' ]

Note: When you have more than one file (fe-solver or life solver), corresponding files change for every call.

For example, __LIFE_MODEL__ is "Job-1" for the first call and "Job-2" for the second.