bush Module

Inheritance diagram of pyNastran.bdf.cards.elements.bush

All bush elements are defined in this file. This includes:

  • CBUSH

  • CBUSH1D

  • CBUSH2D

All bush elements are BushElement and Element objects.

class pyNastran.bdf.cards.elements.bush.BushElement[source]

Bases: pyNastran.bdf.cards.base_card.Element

dummy init

Cid()[source]
Mass()[source]
get_edge_ids()[source]

Return the edge IDs

class pyNastran.bdf.cards.elements.bush.CBUSH(eid, pid, nids, x, g0, cid=None, s=0.5, ocid=-1, si=None, comment='')[source]

Bases: pyNastran.bdf.cards.elements.bush.BushElement

Generalized Spring-and-Damper Connection

Defines a generalized spring-and-damper structural element that may be nonlinear or frequency dependent.

1

2

3

4

5

6

7

8

9

CBUSH

EID

PID

GA

GB

GO/X1

X2

X3

CID

S

OCID

S1

S2

S3

Creates a CBUSH card

Parameters
eidint

Element id

pidint

Property id (PBUSH)

nidsList[int, int]

node ids; connected grid points at ends A and B The nodes may be coincident, but then cid is required.

xList[float, float, float]; None
Listthe directional vector used to define the stiffnesses

or damping from the PBUSH card

None : use g0

g0int/None
intthe directional vector used to define the stiffnesses

or damping from the PBUSH card

None : use x

cidint; default=None

Element coordinate system identification. A 0 means the basic coordinate system. If CID is blank, then the element coordinate system is determined from GO or Xi.

s: float; default=0.5

Location of spring damper (0 <= s <= 1.0)

ocidint; default=-1

Coordinate system identification of spring-damper offset. (Integer > -1; Default = -1, which means the offset point lies on the line between GA and GB)

siList[float, float, float]; default=None

Components of spring-damper offset in the OCID coordinate system if OCID > 0. None : [None, None, None]

commentstr; default=’’

a comment for the card

Cid()[source]
G0()[source]
Ga()[source]
Gb()[source]
OCid()[source]
_get_x_g0()[source]
_properties = ['_field_map']
classmethod add_card(card, comment='')[source]

Adds a CBUSH 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, eids)[source]

exports the elements in a vectorized way

property node_ids
raw_fields()[source]
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 = 'CBUSH'
uncross_reference() → None[source]

Removes cross-reference links

update_by_cp_name(cp_name, value)[source]
write_card(size: int = 8, is_double: bool = False) → str[source]

Writes the card with the specified width and precision

Parameters
sizeint (default=8)

size of the field; {8, 16}

is_doublebool (default=False)

is this card double precision

Returns
msgstr

the string representation of the card

class pyNastran.bdf.cards.elements.bush.CBUSH1D(eid, pid, nids, cid=None, comment='')[source]

Bases: pyNastran.bdf.cards.elements.bush.BushElement

dummy init

Ga()[source]
Gb()[source]
classmethod add_card(card, comment='')[source]

Adds a CBUSH1D 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, eids)[source]

exports the elements in a vectorized way

property node_ids
property nodes
property nodes_ref
raw_fields()[source]
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 = 'CBUSH1D'
uncross_reference() → None[source]

Removes cross-reference links

write_card(size: int = 8, is_double: bool = False) → str[source]

Writes the card with the specified width and precision

Parameters
sizeint (default=8)

size of the field; {8, 16}

is_doublebool (default=False)

is this card double precision

Returns
msgstr

the string representation of the card

class pyNastran.bdf.cards.elements.bush.CBUSH2D(eid, pid, nids, cid=0, plane='XY', sptid=None, comment='')[source]

Bases: pyNastran.bdf.cards.elements.bush.BushElement

2-D Linear-Nonlinear Connection Defines the connectivity of a two-dimensional Linear-Nonlinear element.

dummy init

Ga()[source]
Gb()[source]
classmethod add_card(card, comment='')[source]

Adds a CBUSH2D 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, eids, encoding='ascii')[source]

exports the elements in a vectorized way

property node_ids
property nodes
raw_fields()[source]
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 = 'CBUSH2D'
uncross_reference() → None[source]

Removes cross-reference links

write_card(size: int = 8, is_double: bool = False) → str[source]

Writes the card with the specified width and precision

Parameters
sizeint (default=8)

size of the field; {8, 16}

is_doublebool (default=False)

is this card double precision

Returns
msgstr

the string representation of the card