pyyeti.nastran.bulk.rdwtbulk¶
- pyyeti.nastran.bulk.rdwtbulk(fin, fout, *, encoding='utf_8')[source]¶
Get bulk data from a sorted Nastran output file.
- Parameters:
fin (string or file_like or None) – Either a name of a file, or is a file_like object as returned by
open(). If file_like object, it is rewound first. Can also be the name of a directory or None; in these cases, a GUI is opened for file selection.fout (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.encoding (string; optional) – Encoding to use when opening Nastran output text file for reading.
- Returns:
None
Notes
Reads the bulk data from input file and writes it to the output file. All continuation codes are stripped off.
Has not been tested on unsorted bulk.
Example usage:
from pyyeti import nastran nastran.rdwtbulk('meco1.out', 'meco1.blk')