rods Module

Inheritance diagram of pyNastran.bdf.cards.properties.rods
All beam properties are defined in this file. This includes:
  • PBEAM

  • PBEAML

  • PBAR

  • PBARL

All beams are Property objects. Multi-segment beams are IntegratedLineProperty objects.

class pyNastran.bdf.cards.properties.rods.PROD(pid, mid, A, j=0.0, c=0.0, nsm=0.0, comment='')[source]

Bases: pyNastran.bdf.cards.base_card.Property

1

2

3

4

5

6

7

PROD

PID

MID

A

J

C

NSM

PROD

1

2

2.0

3.0

0.5

1.0

Creates a PROD card

Parameters
pidint

property id

midint

material id

Afloat

area

Jfloat; default=0.

polar moment of inertia

cfloat; default=0.

stress factor

nsmfloat; default=0.

nonstructural mass per unit length

commentstr; default=’’

a comment for the card

Area()[source]
C()[source]
E()[source]
G()[source]
J()[source]
MassPerLength()[source]

Gets the mass per length \(\frac{m}{L}\) of the CBEAM.

\[\frac{m}{L} = A \rho + nsm\]
Nsm()[source]
Rho()[source]
classmethod add_card(card, comment='')[source]

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

classmethod export_to_hdf5(h5_file, model, pids)[source]

exports the properties in a vectorized way

pname_fid_map = {4: 'A', 'A': 'A', 5: 'J', 'J': 'j', 6: 'C', 'C': 'c'}
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]

Cross links the card so referenced cards can be extracted directly

Parameters
modelBDF()

the BDF object

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

write_card_16(is_double=False)[source]
class pyNastran.bdf.cards.properties.rods.PTUBE(pid, mid, OD1, t=None, nsm=0.0, OD2=None, comment='')[source]

Bases: pyNastran.bdf.cards.base_card.Property

1

2

3

4

5

6

7

PTUBE

PID

MID

OD

T

NSM

OD2

PTUBE

2

6

6.29

0.25

Adds a PTUBE card

Parameters
pidint

property id

midint

material id

OD1float

outer diameter at End A

tfloat; default=None -> OD1/2.

thickness

nsmfloat; default=0.

non-structural mass per unit length

OD2float; default=None -> OD1

outer diameter at End B

commentstr; default=’’

a comment for the card

Area()[source]

Gets the area \(A\) of the CTUBE.

\[A_1 = \pi \frac{d_1^2}{4} - \pi {(D_1-2t)^2}{4}\]
\[A_2 = \pi \frac{d_2^2}{4} - \pi {(D_2-2t)^2}{4}\]
\[A = A_1 + A_2\]
E()[source]
G()[source]
J()[source]
MassPerLength()[source]

Gets the mass per length \(\frac{m}{L}\) of the CTUBE.

\[\frac{m}{L} = (A \rho) nsm\]
Nsm()[source]

Gets the non-structural mass \(nsm\) of the CTUBE.

Rho()[source]

Gets the density :math:`

ho` of the CTUBE.

_area1()[source]

Gets the Area of Section 1 of the CTUBE.

_area2()[source]

Gets the Area of Section 2 of the CTUBE.

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

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

classmethod export_to_hdf5(h5_file, model, pids)[source]

exports the properties in a vectorized way

pname_fid_map = {4: 'OD1', 'OD': 'OD1', 5: 't', 'T': 't', 7: 'OD2', 'OD2': 'OD2'}
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]

Cross links the card so referenced cards can be extracted directly

Parameters
modelBDF()

the BDF object

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