pyyeti.nastran.bulk.wttload2¶
- pyyeti.nastran.bulk.wttload2(fobj, setid, excite_id, delay, excite_type, t1, t2, f=0.0, p=0.0, c=0.0, b=0.0)[source]¶
Write a Nastran TLOAD2 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 load set ID number
excite_id (integer) – The ID of the load set definition (LOAD, SPCD, etc cards).
delay (integer or float) – The time delay. If this is a float, it represents the delay in seconds. If it is an integer, it references a DELAY card.
excite_type (string) – The type of excitation. Must be one of ‘load’, ‘disp’, ‘velo’, or ‘acce’.
t1 (float) – Time constant 1
t2 (float) – Time constant 2, must be greater than t1
f (float; optional) – Frequency in cycles per unit time. If not provided, defaults to 0.0.
p (float; optional) – Phase angle in degrees. If not provided, defaults to 0.0.
c (float; optional) – Exponential coefficient. If not provided, defaults to 0.0.
b (float; optional) – Growth coefficient. If not provided, defaults to 0.0.
Notes
This card will be written in 8 fixed-field format using the
wtcard8()function.This card is useful to add a load set to the P matrix when creating an external superelement using EXTSEOUT.
Examples
>>> from pyyeti import nastran >>> setid, excite_id = 201, 202 >>> delay = .05 >>> excite_type = "load" >>> t1, t2 = 0.1, 0.2 >>> nastran.wttload2(1, setid, excite_id, delay, excite_type, t1, t2) TLOAD2 201 202 .05LOAD .1 .2 0. 0. + 0. 0.