The MODE function returns the current analysis mode. These are defined as:
1 = Kinematics
2 = Reserved
3 = Initial conditions
4 = Dynamics
5 = Statics
6 = Quasi-statics
7 = Linear analysis
Format
MODE
Caution: | Use the MODE function with care if you use the STATICS argument on the SIMULATE command to request a static or quasi-static simulation of a kinematic system, Adams Solver (C++) performs a kinematic analysis and, consequently, returns a MODE analysis constant of 1 (not 5 or 6). |
Examples
SFORCE/1, TRANSLATION, I=21, J=11
, FUNCTION=IF(MODE-4:0,0,-4*(DM(21,11)-10.6)
This example defines a translational force that is active only during statics, quasi-static, and linear analysis modes. For these analysis modes, the SFORCE acts as a simple spring. For all other analyses, the net force applied by the SFORCE is zero.