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.

Parameters:<br />

P2 Number of columns.<br />

P3 Number of rows.<br />

P4 Precision (1 or 2). If zero, use machine precision.<br />

Option P1 = 6<br />

Generate a partitioning vector for use in PARTN or MERGE.<br />

Format:<br />

Input Data Blocks:<br />

None.<br />

Output Data Block:<br />

Parameters:<br />

Remarks:<br />

1. If ∑ Pi < P2, then the remaining terms contain zeros.<br />

2. If ∑<br />

Pi > P2, then the terms are ignored after P2.<br />

Example:<br />

MATGEN<br />

Matrix generator<br />

P5 Seed for random number generation. If P5 ≤ 0, the time of day (seconds past<br />

midnight) will be used.<br />

P6 Output-integer-mean of all random numbers multiplied by 100,000.<br />

MATGEN ,/CP/6/P2/P3/P4/P5/P6/P7/P8/P9/P10 $<br />

CP Column partitioning vector.<br />

P2 Number of rows.<br />

P3, P5, P7, P9 Number of rows with zero coefficients.<br />

P4, P6, P8, P10 Number of rows with unit coefficients.<br />

10<br />

i = 3<br />

10<br />

i = 3<br />

Generate a vector of 5 unit terms followed by 7 zeros followed by two unit terms:<br />

MATGEN ,/UPART/6/14/0/5/7/2 $<br />

113

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

Saved successfully!

Ooh no, something went wrong!