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.

1173<br />

MATMOD<br />

Matrix modification<br />

P1=35 $<br />

MATMOD IM,,,,,/LIST,BOOL/S,N,P1//S,N,SORTED////1 $<br />

then the output matrix LIST for NKEYS=1 could contain either<br />

LIST =<br />

or<br />

LIST =<br />

since there are duplicate terms (0.0's) in the input matrix column and a single key sort<br />

was used.<br />

The Boolean square matrix contains unit values in the appropriate positions so that it<br />

can be used to create the sorted input matrix by means of a simple matrix multiply as<br />

in:<br />

MPYAD BOOL,IM,/IMS/1 $<br />

producing the sorted IM matrix, IMS, as<br />

IMS =<br />

⎧<br />

1.0<br />

⎫<br />

⎪3.0 ⎪<br />

⎪ ⎪<br />

⎪6.0 ⎪<br />

⎨ ⎬<br />

⎪2, 0⎪<br />

⎪<br />

⎪<br />

5.0 ⎪<br />

⎪<br />

⎩4.0 ⎭<br />

⎧<br />

1.0<br />

⎫<br />

⎪3.0 ⎪<br />

⎪ ⎪<br />

⎪2.0 ⎪<br />

⎨ ⎬<br />

⎪6.0 ⎪<br />

⎪<br />

⎪<br />

5.0 ⎪<br />

⎪<br />

⎩4.0 ⎭<br />

⎧<br />

– 2.0<br />

⎫<br />

⎪– 1.0 ⎪<br />

⎪ ⎪<br />

⎪ 0.0 ⎪<br />

⎨ ⎬<br />

⎪ 0.0 ⎪<br />

⎪<br />

⎪<br />

1.0<br />

⎪<br />

⎪<br />

⎩ 4.0 ⎭

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

Saved successfully!

Ooh no, something went wrong!