NMODES

NMODES returns the number of active modal generalized coordinates associated with a FLEX_BODY statement (C++ or FORTRAN).

Use

Called By

Any user-written subroutine

Prerequisite

FLEX_BODY statement in dataset

Calling Sequence

CALL NMODES (id, nq, errflg)

Input Argument

 
id
An integer variable containing the identifier of the FLEX_BODY statement for which the number of active modal generalized coordinates should be retrieved.

Output Argument

 
nq
An integer that indicates the number of active modal generalized coordinates associated with the specified FLEX_BODY.
errflg
A logical variable that returns true if an error has occurred during the call to NMODES.
 
Caution:  
The value of nq will be zero if the FLEX_BODY has no active modal coordinates; that is the case of rigitized FLEX_BODYs.
Flag errflg will return true if there is no active FLEX_BODY corresponding to id.
The value of nq is not changed when errflag is true.

Example

For samples of how NMODES is used, see the following files:
For Windows, in the directory /install_dir/solver/samples, where install_dir is the directory in which you installed your Adams software.
For Linux, in the directory /install_dir/solver/samples, where install_dir is the directory in which you installed your Adams software.
sysary_sample.acf
sysary_sample.adm
sysary_sample.f
sysary_sample.mtx