MODINF

MODINF returns the original mode numbers and the modal frequencies, in cycles per user-defined time, of all active modes 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 MODINF (id, mode, freq, errflg)

Input Argument

 
id
An integer variable that specifies the ID of the FLEX_BODY statement.

Output Argument

 
mode
An integer array that contains the original mode numbers of all the active modes associated with the specified FLEX_BODY.
freq
A double-precision array that contains the modal frequencies, in cycles per user-defined time, of all active modes associated with the specified FLEX_BODY.
errflg
A logical variable that returns true if an error has occurred during the call to MODINF.
 
Caution:  
■You must be sure mode and freq are dimensioned large enough to contain all the values returned by MODINF. You can check the number of active modes using NMODES.
■Flag errflg will be true when there is no FLEX_BODY with the given id or when there are no active modes for the given FLEX_BODY.
■When errflg is true, the values of mode and freq may be wrong.

Example

For examples of how MODINF 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