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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

774<br />

ADD<br />

Matrix add<br />

3. If A and B are not the same size, then the size of X will be the size of A. For<br />

example,<br />

or<br />

4. If ALPHA or BETA are specified as constants and their imaginary part is zero;<br />

e.g., “(5.,0.)”, then they may alternately be specified as real constants; e.g., “5.” See<br />

examples.<br />

5. For exponentiation of each element in a matrix see the “DIAGONAL” on<br />

page 888 module.<br />

Examples:<br />

1. Add KDD to MDD:<br />

ADD KDD,MDD/DDD $<br />

2. Multiply MAA by 5.0:<br />

ADD MAA,/MAA5/(5.0,0.0) $<br />

or<br />

1 2 5<br />

3 4 6<br />

7 8<br />

ADD MAA,/MAA5/5.0 $<br />

3. Overwrite terms of [A] with terms of:<br />

ADD A,B/X///3 $<br />

+<br />

+<br />

7 8<br />

1 2 5<br />

3 4 6<br />

=<br />

=<br />

8 10 5<br />

3 4 6<br />

8 10

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

Saved successfully!

Ooh no, something went wrong!