Nastran-to-Python tools¶
Tools for working with data that originated in Nastran. Typically,
a Nastran modes run is executed with the “nas2cam” DMAP (CAM is now
replaced by Python but the DMAP retains the old name). This creates an
op2/op4 file pair which is read by
pyyeti.nastran.op2.rdnas2cam(). After that, the tools in this
module can be used to create rigid-body modes, form data recovery
matrices, make partition vectors based on sets, form RBE3-like
interpolation matrices, etc.
The functions provided by this module can be accessed by just
importing the “nastran” package. For example, you can access the
rbgeom() function in these two ways:
>>> from pyyeti import nastran
>>> from pyyeti.nastran import n2p
>>> n2p.rbgeom is nastran.rbgeom
True
|
Add a grid or grids to a USET table. |
|
Add ULVS matrices to the nas "nas2cam" data structure |
|
Builds the coordinate system dictionary from an array of coordinate card information. |
|
Expands degree of freedom (DOF) specification |
|
Find x, y, z triples in rigid-body motion matrix. |
|
Form a displacement data recovery matrix for specified dof. |
|
Form a least squares interpolation matrix, like RBE3 in Nastran. |
|
Make a transformation matrix from a-set DOF to specified DOF within the same SE. |
|
Form ULVS for an upstream SE relative to a given downstream SE. |
|
Get coordinates of a grid or location in a specified coordinate system. |
|
Make a uset DataFrame |
|
Returns 'coordinate card' data from information in USET table |
|
Make a DOF partition vector for a particular set from a Nastran USET table. |
|
Make a set partition vector from a Nastran USET table. |
|
Function for getting coordinfo as needed by the USET table. |
|
Get bit-masks for use with the Nastran USET table. |
|
Return coordinates of each node given rigid-body modes. |
|
Compute 6 rigid-body modes from geometry. |
|
Compute 6 rigid-body modes from geometry using a USET table. |
|
Returns rigid-body modes relative to new reference point. |
|
Define a new coordinate system as the base for a USET table |
|
Form upstream a-set partition vector for a downstream SE |
|
Form upstream q-set partition vector for a downstream SE |
|
Print Nastran DOF set membership information from USET table. |