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.

776<br />

ADD5<br />

Matrix add<br />

DELTAD Input-complex double precision-default = (1.0D0,0.0D0). This is the<br />

scalar multiplier for [C].<br />

EPSLND Input-complex double precision-default = (1.0D0,0.0D0). This is the<br />

scalar multiplier for [E].<br />

Remarks:<br />

1. Any of the matrices may be purged, in which case the corresponding term in the<br />

matrix sum will be assumed null. The input data blocks must be unique.<br />

2. The type (complex or real) of [X] is maximum of the types of A, B, C, D, and E. If<br />

the imaginary parts of any parameter are nonzero, then X will be complex. The<br />

precision of [X] is double for short-word machines and single for long-word<br />

machinesADD5 is more efficient than ADD for sparse matrices.<br />

3. If the input matrices are incompatible, then the User Fatal Message 5423<br />

“ATTEMPT TO ADD INCOMPATIBLE MATRICES” is issued.<br />

4. If any of the scalar multipliers are specified as constants and their imaginary part<br />

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

e.g., “5.” See Example 2 below.<br />

5. If any of the scalar single precision multipliers are specified as constants and their<br />

imaginary part is zero; e.g., (5.,0.), then they may be alternately specified as real<br />

constants; e.g., 5. See Example 2. This alternate specification is not allowed for<br />

the double precision multipliers and constant double precision values must be<br />

entered in full: e.g., (2.0D0, 0.0D0).<br />

6. If ALPHAD, BETAD, GAMMAD, DELTAD, or EPSLND is non-zero then the<br />

corresponding single precision parameter will be ignored.<br />

Examples:<br />

1. Compute<br />

IOMEGA=CMPLX(0.,OMEGA)<br />

OMEGSQ=IOMEGA**2<br />

ADD5 MDD,BDD,KDD,,/DDD/OMEGSQ/IOMEGA $<br />

2. Multiply [MAA] by 5.0<br />

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

or<br />

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

3. Scale A by a large number. The largest element in A is 1.0.<br />

TYPE PARM,,CD,SCALER=(1.D40,0.0D0) $<br />

ADD5 A,,,,/ASCALED//////SCALER $

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

Saved successfully!

Ooh no, something went wrong!