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.

72<br />

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

Calling Sequence<br />

CALL MODIFY (comand, istat)<br />

Input Argument<br />

comand A character string or variable that corresponds <strong>to</strong> the command<br />

<strong>to</strong> be executed.<br />

Output Argument<br />

istat An integer variable that indicates whether or not the call <strong>to</strong> MODIFY was<br />

successful.<br />

Extended Definition<br />

You must build a character string for the input and pass the string <strong>to</strong> MODIFY as if it were an actual<br />

interactive command. The general subroutines RSTRNG and ISTRNG are available <strong>to</strong> help build these<br />

strings. CONSUB can call MODIFY. Program control returns <strong>to</strong> CONSUB after execution of the<br />

command(s) issued from MODIFY. For an example of a CONSUB driver subroutine that calls MODIFY,<br />

see CONSUB.<br />

MODINF<br />

MODINF returns the original mode numbers and the modal frequencies, in cycles per user-defined time,<br />

of all active modes associated with a FLEX_BODY statement (C++ or FORTRAN).<br />

Use<br />

Called By<br />

Any user-written subroutine<br />

Prerequisite<br />

FLEX_BODY statement in dataset<br />

Calling Sequence<br />

CALL MODINF (id, mode, freq, errflg)<br />

If istat = 0, the call <strong>to</strong> MODIFY was successful.<br />

Caution: <strong>Adams</strong>/<strong>Solver</strong> ignores any part of an argument following five blank spaces. Therefore,<br />

when using string concatenation <strong>to</strong> build a command, it is important <strong>to</strong> remove trailing<br />

blanks. Do this by referring only <strong>to</strong> the nonblank portion of the string.

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

Saved successfully!

Ooh no, something went wrong!