loads Module

Inheritance diagram of pyNastran.bdf.cards.thermal.loads
class pyNastran.bdf.cards.thermal.loads.QBDY1(sid, qflux, eids, comment='')[source]

Bases: pyNastran.bdf.cards.thermal.loads.ThermalLoad

Defines a uniform heat flux into CHBDYj elements.

Eids(self)[source]
classmethod _init_from_empty()[source]
_properties = ['element_ids']
classmethod add_card(card, comment='')[source]

Adds a QBDY1 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

element_ids
get_loads(self)[source]
nQFluxTerms(self)[source]
qflux = None

Heat flux into element (FLOAT)

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

Gets the fields in their simplified form

Returns:
fields : List[varies]

the fields that define the card

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

Load set identification number. (Integer > 0)

type = 'QBDY1'
uncross_reference(self)[source]

Removes cross-reference links

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

class pyNastran.bdf.cards.thermal.loads.QBDY2(sid, eid, qfluxs, comment='')[source]

Bases: pyNastran.bdf.cards.thermal.loads.ThermalLoad

Defines a uniform heat flux load for a boundary surface.

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

Adds a QBDY2 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

eid = None

Identification number of an CHBDYj element. (Integer > 0)

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

Gets the fields in their simplified form

Returns:
fields : List[varies]

the fields that define the card

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

Load set identification number. (Integer > 0)

type = 'QBDY2'
uncross_reference(self)[source]

Removes cross-reference links

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

class pyNastran.bdf.cards.thermal.loads.QBDY3(sid, q0, cntrlnd, eids, comment='')[source]

Bases: pyNastran.bdf.cards.thermal.loads.ThermalLoad

Defines a uniform heat flux load for a boundary surface.

Creates a QBDY3 card

Parameters:
sid : int

Load set identification number. (Integer > 0)

q0 : float; default=None

Magnitude of thermal flux vector into face

control_id : int; default=0

Control point

eids : List[int] or THRU

Element identification number of a CHBDYE, CHBDYG, or CHBDYP entry

comment : str; default=’‘

a comment for the card

Eids(self)[source]
classmethod _init_from_empty()[source]
_properties = ['element_ids']
classmethod add_card(card, comment='')[source]

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

Parameters:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

cntrlnd = None

Control point for thermal flux load. (Integer > 0; Default = 0)

cross_reference(self, model)[source]

Cross links the card so referenced cards can be extracted directly

Parameters:
model : BDF()

the BDF object

eids = None

CHBDYj element identification numbers

element_ids
get_loads(self)[source]
q0 = None

Heat flux into element

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

Gets the fields in their simplified form

Returns:
fields : List[varies]

the fields that define the card

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

Load set identification number. (Integer > 0)

type = 'QBDY3'
uncross_reference(self)[source]

Removes cross-reference links

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

class pyNastran.bdf.cards.thermal.loads.QHBDY(sid, flag, q0, grids, af=None, comment='')[source]

Bases: pyNastran.bdf.cards.thermal.loads.ThermalLoad

Defines a uniform heat flux into a set of grid points.

Creates a QHBDY card

Parameters:
sid : int

load id

flag : str

valid_flags = {POINT, LINE, REV, AREA3, AREA4, AREA6, AREA8}

q0 : float

Magnitude of thermal flux into face. Q0 is positive for heat into the surface

af : float; default=None

Area factor depends on type

grids : List[int]

Grid point identification of connected grid points

comment : str; default=’‘

a comment for the card

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

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

Parameters:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

af = None

Area factor depends on type. (Real > 0.0 or blank)

cross_reference(self, model)[source]
flag_to_nnodes = {'AREA3': (3, 3), 'AREA4': (4, 4), 'AREA6': (4, 6), 'AREA8': (5, 8), 'LINE': (2, 2), 'POINT': (1, 1), 'REV': (2, 2)}
get_loads(self)[source]
grids = None

Grid point identification of connected grid points. (Integer > 0 or blank)

q0 = None

Magnitude of thermal flux into face. Q0 is positive for heat into the surface. (Real)

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

Gets the fields in their simplified form

Returns:
fields : List[varies]

the fields that define the card

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

Load set identification number. (Integer > 0)

type = 'QHBDY'
uncross_reference(self)[source]

Removes cross-reference links

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

class pyNastran.bdf.cards.thermal.loads.QVECT(sid, q0, eids, t_source=None, ce=0, vector_tableds=None, control_id=0, comment='')[source]

Bases: pyNastran.bdf.cards.thermal.loads.ThermalLoad

Thermal Vector Flux Load

Defines thermal vector flux from a distant source into a face of one or more CHBDYi boundary condition surface elements.

1 2 3 4 5 6 7 8 9
QVECT SID Q0 TSOUR CE E1/TID1 E2/TID2 E3/TID3 CNTRLND
  EID1 EID2 etc.          

Creates a QVECT card

Parameters:
sid : int

Load set identification number. (Integer > 0)

q0 : float; default=None

Magnitude of thermal flux vector into face

t_source : float; default=None

Temperature of the radiant source

ce : int; default=0

Coordinate system identification number for thermal vector flux

