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.

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

This user-defined subroutine is new for <strong>Adams</strong>/<strong>Solver</strong> (C++) v2006r1 and gives the GSE the ability <strong>to</strong><br />

set the STATIC_HOLD attribute itself. That is, the formulation of a GSE can be changed without<br />

changing the corresponding <strong>Adams</strong> model (.amd).<br />

Calling Sequence and Structure<br />

SUBROUTINE GSE_SET_STATIC_HOLD (ID, STATIC_HOLD)<br />

Input Arguments<br />

ID An integer variable that gives the identifier of the GSE statement requesting information<br />

from the GSE subroutine.<br />

Output Arguments<br />

STATIC_HOLD An integer specifying whether the GSE formulation has the STATIC_HOLD<br />

attribute set. A nonzero (true) value for STATIC_HOLD specifies that that GSE has<br />

its STATIC_HOLD attribute set.<br />

Example<br />

C<br />

C+=================================================================*<br />

C<br />

SUBROUTINE GSE_SET_STATIC_HOLD (ID, STATIC_HOLD)<br />

C<br />

C Inputs:<br />

C<br />

INTEGER ID<br />

C<br />

C Outputs:<br />

C<br />

INTEGER STATIC_HOLD<br />

C<br />

C Continuous variables are held constant during static or<br />

C quasi-static simulations.<br />

C<br />

STATIC_HOLD = 1<br />

RETURN<br />

END<br />

C<br />

C+=================================================================*<br />

C<br />

GTARAY<br />

51

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

Saved successfully!

Ooh no, something went wrong!