OutCmd()

Print out a command in the exported file.

Usage

OutCmd( cmd, name=None, enum=None )

Parameters

cmd (string)
The command name which is written in the exported file.
name (string)
The name that is written after the cmd in double-quote inside parentheses.
enum (string)
The name that is written after the cmd without double-quote inside parentheses.

Return Value

None

Errors

  • The cmd must exist and be a valid string.
  • One or both of name and enum must be None.

Description

This routine prints out a command in the exported file. The command name is given by cmd. For example,
specName= 'species ' + specId + ': ' + name
OutCmd('VOLUME_SPECIES_SOURCE', name=specName)

There are three valid ways to call to OutCmd():

Case 1:
OutCmd('ANALYSIS')
which yields:
ANALYSIS{
Case 2:
OutCmd('MULTIPLIER_FUNCTION',name='My MF')
which yields:
MULTIPLIER_FUNCTION("My MF"){
Case 3:
OutCmd('NODAL_INITIAL_CONDITION',enum='velocity')
which yields:
NODAL_INITIAL_CONDITION(velocity){