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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

74<br />

<strong>Adams</strong>/<strong>Solver</strong><br />

Prerequisite<br />

FLEX_BODY statement in dataset<br />

Calling Sequence<br />

CALL NMODES (id, nq, errflg)<br />

Input Argument<br />

id An integer variable containing the identifier of the FLEX_BODY<br />

statement for which the number of modal generalized coordinates should<br />

be retrieved.<br />

Output Argument<br />

nq An integer that indicates the number of modal generalized coordinates<br />

associated with the specified FLEX_BODY.<br />

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

<strong>to</strong> NMODES.<br />

Caution: • The value of nq will be zero and errflg will return true if there is no active<br />

FLEX_BODY corresponding <strong>to</strong> id.<br />

Example<br />

For samples of how NMODES 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 />

POLY<br />

• sysary_sample.acf<br />

• sysary_sample.adm<br />

• sysary_sample.f<br />

• sysary_sample.mtx<br />

• The value of nq may be wrong when is true.<br />

The POLY general subroutine evaluates a polynomial.

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

Saved successfully!

Ooh no, something went wrong!