pyyeti.nastran.bulk.wtset¶
- pyyeti.nastran.bulk.wtset(f, setid, ids, max_length=72)[source]¶
Writes a Nastran case-control SET 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.setid (integer) – Set ID
ids (1d array_like) – Vector of IDs
max_length (integer; optional) – The max length of each line of the SET card.
- Returns:
None
Notes
Where possible, THRU statements will be used.
Examples
>>> from pyyeti import nastran >>> import numpy as np >>> nastran.wtset(1, 100, np.arange(1, 26)) SET 100 = 1 THRU 25 >>> nastran.wtset(1, 100, [1, 3, 5, 7]) SET 100 = 1, 3, 5, 7