pyyeti.nastran.bulk.wtnasints¶
- pyyeti.nastran.bulk.wtnasints(f, start, ints)[source]¶
Utility routine for the nastran ‘wt*’ routines.
- 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.start (integer) – Beginning field for the integers; card name is in field 1, so start should be >= 2.
ints (1d array_like) – Vector of integers to write
- Returns:
None
Notes
This routine is typically not called directly, but could be useful to write cards that are not already accounted for in this module. As an example usage, here is the code inside
wtcsuper():f.write(f"CSUPER {superid:8d}{0:8d}") wtnasints(f, 4, grids)
Examples
>>> import numpy as np >>> from pyyeti import nastran >>> nastran.wtnasints(1, 2, np.arange(28)) 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27