Welcome to Adams/Solver Subroutines - Kxcad.net
Welcome to Adams/Solver Subroutines - Kxcad.net
Welcome to Adams/Solver Subroutines - Kxcad.net
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
152<br />
<strong>Adams</strong>/<strong>Solver</strong><br />
Input Arguments<br />
alpha A double-precision variable that specifies the value of the independent<br />
parameter a which CURSUB uses <strong>to</strong> evaluate a curve. <strong>Adams</strong>/<strong>Solver</strong><br />
restricts a <strong>to</strong> be:<br />
Greater than or equal <strong>to</strong> the MINPAR value on the CURVE statement (-1.0<br />
by default).<br />
Less than or equal <strong>to</strong> the MAXPAR value on the CURVE statement (1.0 by<br />
default).<br />
id An integer variable that provides the identifier of the CURVE statement,<br />
which requests information from the CURSUB. <strong>Adams</strong>/<strong>Solver</strong><br />
au<strong>to</strong>matically derives additional information (such as the par argument)<br />
from the identifier of the corresponding statement.<br />
iflag A logical variable that <strong>Adams</strong>/<strong>Solver</strong> sets <strong>to</strong> TRUE. for the initial call <strong>to</strong><br />
CURSUB. In general, you do not need <strong>to</strong> check this flag in the subroutine.<br />
However, you can check it if computations occur that require evalution at the<br />
beginning of the simulation. In this case, if iflag is true, then the subroutine<br />
should evaluate the computations.<br />
iord An integer variable that specifies the order of the derivative that CURSUB<br />
returns. The possible values are:<br />
zero (return curve coordinates)<br />
one (return first derivatives with respect <strong>to</strong> a)<br />
two (return second derivatives with respect <strong>to</strong> a).<br />
npar An integer variable that indicates the number of constants specified in the<br />
USER parenthetical list. The primary purpose of npar is <strong>to</strong> provide the<br />
CURSUB evaluation subroutine with the number of values s<strong>to</strong>red in the par<br />
array.<br />
par A double-precision array of constants that is taken in order from the USER<br />
parenthetical list of the CURVE statement.