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: - 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
-
MassPerLength
(self)[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: - 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'}¶
-
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'¶
-
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\]
-
MassPerLength
(self)[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: - 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'}¶
-
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'¶