pyyeti.nastran.bulk.wtxset1¶
- pyyeti.nastran.bulk.wtxset1(f, dof, grids, name='BSET1')[source]¶
Writes a Nastran BSET1, QSET1 (or similar) 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.dof (integer) – An integer concatenation of the DOF (ex: 123456)
grids (1d array_like) – Vector of grid ids.
name (string; optional) – Name of NASTRAN card to write; card must be in same format as the SPC1 card.
- Returns:
None
Notes
Where possible, THRU statements will be used.
This function can be used to write ASET1, BSET1, CSET1, QSET1, SESET, and RVDOF1 cards.
Examples
>>> from pyyeti import nastran >>> import numpy as np >>> nastran.wtxset1(1, 123456, np.arange(1, 11)) BSET1 123456 1THRU 10 >>> nastran.wtxset1(1, 0, np.arange(2001, 2013), "QSET1") QSET1 0 2001THRU 2012