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.

*/<br />

struct s<strong>Adams</strong>Vforce<br />

{<br />

int ID;<br />

int NPAR;<br />

const double* PAR;<br />

int I;<br />

int JFLOAT;<br />

int RM;<br />

};<br />

Examples<br />

For an example of this subroutine, see vfosub.f.<br />

VTOSUB<br />

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

The VTOSUB evaluation subroutine computes <strong>to</strong>rque components for a VTORQUE statement (C++ or<br />

FORTRAN). VTOSUB is optional. You only need it if you don't want <strong>to</strong> use function expressions in the<br />

VTORQUE statement.<br />

Use<br />

Corresponding Statement<br />

Calling Sequence<br />

SUBROUTINE VTOSUB(id, time, par, npar, dflag, iflag, result)<br />

Input Arguments<br />

id An integer variable that contains the ID of the VTORQUE statement<br />

requesting information from VTOSUB. From the identifier, <strong>Adams</strong>/<strong>Solver</strong><br />

au<strong>to</strong>matically recognizes other information (such as the par argument) that is<br />

available in the corresponding statement.<br />

time A double-precision variable through which <strong>Adams</strong>/<strong>Solver</strong> conveys the<br />

current simulation time.<br />

par A double-precision array of constants taken in order from the USER<br />

parenthetical list of the VTORQUE statement.<br />

233

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

Saved successfully!

Ooh no, something went wrong!