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.

Input Arguments<br />

Output Arguments<br />

Extended Definition<br />

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

x A double-precision variable that specifies the independent variable. If the<br />

independent variable in the function is time, x is the system variable TIME<br />

(click here <strong>to</strong> see the FORTRAN version of the TIME function or for C++,<br />

click here).<br />

x0 A double-precision variable that specifies a shift in the Fourier sine<br />

function.<br />

w A double-precision variable that specifies the fundamental frequency of<br />

the series. The variable w must be in radians per unit of the independent<br />

variable.<br />

par A double-precision array of coefficients (a0,...,an).<br />

npar An integer variable that indicates the number of coefficients specified in<br />

the Fournier sine series.<br />

iord An integer variable that defines the order of the derivative that FORSIN is<br />

<strong>to</strong> return. IORD can be zero, one, or two.<br />

errflg A logical (true or false) variable that FORSIN returns <strong>to</strong> the calling<br />

subroutine. If FORSIN detects an error in the subroutine call statement, it<br />

sets errflg <strong>to</strong> true before it returns errflg <strong>to</strong> the calling subroutine.<br />

value A double-precision number returned by FORSIN. The meaning of the<br />

quantity depends on the value of IORD. The table below explains in more<br />

detail:<br />

IORD: Value:<br />

0 Value of the FORSIN function.<br />

1 Partial derivative of the FORSIN<br />

function with respect <strong>to</strong> the<br />

independent variable, x.<br />

2 Second partial derivative of the<br />

FORSIN function with respect <strong>to</strong> the<br />

independent variable, x.<br />

F( x)<br />

∂ F<br />

-----<br />

∂ x<br />

∂ 2 F<br />

∂ 2 -------x<br />

31

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

Saved successfully!

Ooh no, something went wrong!