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.

160<br />

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

C<br />

C - Evaluate differential equation ---------<br />

C<br />

C Your algorithms<br />

C<br />

...<br />

C<br />

C Assign a value <strong>to</strong> the variable VALUE<br />

C<br />

VALUE = ...<br />

C<br />

RETURN<br />

END<br />

C Style - Pro<strong>to</strong>type<br />

typedef void adams_c_DIFSUB(const struct s<strong>Adams</strong>Diff* diff, double<br />

TIME, int DFLAG, int IFLAG, double* RESULT);<br />

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

{<br />

int ID;<br />

int NPAR;<br />

const double* PAR;<br />

int STATIC_HOLD;<br />

int IMPLICIT;<br />

double IC_R1;<br />

double IC_R2;<br />

};<br />

Examples<br />

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

DMPSUB<br />

The DMPSUB evaluation subroutine computes the modal damping ratios for a FLEX_BODY statement<br />

(C++ or FORTRAN). DMPSUB is optional. You need it only if you want cus<strong>to</strong>m damping that is not the<br />

same for all modes, or if the modal damping changes with time.<br />

Use<br />

Corresponding Statement<br />

Calling Sequence<br />

SUBROUTINE DMPSUB (id, time, par, npar, freq, nmode, h, cratios)

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

Saved successfully!

Ooh no, something went wrong!