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.

20<br />

Instructions<br />

or ALPHA:<br />

ADD A , B / C / ALPHA $<br />

If a parameter is to be used as both input and output, or output only, then a variable<br />

name must be specified and preceded by S, N,. For example, on the PARAML module,<br />

the fourth parameter, TERM, is an output parameter:<br />

PARAML A // 'DMI' / 4 / 7 / S, N, TERM $<br />

TERM is the value of matrix A at column 4 and row 7, which will be returned by the<br />

PARAM module for later use in the <strong>DMAP</strong> program. If the S,N prefix is omitted, then<br />

TERM is assumed to be input only, no fatal message is issued, and the TERM value is<br />

incorrect.<br />

Statements<br />

A statement is any instruction that is not a module and that typically does not produce<br />

output data blocks from input data blocks or parameters. Another distinction is that a<br />

statement has no definition in the MPL (Module Property List). The different types of<br />

statements are:<br />

Assignment (=)<br />

Function<br />

Control<br />

Declarative<br />

Data Base Function<br />

Assignment Statement<br />

The assignment statement evaluates an expression and assigns the resulting value to<br />

a variable parameter. This statement has the following form:<br />

v = e $<br />

where v is a variable parameter name, and e is an expression. The dollar sign [$] is<br />

required to terminate the statement. Assignment statements are arithmetic, logical, or<br />

character, depending on the type of the variable parameter. The type of the variable<br />

and the expression must be the same. In other words, no mixed mode specification is<br />

allowed.

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

Saved successfully!

Ooh no, something went wrong!