pyyeti.nastran.bulk.wtseset

pyyeti.nastran.bulk.wtseset(f, superid, grids)[source]

Writes a Nastran SESET 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() or io.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.

  • superid (integer) – Superelement ID

  • grids (1d array_like) – Vector of grid ids.

Returns:

None

Notes

Where possible, THRU statements will be used.

Examples

>>> from pyyeti import nastran
>>> import numpy as np
>>> nastran.wtseset(1, 100, np.arange(1, 26))
SESET        100       1THRU          25
>>> nastran.wtseset(1, 100, list(reversed(range(1, 11))))
SESET        100      10       9       8       7       6       5       4
SESET        100       3       2       1