pyyeti.nastran.bulk.wtextrn¶
- pyyeti.nastran.bulk.wtextrn(f, ids, dof)[source]¶
Writes a Nastran EXTRN card to a file.
- Parameters:
f (string or file_like or 1 or None) – Either a name of a file, or is a file_like object as returned by
open()orio.StringIO. Input as integer 1 to write to stdout. Can also be the name of a directory or None; in these cases, a GUI is opened for file selection.ids (1d array_like) – Vector of node ids
dof (1d array_like) – Vector of DOF
- Returns:
None
Notes
Typically called by
wtextseout().Examples
>>> from pyyeti import nastran >>> nastran.wtextrn(1, [999, 10001, 10002, 10003, 10004, 10005], ... [123456, 0, 0, 0, 0, 0]) EXTRN 999 123456 10001 0 10002 0 10003 0 10004 0 10005 0