02.04.2013 Views

Welcome to Adams/Solver Subroutines - Kxcad.net

Welcome to Adams/Solver Subroutines - Kxcad.net

Welcome to Adams/Solver Subroutines - Kxcad.net

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Input Argument<br />

<strong>Welcome</strong> <strong>to</strong> <strong>Adams</strong>/<strong>Solver</strong> <strong>Subroutines</strong><br />

id An integer variable that specifies the ID of the FLEX_BODY statement.<br />

Output Argument<br />

mode An integer array that contains the original mode numbers of all the active<br />

modes associated with the specified FLEX_BODY.<br />

freq A double-precision array that contains the modal frequencies, in cycles per<br />

user-defined time, of all active modes associated with the specified<br />

FLEX_BODY.<br />

errflg A logical variable that returns true if an error has occurred during the call <strong>to</strong><br />

MODINF.<br />

Caution: You must be sure mode and freq are dimensioned large enough <strong>to</strong> contain all the values<br />

returned by MODINF. You can check the number of active modes using NMODES.<br />

Example<br />

For examples of how MODINF is used, see the following files:<br />

For Windows, in the direc<strong>to</strong>ry /install_dir/solver/samples, where install_dir is the direc<strong>to</strong>ry in which you<br />

installed your <strong>Adams</strong> software.<br />

For UNIX, in the direc<strong>to</strong>ry /install_dir/solver/samples, where install_dir is the direc<strong>to</strong>ry in which you<br />

installed your <strong>Adams</strong> software.<br />

• sysary_sample.acf<br />

• sysary_sample.adm<br />

• sysary_sample.f<br />

• sysary_sample.mtx<br />

NMODES<br />

NMODES returns the number of modal generalized coordinates associated with a FLEX_BODY<br />

statement (C++ or FORTRAN).<br />

Use<br />

Called By<br />

When errflg is true, the values of mode and freq may be wrong.<br />

Any user-written subroutine<br />

73

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!