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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

14<br />

<strong>Adams</strong>/<strong>Solver</strong><br />

Input Arguments<br />

xval A double-precision value that specifies the x value at which AKISPL is<br />

<strong>to</strong> interpolate y.<br />

zval A double-precision value that specifies the z value at which AKISPL is<br />

<strong>to</strong> interpolate y.<br />

id An integer variable that specifies the identifier of the corresponding<br />

SPLINE statement.<br />

iord An integer variable that specifies the order of the derivative that AKISPL<br />

is <strong>to</strong> return. The order is usually zero, but it can be one or two.<br />

Output Arguments<br />

array A double-precision array of length three. If iord equals zero, array(1)<br />

returns the value of y that AKISPL calculates. If iord equals one, array<br />

returns:<br />

Extended Definition<br />

∂ y<br />

-----<br />

∂ x<br />

2<br />

y<br />

∂<br />

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

AKISPL accesses data in a SPLINE statement (C++ or FORTRAN), using the Akima cubic-curve fitting<br />

method <strong>to</strong> fit a spline <strong>to</strong> the data (that is, <strong>to</strong> add interpolated points), 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 the dependent variable.<br />

and , respectively. If iord equals two, array returns:<br />

Note that:<br />

∂ y-----<br />

∂ z<br />

2<br />

y<br />

∂<br />

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

∂ x∂ z<br />

2<br />

y<br />

∂<br />

∂ 2 -----z<br />

, , and , respectively.<br />

2<br />

y<br />

∂ ∂<br />

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

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

∂ z∂ x ∂ x∂ z<br />

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

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

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

• The second partial derivatives of the dependent variable.<br />

If the spline data input with the SPLINE statement has one independent variable, <strong>Adams</strong>/<strong>Solver</strong> uses a<br />

cubic polynomial <strong>to</strong> interpolate between points. If the spline data has two independent variables,<br />

<strong>Adams</strong>/<strong>Solver</strong> first uses a cubic interpolation method <strong>to</strong> interpolate between points of the first (x)<br />

2<br />

y

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

Saved successfully!

Ooh no, something went wrong!