thermal Module

Inheritance diagram of pyNastran.bdf.cards.thermal.thermal
class pyNastran.bdf.cards.thermal.thermal.CHBDYE(eid, eid2, side, iview_front=0, iview_back=0, rad_mid_front=0, rad_mid_back=0, comment='')[source]

Bases: pyNastran.bdf.cards.thermal.thermal.ThermalElement

Defines a boundary condition surface element with reference to a heat conduction element.

1

2

3

4

5

6

7

8

CHBDYE

EID

EID2

SIDE

IVIEWF

IVIEWB

RADMIDF

RADMIDB

Creates a CHBDYE card

Parameters
eidint

surface element ID number for a side of an element

eid2: int

a heat conduction element identification

side: int

a consistent element side identification number (1-6)

iview_front: int; default=0

a VIEW entry identification number for the front face

iview_back: int; default=0

a VIEW entry identification number for the back face

rad_mid_front: int; default=0

RADM identification number for front face of surface element

rad_mid_back: int; default=0

RADM identification number for back face of surface element

commentstr; default=’’

a comment for the card

Eid()[source]
Eid2()[source]
Pid()[source]
classmethod _init_from_empty()[source]
_properties = ['hex_map', 'pent_map', 'tet_map', 'side_maps']
classmethod add_card(card, comment='')[source]

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

cross_reference(model: BDF) → None[source]
eid = None

Surface element ID number for a side of an element. (0 < Integer < 100,000,000)

eid2 = None

A heat conduction element identification

get_edge_ids()[source]
hex_map = {1: [4, 3, 2, 1], 2: [1, 2, 6, 5], 3: [2, 3, 7, 6], 4: [3, 4, 8, 7], 5: [4, 1, 5, 8], 6: [5, 6, 7, 8]}
iview_back = None

A VIEW entry identification number for the back face

iview_front = None

A VIEW entry identification number for the front face

property node_ids
property nodes
pent_map = {1: [3, 2, 1], 2: [1, 2, 5, 4], 3: [2, 3, 6, 5], 4: [3, 1, 4, 6], 5: [4, 5, 6]}
rad_mid_back = None

RADM identification number for back face of surface element (Integer > 0)

rad_mid_front = None

RADM identification number for front face of surface element (Integer > 0)

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

Todo

is this done

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

A consistent element side identification number (1 < Integer < 6)

side_maps = {'CHEXA': {1: [4, 3, 2, 1], 2: [1, 2, 6, 5], 3: [2, 3, 7, 6], 4: [3, 4, 8, 7], 5: [4, 1, 5, 8], 6: [5, 6, 7, 8]}, 'CPENTA': {1: [3, 2, 1], 2: [1, 2, 5, 4], 3: [2, 3, 6, 5], 4: [3, 1, 4, 6], 5: [4, 5, 6]}, 'CQUAD4': [1, 2, 3, 4], 'CTETRA': {1: [1, 3, 2], 2: [1, 2, 4], 3: [2, 3, 4], 4: [3, 1, 4]}, 'CTRIA3': [1, 2, 3]}
tet_map = {1: [1, 3, 2], 2: [1, 2, 4], 3: [2, 3, 4], 4: [3, 1, 4]}
type = 'CHBDYE'
uncross_reference() → None[source]

Removes cross-reference links

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

The writer method used by BDF.write_card()

Parameters
sizeint; default=8

the size of the card (8/16)

class pyNastran.bdf.cards.thermal.thermal.CHBDYG(eid, surface_type, nodes, iview_front=0, iview_back=0, rad_mid_front=0, rad_mid_back=0, comment='')[source]

Bases: pyNastran.bdf.cards.thermal.thermal.ThermalElement

Defines a boundary condition surface element without reference to a property entry.

1

2

3

4

5

6

7

8

9

CHBDYG

EID

TYPE

IVIEWF

IVIEWB

RADMIDF

RADMIDB

G1

G2

G3

G4

G5

G6

G7

G8

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

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

eid = None

Surface element ID

get_edge_ids()[source]
iview_back = None

A VIEW entry identification number for the back face

iview_front = None

A VIEW entry identification number for the front face

property node_ids
nodes = None

Grid point IDs of grids bounding the surface (Integer > 0)

rad_mid_back = None

RADM identification number for back face of surface element (Integer > 0)

rad_mid_front = None

RADM identification number for front face of surface element (Integer > 0)

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]
surface_type = None

Surface type

type = 'CHBDYG'
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]

