pyyeti.nastran.bulk.rdcord2cards¶
- pyyeti.nastran.bulk.rdcord2cards(f, *, follow_includes=True, include_symbols=None, encoding='utf_8')[source]¶
Read CORD2* cards from a Nastran bulk file
- Parameters:
f (string or file_like or None) – Either a name of a file, or is a file_like object as returned by
open(). If file_like object, it is rewound first. Can also be the name of a directory or None; in these cases, a GUI is opened for file selection.follow_includes (bool; optional) – If True, INCLUDE statements will be followed recursively. Note that if f is a StringIO object, or another object that does not have a name property, this parameter will be set to False.
include_symbols (dict; optional) – A dictionary mapping Nastran symbols to an associated path. These can be read from a file using
rdsymbols().encoding (string; optional) – Encoding to use when opening text file. This option will be passed to any files read in via the follow_includes option.
- Returns:
dictionary – Dictionary with the keys being the coordinate system id and the values being the 5x3 matrix:
[id type 0] # output coord. sys. id and type [xo yo zo] # origin of coord. system [ T ] # 3x3 transformation to basic Note that T is for the coordinate system, not a grid (unless type = 1 which means rectangular)
Notes
This routine uses
pyyeti.nastran.n2p.build_coords()to build the output.