pyyeti.nastran.bulk.wttabdmp1¶
- pyyeti.nastran.bulk.wttabdmp1(f, setid, freq, damp, damping_type='crit')[source]¶
Write a Nastran TABDMP1 card to a file.
- Parameters:
fobj (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) – The tabid ID number.
freq (1d array_like) – The frequencies, in Hertz, at which the damping is defined.
damp (1d array_like) – The damping value at each frequency. This array must have the same length as freq.
damping_type (string; optional) – The type of damping. Must be one of ‘g’, ‘crit’, or ‘q’. If not specified, it defaults to ‘crit’.
Notes
This card will be written in 16 fixed-field format using the
wtcard16()function.The freq and damp parameters must have a length of at least 2.
Examples
>>> from pyyeti import nastran >>> setid = 101 >>> freq = [0.1, 2.5, 3.0] >>> damp = [0.01, 0.015, 0.015] >>> nastran.wttabdmp1(1, setid, freq, damp) TABDMP1* 101CRIT * * * .1 .01 2.5 .015 * 3. .015ENDT