GETMOD

Utility/Data Access SubroutineRetrieves the analysis mode during MotionSolve execution.

Definition

The mode is a numerical value that represents the type of analysis currently being executed. The mode can be retrieved from any user subroutine and used to branch the execution depending on its value. A typical example is using the mode to determine if MotionSolve is executing a static or dynamic analysis.

Use

The function can be called by any user-defined subroutine.

Format

Fortran Calling Syntax
CALL GETMOD (MODE)
C/C++ Calling Syntax
c_getmod(mode)
Python Calling Syntax
mode = py_getmod()
MATLAB Calling Syntax
mode =m_getmod()

Output

mode
[integer]
An integer value that contains the type identifier corresponding to the current analysis executed by MotionSolve.
Mode 1
kinematics analysis
Mode 2
reserved
Mode 3
reserved
Mode 4
dynamics analysis
Mode 5
statics analysis
Mode 6
quasi-statics analysis
Mode 7
linear analysis
Mode 9
CONSUB initialization