random_loads Module

digraph inheritance53f1c11f57 { bgcolor=transparent; rankdir=LR; size=""; "pyNastran.bdf.cards.base_card.BaseCard" [URL="../pyNastran.bdf.cards.base_card.html#pyNastran.bdf.cards.base_card.BaseCard",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Defines a series of base methods for every card class"]; "pyNastran.bdf.cards.loads.random_loads.RANDPS" [URL="#pyNastran.bdf.cards.loads.random_loads.RANDPS",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Power Spectral Density Specification"]; "pyNastran.bdf.cards.loads.random_loads.RandomLoad" -> "pyNastran.bdf.cards.loads.random_loads.RANDPS" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.loads.random_loads.RANDT1" [URL="#pyNastran.bdf.cards.loads.random_loads.RANDT1",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "pyNastran.bdf.cards.loads.random_loads.RandomLoad" -> "pyNastran.bdf.cards.loads.random_loads.RANDT1" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.loads.random_loads.RandomLoad" [URL="#pyNastran.bdf.cards.loads.random_loads.RandomLoad",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "pyNastran.bdf.cards.base_card.BaseCard" -> "pyNastran.bdf.cards.loads.random_loads.RandomLoad" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

All static loads are defined in this file. This includes:

  • LSEQ

  • DAREA

  • SLOAD

  • RFORCE

  • RANDPS

class pyNastran.bdf.cards.loads.random_loads.RANDPS(sid: int, j: int, k: int, x: float = 0.0, y: float = 0.0, tid: int | float = 0, comment: str = '')[source]

Bases: 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

Subcase identification number of the excited load set. (Integer > 0)

k

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

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

tid

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

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: 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

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: BaseCard