HyperWorks Solvers

GETMOD

GETMOD

Previous topic Next topic No expanding text in this topic  

GETMOD

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

Subroutine Type

Utility/Data Access

Definition

Retrieves the analysis mode during MotionSolve execution.  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.

Calling Syntax

Fortran

CALL GETMOD (MODE)

 

C

c_getmod(mode)

 

Python

mode = py_getmod()

 

MATLAB

mode = m_getmod()

Input Arguments

No input arguments.

Output Values

[integer] mode

An integer value that contains the type identifier corresponding to the current analysis executed by MotionSolve.

Mode 1 – kinematics
Mode 2 – reserved
Mode 3 – reserved
Mode 4 – dynamics
Mode 5 – statics
Mode 6 – quasi statics
Mode 7 – linear

See Also:

Data Access Subroutines