11.01.2013 Views

NX Nastran DMAP Programmer's Guide - Kxcad.net

NX Nastran DMAP Programmer's Guide - Kxcad.net

NX Nastran DMAP Programmer's Guide - 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.

Examples:<br />

CASE<br />

Dynamic analysis case control loop driver<br />

1. Extract the load and subcase identification numbers and a parameter value from<br />

each subcase.<br />

SOL 100<br />

COMPILE USER<strong>DMAP</strong><br />

ALTER 2<br />

TYPE PARM,,I,N,NSKIP $<br />

TYPE PARM,,I,Y,MYPRM $<br />

NSKIP=0 $ INITIALIZE<br />

DO WHILE ( NSKIP>=0 ) $<br />

CASE CASECC,/CASE1/’TRAN’/S,N,NSKIP $<br />

PVT PVT,CASE1/ $<br />

PARAML CASE1//’DTI’/1/1//S,N,SUBID $<br />

PARAML CASE1//’DTI’/1/4//S,N,ILOAD $<br />

MESSAGE //’ SUBID=’/SUBID/’ MYPRM=’/MYPRM/<br />

’ ILOAD=’/ILOAD $<br />

ENDDO $<br />

CEND<br />

SUBCASE 101<br />

PARAM,MYPRM,1<br />

LOAD=111<br />

SUBCASE 102<br />

PARAM,MYPRM,-6<br />

LOAD=222<br />

SUBCASE 103<br />

PARAM,MYPRM,4<br />

LOAD=333<br />

SUBCASE 104<br />

PARAM,MYPRM,22<br />

LOAD=444<br />

SUBCASE 105<br />

PARAM,MYPRM,-3<br />

LOAD=555<br />

SUBCASE 106<br />

PARAM,MYPRM,77<br />

LOAD=666<br />

BEGIN BULK<br />

ENDDATA<br />

2. Extract Case Control records 10, 11, and 12.<br />

CASE CASECC,/CASE10/'SLIC'/10/3 $<br />

3. Extract Case Control records with the same MPC, SPC, and SUPORT set<br />

identification numbers beginning at the NSKIP-th record.<br />

CASE CASECC,/CASEBC/'COMM'/S,N,NSKIP/<br />

//////'MPC'/'SPC'/'SUPO' $<br />

815

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

Saved successfully!

Ooh no, something went wrong!