vector_tableds : List[int/float, int/float, int/float]
vector : float; default=None

directional cosines in coordinate system CE) of the thermal vector flux None : [0.0, 0.0, 0.0]

tabled : int

TABLEDi entry identification numbers defining the components as a function of time

control_id : int; default=0

Control point

eids : List[int] or THRU

Element identification number of a CHBDYE, CHBDYG, or CHBDYP entry

comment : str; default=’‘

a comment for the card

Eids(self)[source]
classmethod _init_from_empty()[source]
_properties = ['element_ids']
classmethod add_card(card, comment='')[source]

Adds a QVECT 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

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

Gets the fields in their simplified form

Returns:
fields : List[varies]

the fields that define the card

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

Load set identification number. (Integer > 0)

type = 'QVECT'
uncross_reference(self)[source]

Removes cross-reference links

validate(self)[source]

card checking method that should be overwritten

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

class pyNastran.bdf.cards.thermal.loads.QVOL(sid, qvol, control_point, elements, comment='')[source]

Bases: pyNastran.bdf.cards.thermal.loads.ThermalLoad

Defines a rate of volumetric heat addition in a conduction element.

1 2 3 4 5 6 7 8 9
QVOL SID QVOL CNTRLND EID1 EID2 EID3 EID4 EID5
  EID6 etc.            
Eids(self)[source]
classmethod _init_from_empty()[source]
_properties = ['element_ids']
classmethod add_card(card, comment='')[source]

Adds a QVOL 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

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

Gets the fields in their simplified form

Returns:
fields : List[varies]

the fields that define the card

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

Load set identification number. (Integer > 0)

type = 'QVOL'
uncross_reference(self)[source]

Removes cross-reference links

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

class pyNastran.bdf.cards.thermal.loads.TEMP(sid, temperatures, comment='')[source]

Bases: pyNastran.bdf.cards.thermal.loads.ThermalLoad

Defines temperature at grid points for determination of thermal loading, temperature-dependent material properties, or stress recovery.

1 2 3 4 5 6 7 8
TEMP SID G1 T1 G2 T2 G3 T3
TEMP 3 94 316.2 49 219.8    

Creates a TEMP card

Parameters:
sid : int

Load set identification number

temperatures : dict[nid]
nid : int

node id

temperature : float

the nodal temperature

comment : str; default=’‘

a comment for the card

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

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

Parameters:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

cross_reference(self, model)[source]
classmethod export_to_hdf5(h5_file, model, loads)[source]

exports the loads in a vectorized way

get_loads(self)[source]
raw_fields(self)[source]

Writes the TEMP card

repr_fields(self)[source]

Writes the TEMP card

safe_cross_reference(self, model, debug=True)[source]
sid = None

Load set identification number. (Integer > 0)

temperatures = None

dictionary of temperatures where the key is the grid ID (Gi) and the value is the temperature (Ti)

type = 'TEMP'
uncross_reference(self)[source]

Removes cross-reference links

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

class pyNastran.bdf.cards.thermal.loads.TEMPD(sid, temperature, comment='')[source]

Bases: pyNastran.bdf.cards.base_card.BaseCard

Defines a temperature value for all grid points of the structural model that have not been given a temperature on a TEMP entry

1 2 3 4 5 6 7 8 9
TEMPD SID1 T1 SID2 T2 SID3 T3 SID4 T4

Creates a TEMPD card

Parameters:
sid : int

Load set identification number. (Integer > 0)

temperature : float

default temperature

comment : str; default=’‘

a comment for the card

classmethod _init_from_empty()[source]
add(self, tempd_obj)[source]
classmethod add_card(card, icard=0, comment='')[source]

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

Parameters:
card : BDFCard()

a BDFCard object

icard : int; default=0

sid to be parsed

comment : str; default=’‘

a comment for the card

cross_reference(self, model)[source]
raw_fields(self)[source]

Writes the TEMPD card

safe_cross_reference(self, model, xref_errors)[source]
type = 'TEMPD'
uncross_reference(self)[source]

Removes cross-reference links

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

class pyNastran.bdf.cards.thermal.loads.TEMPP1(sid, eid, tbar, tprime, t_stress, comment='')[source]

Bases: pyNastran.bdf.cards.base_card.BaseCard

1 2 3 4 5 6 7 8
TEMPP1 SID EID1 TBAR TPRIME T1 T2  
  EID2 EID3 EID4 EID5 EID6 EID7 etc.
TEMPP1 2 24 62.0 10.0 57.0 67.0  
  26 21 19 30      

Alternate Form +——–+——+——+——+——–+——+——+——+ | | EID2 | THRU | EIDi | EIDj | THRU | EIDk | | +——–+——+——+——+——–+——+——+——+ | | 1 | THRU | 10 | 30 | THRU | 61 | | +——–+——+——+——+——–+——+——+——+

classmethod _init_from_empty()[source]
raw_fields(self)[source]

Writes the TEMP card

type = 'TEMPP1'
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

class pyNastran.bdf.cards.thermal.loads.ThermalLoad[source]

Bases: pyNastran.bdf.cards.thermal.thermal.ThermalCard