elements
Module¶
All ungrouped elements are defined in this file. This includes:
CFAST
CGAP
CRAC2D
CRAC3D
PLOTEL
GENEL
All ungrouped elements are Element objects.
-
class
pyNastran.bdf.cards.elements.elements.
CFAST
(eid, pid, Type, ida, idb, gs=None, ga=None, gb=None, xs=None, ys=None, zs=None, comment='')[source]¶ Bases:
pyNastran.bdf.cards.base_card.Element
defines the CFAST element
dummy init
-
_properties
= ['node_ids', 'nodes']¶
-
classmethod
add_card
(card, comment='')[source]¶ Adds a CFAST card from
BDF.add_card(...)
- Parameters
- cardBDFCard()
a BDFCard object
- commentstr; default=’’
a comment for the card
-
cp_name_map
= {}¶
-
cross_reference
(model: BDF) → None[source]¶ Cross links the card so referenced cards can be extracted directly
- Parameters
- modelBDF()
the BDF object
-
property
node_ids
¶ gets all the node ids used on the CFAST (Gs, Ga, Gb)
-
property
nodes
¶ gets all the nodes used on the CFAST (Gs, Ga, Gb)
-
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
= 'CFAST'¶
-
-
class
pyNastran.bdf.cards.elements.elements.
CGAP
(eid, pid, nids, x, g0, cid=None, comment='')[source]¶ Bases:
pyNastran.bdf.cards.base_card.Element
1
2
3
4
5
6
7
8
9
CGAP
EID
PID
GA
GB
X1
X2
X3
CID
CGAP
17
2
110
112
5.2
0.3
-6.1
or
1
2
3
4
5
6
7
8
9
CGAP
EID
PID
GA
GB
GO
CID
CGAP
17
2
110
112
13
Creates a CGAP card
- Parameters
- eidint
Element ID
- pidint
Property ID (PGAP)
- nidsList[int, int]
node ids; connected grid points at ends A and B
- xList[float, float, float]
Components of the orientation vector, from GA, in the displacement coordinate system at GA
- g0int
GO Alternate method to supply the orientation vector using grid point GO. Direction of is from GA to GO
- cidint; default=None
Element coordinate system identification number. CID must be specified if GA and GB are coincident (distance from GA to GB < 10^-4)
- commentstr; default=’’
a comment for the card
-
classmethod
add_card
(card, comment='')[source]¶ Adds a CGAP 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
-
property
node_ids
¶
-
property
nodes
¶
-
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
= 'CGAP'¶
-
class
pyNastran.bdf.cards.elements.elements.
CRAC2D
(eid, pid, nids, comment='')[source]¶ Bases:
pyNastran.bdf.cards.elements.elements.CrackElement
dummy init
-
_properties
= ['node_ids']¶
-
classmethod
add_card
(card, comment='')[source]¶ Adds a CRAC2D card from
BDF.add_card(...)
- Parameters
- cardBDFCard()
a BDFCard object
- commentstr; default=’’
a comment for the card
-
property
node_ids
¶
-
type
= 'CRAC2D'¶
-
-
class
pyNastran.bdf.cards.elements.elements.
CRAC3D
(eid, pid, nids, comment='')[source]¶ Bases:
pyNastran.bdf.cards.elements.elements.CrackElement
dummy init
-
_properties
= ['node_ids']¶
-
classmethod
add_card
(card, comment='')[source]¶ Adds a CRAC3D card from
BDF.add_card(...)
- Parameters
- cardBDFCard()
a BDFCard object
- commentstr; default=’’
a comment for the card
-
property
node_ids
¶
-
type
= 'CRAC3D'¶
-
-
class
pyNastran.bdf.cards.elements.elements.
CrackElement
[source]¶ Bases:
pyNastran.bdf.cards.base_card.Element
dummy init
-
cross_reference
(model: BDF) → None[source]¶ Cross links the card so referenced cards can be extracted directly
- Parameters
- modelBDF()
the BDF object
-
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
= 'Crack'¶
-
-
class
pyNastran.bdf.cards.elements.elements.
GENEL
(eid, ul, ud, k, z, s=None, comment='')[source]¶ Bases:
pyNastran.bdf.cards.base_card.BaseCard
1
2
3
4
5
6
7
8
9
GENEL
EID
UI1
CI1
UI2
CI2
UI3
CI3
UI4
CI4
UI5
CI5
etc.
UD
UD1
CD1
UD2
CD2
etc.
K/Z
KZ11
KZ21
KZ31
etc.
KZ22
KZ32
etc.
KZ33
KZ43
etc.
S
S11
S12
etc.
S21
etc.
GENEL
629
1
1
13
4
42
0
24
2
UD
6
2
33
0
Z
1.0
2.0
3.0
4.0
5.0
6.0
7.0
8.0
9.0
10.0
S
1.5
2.5
3.5
4.5
5.5
6.5
7.5
8.5
creates a GENEL card
The required input is the {UL} list and the lower triangular portion of [K] or [Z]. Additional input may include the {UD} list and [S]. If [S] is input, must also be input. If {UD} is input but [S] is omitted, [S] is internally calculated. In this case, {UD} must contain six and only six degrees-of freedom.
-
_properties
= ['node_ids', 'ul_nodes', 'ud_nodes', 'nodes']¶
-
cross_reference
(model: BDF) → None[source]¶ Cross links the card so referenced cards can be extracted directly
- Parameters
- modelBDF()
the BDF object
-
property
node_ids
¶
-
property
nodes
¶
-
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
= 'GENEL'¶
-
property
ud_nodes
¶ gets the {UD} nodes
-
property
ul_nodes
¶ gets the {UL} nodes
-
-
class
pyNastran.bdf.cards.elements.elements.
PLOTEL
(eid, nodes, comment='')[source]¶ Bases:
pyNastran.bdf.cards.base_card.BaseCard
Defines a 1D dummy element used for plotting.
This element is not used in the model during any of the solution phases of a problem. It is used to simplify plotting of structures with large numbers of colinear grid points, where the plotting of each grid point along with the elements connecting them would result in a confusing plot.
1
2
3
4
PLOTEL
EID
G1
G2
Adds a PLOTEL card
- Parameters
- eidint
Element ID
- nodesList[int, int]
Unique GRID point IDs
-
_properties
= ['node_ids']¶
-
classmethod
add_card
(card, icard: int, comment='')[source]¶ Adds a PLOTEL 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, encoding)[source]¶ exports the elements in a vectorized way
-
property
node_ids
¶
-
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
= 'PLOTEL'¶