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.

166<br />

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

LOGICAL IFLAG<br />

DOUBLE PRECISION FIELD( 6 )<br />

DOUBLE PRECISION DFDDIS( 6, 6 )<br />

DOUBLE PRECISION DFDVEL( 6, 6 )<br />

C<br />

C ID Identifier of calling FIELD statement<br />

C TIME Current time<br />

C PAR Array of passed statement parameters<br />

C NPAR Number of passed parameters<br />

C DISP Array of I with respect <strong>to</strong> J displacements<br />

C VELO Array of I with respect <strong>to</strong> J velocities<br />

C DFLAG Differencing flag<br />

C IFLAG Initialization pass flag<br />

C FIELD Array of field values<br />

C DFDDIS Displacement partial derivatives<br />

C DFDVEL Velocity partial derivatives<br />

C<br />

C - Local variable definitions -----------<br />

C<br />

...<br />

C<br />

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

C<br />

C Assign readable variable names <strong>to</strong> passed parameters<br />

C<br />

...<br />

C<br />

IF ( IFLAG ) THEN<br />

C<br />

C - Subroutine initialization -----------<br />

C<br />

...<br />

C<br />

ENDIF<br />

C<br />

C - Calculate field component forces --------<br />

C<br />

C X translation field force<br />

C<br />

...<br />

FIELD(1) = ...<br />

C<br />

C Y translation field force<br />

C<br />

...<br />

FIELD(2) = ...<br />

C<br />

C Z translation field force<br />

C<br />

...<br />

FIELD(3) = ...<br />

C<br />

C - Calculate field component <strong>to</strong>rques -------<br />

C

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

Saved successfully!

Ooh no, something went wrong!