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.

Output Arguments<br />

Extended Definition<br />

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

array A double-precision array of length three. The values contained in array<br />

depend on IORD. The table below summarizes what array is <strong>to</strong> contain:<br />

IORD: Array:<br />

0 The interpolated value of<br />

y<br />

Array(0) = y<br />

Array(1) = 0<br />

Array(2) = 0<br />

1 The first partial<br />

derivatives of y with<br />

respect <strong>to</strong> x and z. Array(1) =<br />

2 The second partial<br />

derivatives of y with<br />

respect <strong>to</strong> x and z.<br />

Note that:<br />

∂ 2 y<br />

-----------<br />

∂ z∂ x<br />

Array(2) =<br />

Array(3) = 0<br />

Array(1) =<br />

Array(2) =<br />

Array(3) =<br />

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

subroutine. If CUBSPL detects an error in its calculations, it sets errflg<br />

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

CUBSPL accesses data in a SPLINE statement, using the traditional cubic curve-fitting method <strong>to</strong> fit a<br />

spline <strong>to</strong> the data, and returns one of the following:<br />

• A value for the dependent variable (y) for each value it receives for the independent variable or<br />

variables.<br />

• The first partial derivatives of y with respect <strong>to</strong> the dependent variable(s).<br />

=<br />

∂ 2 y<br />

-----------<br />

∂ x∂ z<br />

∂ y<br />

-----<br />

∂ x<br />

∂ y<br />

-----<br />

∂ z<br />

∂ 2 y<br />

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

∂ 2 y<br />

-----------<br />

∂ x∂ z<br />

∂ 2 y<br />

--------<br />

25

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

Saved successfully!

Ooh no, something went wrong!