pyyeti.nastran.bulk.wtcsuper

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

Writes a Nastran CSUPER 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

Examples

>>> from pyyeti import nastran
>>> import numpy as np
>>> nastran.wtcsuper(1, 100, np.arange(1, 10))
CSUPER       100       0       1       2       3       4       5       6
               7       8       9