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 />

* SENSOR<br />

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

{<br />

int NPAR;<br />

const double* PAR;<br />

};<br />

*/<br />

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

{<br />

int ID;<br />

int NPAR;<br />

const double* PAR;<br />

double VALUE;<br />

double Error;<br />

char Logic[2];<br />

/* struct s<strong>Adams</strong>SensorEval Eval; */<br />

};<br />

Examples<br />

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

SFOSUB<br />

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

The SFOSUB evaluation subroutine computes the force magnitude for an SFORCE statement. SFOSUB<br />

is optional. You only need it if you don't want <strong>to</strong> use a function expression in the SFORCE statement<br />

(C++ or FORTRAN).<br />

Use<br />

Corresponding Statement<br />

Calling Sequence<br />

SUBROUTINE SFOSUB (id, time, par, npar, dflag, iflag, value)<br />

201

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

Saved successfully!

Ooh no, something went wrong!