The writer method used by BDF.write_card()

Parameters
sizeint; default=8

the size of the card (8/16)

class pyNastran.bdf.cards.thermal.thermal.CHBDYP(eid, pid, surface_type, g1, g2, g0=0, gmid=None, ce=0, iview_front=0, iview_back=0, rad_mid_front=0, rad_mid_back=0, e1=None, e2=None, e3=None, comment='')[source]

Bases: pyNastran.bdf.cards.thermal.thermal.ThermalElement

Defines a boundary condition surface element with reference to a PHBDY entry

1

2

3

4

5

6

7

8

9

CHBDYP

EID

PID

TYPE

IVIEWF

IVIEWB

G1

G2

G0

RADMIDF

RADMIDB

GMID

CE

E1

E2

E3

Creates a CHBDYP card

Parameters
eidint

Surface element ID

pidint

PHBDY property entry identification numbers. (Integer > 0)

surface_typestr

Surface type Must be {POINT, LINE, ELCYL, FTUBE, TUBE}

iview_frontint; default=0

A VIEW entry identification number for the front face.

iview_backint; default=0

A VIEW entry identification number for the back face.

g1 / g2int

Grid point identification numbers of grids bounding the surface

g0int; default=0

Orientation grid point

rad_mid_frontint

RADM identification number for front face of surface element

rad_mid_backint

RADM identification number for back face of surface element.

gmidint

Grid point identification number of a midside node if it is used with the line type surface element.

ceint; default=0

Coordinate system for defining orientation vector

e1 / e2 / e3float; default=None

Components of the orientation vector in coordinate system CE. The origin of the orientation vector is grid point G1.

commentstr; default=’’

a comment for the card

Ce()[source]

gets the coordinate system, CE

Eid()[source]
Pid()[source]
property Type
_finalize_hdf5(encoding)[source]

hdf5 helper function

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

ce = None

Coordinate system for defining orientation vector. (Integer > 0; Default = 0

cross_reference(model: BDF) → None[source]

Cross links the card so referenced cards can be extracted directly

Parameters
modelBDF()

the BDF object

e1 = None

Components of the orientation vector in coordinate system CE. The origin of the orientation vector is grid point G1. (Real or blank)

eid = None

Surface element ID

g0 = None

Orientation grid point. (Integer > 0; Default = 0)

g1 = None

Grid point identification numbers of grids bounding the surface. (Integer > 0)

g2 = None

Grid point identification numbers of grids bounding the surface. (Integer > 0)

gmid = None

Grid point identification number of a midside node if it is used with the line type surface element.

iview_back = None

A VIEW entry identification number for the back face.

iview_front = None

A VIEW entry identification number for the front face.

property node_ids
property nodes
pid = None

PHBDY property entry identification numbers. (Integer > 0)

rad_mid_back = None

RADM identification number for back face of surface element. (Integer > 0)

rad_mid_front = None

RADM identification number for front face of surface element. (Integer > 0)

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]
type = 'CHBDYP'
uncross_reference() → None[source]

Removes cross-reference links

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

The writer method used by BDF.write_card()

Parameters
sizeint; default=8

the size of the card (8/16)

class pyNastran.bdf.cards.thermal.thermal.CONV(eid, pconid, ta, film_node=0, cntrlnd=0, comment='')[source]

Bases: pyNastran.bdf.cards.thermal.thermal.ThermalBC

Specifies a free convection boundary condition for heat transfer analysis through connection to a surface element (CHBDYi entry).

Creates a CONV card

Parameters
eidint

element id

pconidint

Convection property ID

midint

Material ID

taList[int]

Ambient points used for convection 0’s are allowed for TA2 and higher

film_nodeint; default=0

Point for film convection fluid property temperature

cntrlndint; default=0

Control point for free convection boundary condition

commentstr; default=’’

a comment for the card

Eid()[source]
TA(i=None)[source]
classmethod _init_from_empty()[source]
classmethod add_card(card, comment='')[source]

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

cntrlnd = None

Control point for free convection boundary condition.

cross_reference(model: BDF) → None[source]

Cross links the card so referenced cards can be extracted directly

Parameters
modelBDF()

the BDF object

eid = None

CHBDYG, CHBDYE, or CHBDYP surface element identification number. (Integer > 0)

film_node = None

Point for film convection fluid property temperature

pconid = None

Convection property identification number of a PCONV entry

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

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

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

Removes cross-reference links

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

