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.

162<br />

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

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

typedef void adams_c_DMPSUB(const struct s<strong>Adams</strong>Cratio* flex, double<br />

TIME, const double* FREQS, int NMODE, double STEPSIZE, double*<br />

CRATIOS);<br />

/*<br />

* FLEX_BODY -------------------------------------------------<br />

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

*/<br />

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

{<br />

int ID;<br />

/* int NMAT;<br />

const int* MATRICES;<br />

int VM;<br />

int WM; */<br />

};<br />

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

{<br />

struct s<strong>Adams</strong>FlexBody FlexBody;<br />

int NPAR;<br />

const double* PAR;<br />

};<br />

FIESUB<br />

The FIESUB evaluation subroutine computes the force and <strong>to</strong>rque components and their derivatives for<br />

a FIELD statement (C++ or FORTRAN). FIESUB is optional. You only need it if you don't want <strong>to</strong> use<br />

the constant stiffness and damping matrices in the FIELD statement.<br />

Use<br />

Corresponding Statement<br />

Calling Sequence<br />

SUBROUTINE FIESUB (id, time, par, npar, disp, velo,& dflag, iflag, field, dfddis, dfdvel)

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

Saved successfully!

Ooh no, something went wrong!