rods
Module¶
- 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
-
MassPerLength
()[source]¶ Gets the mass per length \(\frac{m}{L}\) of the CBEAM.
\[\frac{m}{L} = A \rho + nsm\]
-
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'}¶
-
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'¶
-
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\]
-
MassPerLength
()[source]¶ Gets the mass per length \(\frac{m}{L}\) of the CTUBE.
\[\frac{m}{L} = (A \rho) nsm\]
-
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'}¶
-
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'¶