The writer method used by BDF.write_card()

Parameters
sizeint; default=8

the size of the card (8/16)

class pyNastran.bdf.cards.thermal.thermal.CONVM(eid, pconvm, ta1, film_node=0, cntmdot=0, ta2=None, mdot=1.0, comment='')[source]

Bases: pyNastran.bdf.cards.thermal.thermal.ThermalBC

Specifies a forced convection boundary condition for heat transfer analysis through connection to a surface element (CHBDYi entry).

1

2

3

4

5

6

7

8

CONVM

EID

PCONID

FLMND

CNTMDOT

TA1

TA2

Mdot

CONVM

101

1

201

301

20

21

Creates a CONVM card

Parameters
eidint

element id (CHBDYP)

pconidint

property ID (PCONVM)

midint

Material ID

ta1int

ambient point for convection

ta2int; default=None

None : ta1 ambient point for convection

film_nodeint; default=0
cntmdotint; default=0

control point used for controlling mass flow 0/blank is only allowed when mdot > 0

mdotfloat; default=1.0

a multiplier for the mass flow rate in case there is no point associated with the CNTRLND field required if cntmdot = 0

commentstr; default=’’

a comment for the card

Eid()[source]
classmethod _init_from_empty()[source]
_properties = ['film_node_id', 'pconvm_id']
classmethod add_card(card, comment='')[source]

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

property film_node_id
property pconvm_id
raw_fields()[source]
repr_fields()[source]

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

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

The writer method used by BDF.write_card()

Parameters
sizeint; default=8

the size of the card (8/16)

class pyNastran.bdf.cards.thermal.thermal.PCONV(pconid, mid=None, form=0, expf=0.0, ftype=0, tid=None, chlen=None, gidin=None, ce=0, e1=None, e2=None, e3=None, comment='')[source]

Bases: pyNastran.bdf.cards.thermal.thermal.ThermalProperty

Specifies the free convection boundary condition properties of a boundary condition surface element used for heat transfer analysis.

Format (MSC 2005.2)

1

2

3

4

5

6

7

8

9

PCONV

PCONID

MID

FORM

EXPF

FTYPE

TID

CHLEN

GIDIN

CE

E1

E2

E3

PCONV

38

21

2

54

2.0

235

0

1.0

0.0

0.0

Alternate format (MSC 2005.2):

1

2

3

4

5

6

7

8

9

PCONV

PCONID

MID

FORM

EXPF

3

H1

H2

H3

H4

H5

H6

H7

H8

PCONV

7

3

10.32

10.05

10.09

10.37

Todo

alternate format is not supported; NX not checked

Creates a PCONV card

Parameters
pconidint

Convection property ID

midint

Material ID

formint; default=0

Type of formula used for free convection Must be {0, 1, 10, 11, 20, or 21}

expffloat; default=0.0

Free convection exponent as implemented within the context of the particular form that is chosen

ftypeint; default=0

Formula type for various configurations of free convection

tidint; default=None

Identification number of a TABLEHT entry that specifies the two variable tabular function of the free convection heat transfer coefficient

chlenfloat; default=None

Characteristic length

gidinint; default=None

Grid ID of the referenced inlet point

ceint; default=0

Coordinate system for defining orientation vector.

e1 / e2 / e3List[float]; default=None

Components of the orientation vector in coordinate system CE. The origin of the orientation vector is grid point G1

commentstr; default=’’

a comment for the card

Ce()[source]

gets the coordinate system, CE

Gidin()[source]

gets the grid input node, gidin

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

ce = None

