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.

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

C --- COMMON Blocks -----------------------------------<br />

C<br />

COMMON...<br />

C<br />

C === Executable code =================================<br />

C<br />

C Write out the information which appears in the COMMON<br />

C blocks, through which this routine shares information<br />

C with other user-written subroutines.<br />

C<br />

WRITE (IUNIT) ...<br />

C<br />

RETURN<br />

END<br />

Example<br />

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

SENSUB<br />

The SENSUB evaluation subroutine computes the values sensed by a SENSOR statement (C++ or<br />

FORTRAN). SENSUB is optional. You only need it if you do not want <strong>to</strong> use a function expression in<br />

the SENSOR statement.<br />

Use<br />

Corresponding Statement<br />

Calling Sequence<br />

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

195

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

Saved successfully!

Ooh no, something went wrong!