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.

Prerequisite<br />

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

Require input values, which must be obtained by a previous call <strong>to</strong> the dimension query utility<br />

subroutines.<br />

Calling Sequence<br />

CALL GSE_X(X,NS)<br />

CALL GSE_XDOT(XDOT,ND)<br />

CALL GSE_XD(XD,ND)<br />

CALL GSE_U(U,NI)<br />

Input Arguments<br />

NS Integer - the number of continuous states (used for validation)<br />

ND Integer - the number of discrete states (used for validation)<br />

NI Integer - the number of outputs (used for validation)<br />

Output Arguments<br />

X Double-precision array of dimension NS, the continuous states<br />

XDOT Double-precision array of dimension NS, the time derivative of the<br />

continuous states (IMPLICIT GSE only)<br />

XD Double-precision array of dimension ND, the discrete states<br />

U Double-precision array of dimension NI, the inputs<br />

Caution: • If the incorrect validation integer value is provided, <strong>Adams</strong>/<strong>Solver</strong> (C++) will s<strong>to</strong>p<br />

with an error message.<br />

Partial derivative entry utility subroutines: GSEPAR_X, GSEMAP_XDOT, GSEPAR_U<br />

The partial derivative entry utility subroutines are used <strong>to</strong> provide <strong>Adams</strong>/<strong>Solver</strong> with:<br />

• The partial derivative of the GSE_DERIV and GSE_OUTPUT with respect <strong>to</strong> the continuous<br />

states, X<br />

• The time derivative of the continuous states, XDOT (implicit GSE only)<br />

• The inputs, U<br />

• Calls <strong>to</strong> GSE_XDOT are only appropriate for GSE elements defined with the<br />

IMPLICIT attribute and should only be made from the GSE_DERIV user<br />

subroutine, not from GSE_OUTPUT.<br />

43

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

Saved successfully!

Ooh no, something went wrong!