Coordinate system for defining orientation vector. (Integer > 0;Default = 0

chlen = None

Characteristic length

cross_reference(model: BDF) → None[source]
e1 = None

Components of the orientation vector in coordinate system CE. The origin of the orientation vector is grid point G1. (Real or blank)

expf = None

Free convection exponent as implemented within the context of the particular form that is chosen

form = None

Type of formula used for free convection. (Integer 0, 1, 10, 11, 20, or 21)

ftype = None

Formula type for various configurations of free convection

gidin = None

Grid ID of the referenced inlet point

mid = None

Material property identification number. (Integer > 0)

pconid = None

Convection property identification number. (Integer > 0)

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

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

tid = None

Identification number of a TABLEHT entry that specifies the two variable tabular function of the free convection heat transfer coefficient

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

Removes cross-reference links

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

The writer method used by BDF.write_card()

Parameters
sizeint; default=8

the size of the card (8/16)

class pyNastran.bdf.cards.thermal.thermal.PCONVM(pconid, mid, coeff, form=0, flag=0, expr=0.0, exppi=0.0, exppo=0.0, comment='')[source]

Bases: pyNastran.bdf.cards.thermal.thermal.ThermalProperty

Specifies the free convection boundary condition properties of a boundary condition surface element used for heat transfer analysis.

1

2

3

4

5

6

7

8

9

PCONVM

PCONID

MID

FORM

FLAG

COEF

EXPR

EXPPI

EXPPO

PCONVM

3

2

1

1

0.023

0.80

0.40

0.30

Creates a PCONVM card

Parameters
pconidint

Convection property ID

mid: int

Material ID

coeff: float

Constant coefficient used for forced convection

form: int; default=0

Type of formula used for free convection Must be {0, 1, 10, 11, 20, or 21}

flag: int; default=0

Flag for mass flow convection

expr: float; default=0.0

Reynolds number convection exponent

exppi: float; default=0.0

Prandtl number convection exponent for heat transfer into the working fluid

exppo: float; default=0.0

Prandtl number convection exponent for heat transfer out of the working fluid

commentstr; default=’’

a comment for the card

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

coef = None

Constant coefficient used for forced convection

exppi = None

Prandtl number convection exponent for heat transfer into the working fluid. (Real > 0.0; Default = 0.0)

exppo = None

Prandtl number convection exponent for heat transfer out of the working fluid. (Real > 0.0; Default = 0.0)

expr = None

Reynolds number convection exponent. (Real > 0.0; Default = 0.0)

flag = None

Flag for mass flow convection. (Integer = 0 or 1; Default = 0)

form = None

Type of formula used for free convection. (Integer 0, 1, 10, 11, 20, or 21)

mid = None

Material property identification number. (Integer > 0)

pconid = None

Convection property identification number. (Integer > 0)

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

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

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

Removes cross-reference links

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

The writer method used by BDF.write_card()

Parameters
sizeint; default=8

the size of the card (8/16)

class pyNastran.bdf.cards.thermal.thermal.PHBDY(pid, af=None, d1=None, d2=None, comment='')[source]

Bases: pyNastran.bdf.cards.thermal.thermal.ThermalProperty

A property entry referenced by CHBDYP entries to give auxiliary geometric information for boundary condition surface elements

1

2

3

4

5

PHBDY

PID

AF

D1

D2

PHBDY

2

0.02

1.0

1.0

Creates a PHBDY card

Parameters
eidint

element id

pidint

property id

afint

Area factor of the surface used only for CHBDYP element Must be {POINT, LINE, TUBE, ELCYL} TUBE : constant thickness of hollow tube

d1, d2float; default=None

Diameters associated with the surface Used with CHBDYP [ELCYL, TUBE, FTUBE] surface elements

commentstr; default=’’

a comment for the card

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

af = None

Area factor of the surface used only for CHBDYP element TYPE = ‘POINT’, TYPE = ‘LINE’, TYPE = ‘TUBE’, or TYPE = ‘ELCYL’. For TYPE = ‘TUBE’, AF is the constant thickness of the hollow tube. (Real > 0.0 or blank)

d1 = None

Diameters associated with the surface. Used with CHBDYP element TYPE=’ELCYL’,’TUBE’,’FTUBE’

pid = None

Property identification number. (Unique Integer among all PHBDY entries). (Integer > 0)

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

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

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

Removes cross-reference links

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

The writer method used by BDF.write_card()

Parameters
sizeint; default=8

the size of the card (8/16)

class pyNastran.bdf.cards.thermal.thermal.TEMPBC(sid, Type, nodes, temps, comment='')[source]

Bases: pyNastran.bdf.cards.thermal.thermal.ThermalBC

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

property eid
raw_fields()[source]
type = 'TEMPBC'
write_card(size: int = 8, is_double: bool = False) → str[source]

The writer method used by BDF.write_card()

Parameters
sizeint; default=8

the size of the card (8/16)

class pyNastran.bdf.cards.thermal.thermal.ThermalBC[source]

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

class pyNastran.bdf.cards.thermal.thermal.ThermalCard[source]

Bases: pyNastran.bdf.cards.base_card.BaseCard

cross_reference(model: BDF) → None[source]
class pyNastran.bdf.cards.thermal.thermal.ThermalElement[source]

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

class pyNastran.bdf.cards.thermal.thermal.ThermalProperty[source]

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