rods
Module¶
-
class
pyNastran.bdf.cards.elements.rods.
CONROD
(eid, mid, nids, A=0.0, j=0.0, c=0.0, nsm=0.0, comment='')[source]¶ Bases:
pyNastran.bdf.cards.elements.rods.RodElement
1
2
3
4
5
6
7
8
9
CONROD
EID
N1
N2
MID
A
J
C
NSM
Creates a CONROD card
- Parameters
- eidint
element id
- midint
material id
- nidsList[int, int]
node ids
- Afloat
area
- jfloat; default=0.
polar moment of inertia
- cfloat; default=0.
stress factor
- nsmfloat; default=0.
non-structural mass per unit length
- commentstr; default=’’
a comment for the card
-
Length
()[source]¶ Gets the length of the element.
\[L = \sqrt{ (n_{x2}-n_{x1})^2+(n_{y2}-n_{y1})^2+(n_{z2}-n_{z1})^2 }\]
-
classmethod
add_card
(card, comment='')[source]¶ Adds a CONROD card from
BDF.add_card(...)
- Parameters
- cardBDFCard()
a BDFCard object
- commentstr; default=’’
a comment for the card
-
center_of_mass
()[source]¶ Get the center of mass of the element (save as the centroid for the CONROD)
-
cross_reference
(model: BDF) → None[source]¶ Cross links the card so referenced cards can be extracted directly
- Parameters
- modelBDF()
the BDF object
-
pid
= -10¶
-
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
= 'CONROD'¶
-
class
pyNastran.bdf.cards.elements.rods.
CROD
(eid, pid, nids, comment='')[source]¶ Bases:
pyNastran.bdf.cards.elements.rods.RodElement
1
2
3
4
5
CROD
EID
PID
N1
N2
Creates a CROD card
- Parameters
- eidint
element id
- pidint
property id (PROD)
- nidsList[int, int]
node ids
- commentstr; default=’’
a comment for the card
-
Length
()[source]¶ Gets the length of the element.
\[L = \sqrt{ (n_{x2}-n_{x1})^2+(n_{y2}-n_{y1})^2+(n_{z2}-n_{z1})^2 }\]
-
classmethod
add_card
(card, comment='')[source]¶ Adds a CROD card from
BDF.add_card(...)
- Parameters
- cardBDFCard()
a BDFCard object
- commentstr; default=’’
a comment for the card
-
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
= 'CROD'¶
-
class
pyNastran.bdf.cards.elements.rods.
CTUBE
(eid, pid, nids, comment='')[source]¶ Bases:
pyNastran.bdf.cards.elements.rods.RodElement
1
2
3
4
5
CTUBE
EID
PID
N1
N2
Creates a CTUBE card
- Parameters
- eidint
element id
- pidint
property id
- nidsList[int, int]
node ids
- commentstr; default=’’
a comment for the card
-
Length
()[source]¶ Gets the length of the element.
\[L = \sqrt{ (n_{x2}-n_{x1})^2+(n_{y2}-n_{y1})^2+(n_{z2}-n_{z1})^2 }\]
-
classmethod
add_card
(card, comment='')[source]¶ Adds a CTUBE card from
BDF.add_card(...)
- Parameters
- cardBDFCard()
a BDFCard object
- commentstr; default=’’
a comment for 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
= 'CTUBE'¶