random_loads Module

Inheritance diagram of pyNastran.bdf.cards.loads.random_loads

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.RandomLoad

Power 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
sidint

random analysis set id defined by RANDOM in the case control deck

jint

Subcase id of the excited load set

kint

Subcase id of the applied load set k > j

x / yfloat; default=0.0

Components of the complex number

tidint; default=0

TABRNDi id that defines G(F)

commentstr; default=’’

a comment for the card

Tid()[source]
classmethod _init_from_empty()[source]
classmethod add_card(card, comment='')[source]

Adds a RANDPS card from BDF.add_card(...)

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

cross_reference(model: BDF) → None[source]

Cross links the card so referenced cards can be extracted directly

Parameters
modelBDF()

the BDF object

get_loads()[source]
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)

raw_fields()[source]
repr_fields()[source]

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

safe_cross_reference(model: BDF, xref_errors)[source]
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'
uncross_reference() → None[source]

Removes cross-reference links

validate()[source]

card checking method that should be overwritten

write_card(size: int = 8, is_double: bool = False) → str[source]

Writes the card with the specified width and precision

Parameters
sizeint (default=8)

size of the field; {8, 16}

is_doublebool (default=False)

is this card double precision

Returns
msgstr

the string representation of the card

x = None

Components of the complex number. (Real)

class pyNastran.bdf.cards.loads.random_loads.RANDT1(sid: int, n: int, t0: int, tmax: float, comment: str = '')[source]

Bases: pyNastran.bdf.cards.loads.random_loads.RandomLoad

Creates a RANDT1 card

Parameters
sidint

random analysis set id defined by RANDOM in the case control deck

nint

???

t0int

???

tmaxfloat

???

commentstr; default=’’

a comment for the card

classmethod _init_from_empty()[source]
classmethod add_card(card, comment='')[source]

Adds a RANDT1 card from BDF.add_card(...)

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

cross_reference(model: BDF) → None[source]

Cross links the card so referenced cards can be extracted directly

Parameters
modelBDF()

the BDF object

get_loads()[source]
raw_fields()[source]
repr_fields()[source]

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

safe_cross_reference(model: BDF, xref_errors)[source]
sid = None

Random analysis set identification number. (Integer > 0) Defined by RANDOM in the Case Control Deck.

type = 'RANDT1'
uncross_reference() → None[source]

Removes cross-reference links

write_card(size: int = 8, is_double: bool = False) → str[source]

Writes the card with the specified width and precision

Parameters
sizeint (default=8)

size of the field; {8, 16}

is_doublebool (default=False)

is this card double precision

Returns
msgstr

the string representation of the card

class pyNastran.bdf.cards.loads.random_loads.RandomLoad(card, data)[source]

Bases: pyNastran.bdf.cards.base_card.BaseCard