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

property id

mid : int

material id

A : float

area

J : float; default=0.

polar moment of inertia

c : float; default=0.

stress factor

nsm : float; default=0.

nonstructural mass per unit length

comment : str; default=’‘

a comment for the card

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

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

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

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

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(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]

Cross links the card so referenced cards can be extracted directly

Parameters:
model : BDF()

the BDF object

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

write_card_16(self, 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:
pid : int

property id

mid : int

material id

OD1 : float

outer diameter at End A

t : float; default=None -> OD1/2.

thickness

nsm : float; default=0.

non-structural mass per unit length

OD2 : float; default=None -> OD1

outer diameter at End B

comment : str; default=’‘

a comment for the card

Area(self)[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(self)[source]
G(self)[source]
J(self)[source]
MassPerLength(self)[source]

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

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

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

Rho(self)[source]
Gets the density :math:`

ho` of the CTUBE.

_area1(self)[source]

Gets the Area of Section 1 of the CTUBE.

_area2(self)[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:
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

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(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]

Cross links the card so referenced cards can be extracted directly

Parameters:
model : BDF()

the BDF object

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