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
Mode 10
Frequency response analysis