random_loads Module¶

All static loads are defined in this file. This includes:
- LSEQ
- DAREA
- SLOAD
- RFORCE
- RANDPS
-
class
pyNastran.bdf.cards.loads.random_loads.RANDPS(sid, j, k, x=0.0, y=0.0, tid=0, comment='')[source]¶ Bases:
pyNastran.bdf.cards.loads.random_loads.RandomLoadPower Spectral Density Specification
Defines load set power spectral density factors for use in random analysis having the frequency dependent form:
\[S_{jk}(F) = (X+iY)G(F)\]Creates a RANDPS card
Parameters: - sid : int
random analysis set id defined by RANDOM in the case control deck
- j : int
Subcase id of the excited load set
- k : int
Subcase id of the applied load set k > j
- x / y : float; default=0.0
Components of the complex number
- tid : int; default=0
TABRNDi id that defines G(F)
- comment : str; default=’‘
a comment for the card
-
classmethod
add_card(card, comment='')[source]¶ Adds a RANDPS card from
BDF.add_card(...)Parameters: - card : BDFCard()
a BDFCard object
- comment : str; default=’‘
a comment for the card
-
cross_reference(self, model)[source]¶ Cross links the card so referenced cards can be extracted directly
Parameters: - model : BDF()
the BDF object
-
j= None¶ Subcase identification number of the excited load set. (Integer > 0)
-
k= None¶ Subcase identification number of the applied load set. (Integer >= 0; K >= J)
-
repr_fields(self)[source]¶ Gets the fields in their simplified form
Returns: - fields : List[varies]
the fields that define the card
-
sid= None¶ Random analysis set identification number. (Integer > 0) Defined by RANDOM in the Case Control Deck.
-
tid= None¶ Identification number of a TABRNDi entry that defines G(F).
-
type= 'RANDPS'¶
-
write_card(self, size=8, is_double=False)[source]¶ Writes the card with the specified width and precision
Parameters: - size : int (default=8)
size of the field; {8, 16}
- is_double : bool (default=False)
is this card double precision
Returns: - msg : str
the string representation of the card
-
x= None¶ Components of the complex number. (Real)
-
class
pyNastran.bdf.cards.loads.random_loads.RANDT1(sid, n, t0, tmax, comment='')[source]¶ Bases:
pyNastran.bdf.cards.loads.random_loads.RandomLoadCreates a RANDT1 card
Parameters: - sid : int
random analysis set id defined by RANDOM in the case control deck
- n : int
???
- t0 : int
???
- tmax : float
???
- comment : str; default=’‘
a comment for the card
-
classmethod
add_card(card, comment='')[source]¶ Adds a RANDT1 card from
BDF.add_card(...)Parameters: - card : BDFCard()
a BDFCard object
- comment : str; default=’‘
a comment for the card
-
cross_reference(self, model)[source]¶ Cross links the card so referenced cards can be extracted directly
Parameters: - model : BDF()
the BDF object
-
repr_fields(self)[source]¶ Gets the fields in their simplified form
Returns: - fields : List[varies]
the fields that define the card
-
sid= None¶ Random analysis set identification number. (Integer > 0) Defined by RANDOM in the Case Control Deck.
-
type= 'RANDT1'¶