damper Module

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

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

  • CDAMP1
  • CDAMP2
  • CDAMP3
  • CDAMP4
  • CDAMP5
  • CVISC

All damper elements are DamperElement and Element objects.

class pyNastran.bdf.cards.elements.damper.CDAMP1(eid, pid, nids, c1=0, c2=0, comment='')[source]

Bases: pyNastran.bdf.cards.elements.damper.LineDamper

Creates a CDAMP1 card

Parameters:
eid : int

element id

pid : int

property id (PDAMP)

nids : List[int, int]

node ids

c1 / c2 : int; default=0

DOF for nid1 / nid2

comment : str; default=’‘

a comment for the card

B(self)[source]
classmethod add_card(card, comment='')[source]

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

exports the elements in a vectorized way

get_edge_ids(self)[source]
node_ids
raw_fields(self)[source]
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 = 'CDAMP1'
uncross_reference(self)[source]

Removes cross-reference links

validate(self)[source]

card checking method that should be overwritten

write_card(self, size=8, is_double=False)[source]

Writes the card with the specified width and precision

Parameters:
size : int (default=8)

size of the field; {8, 16}

is_double : bool (default=False)

is this card double precision

Returns:
msg : str

the string representation of the card

class pyNastran.bdf.cards.elements.damper.CDAMP2(eid, b, nids, c1=0, c2=0, comment='')[source]

Bases: pyNastran.bdf.cards.elements.damper.LineDamper

Creates a CDAMP2 card

Parameters:
eid : int

element id

b : float

damping

nids : List[int, int]

SPOINT ids node ids

c1 / c2 : int; default=0

DOF for nid1 / nid2

comment : str; default=’‘

a comment for the card

B(self)[source]
classmethod add_card(card, comment='')[source]

Adds a CDAMP2 card from BDF.add_card(...)

Parameters:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

b = None

Value of the scalar damper (Real)

c1 = None

component number

cp_name_map = {'B': 'b'}
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, eids)[source]

exports the elements in a vectorized way

get_edge_ids(self)[source]
node_ids
raw_fields(self)[source]
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 = 'CDAMP2'
uncross_reference(self)[source]

Removes cross-reference links

validate(self)[source]

card checking method that should be overwritten

write_card(self, size=8, is_double=False)[source]

Writes the card with the specified width and precision

Parameters:
size : int (default=8)

size of the field; {8, 16}

is_double : bool (default=False)

is this card double precision

Returns:
msg : str

the string representation of the card

class pyNastran.bdf.cards.elements.damper.CDAMP3(eid, pid, nids, comment='')[source]

Bases: pyNastran.bdf.cards.elements.damper.LineDamper

1 2 3 4 5
CDAMP3 EID PID S1 S2

Creates a CDAMP3 card

Parameters:
eid : int

element id

pid : int

property id (PDAMP)

nids : List[int, int]

SPOINT ids

comment : str; default=’‘

a comment for the card

B(self)[source]
classmethod add_card(card, comment='')[source]

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

exports the elements in a vectorized way

node_ids
raw_fields(self)[source]
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 = 'CDAMP3'
uncross_reference(self)[source]

Removes cross-reference links

write_card(self, size=8, is_double=False)[source]

Writes the card with the specified width and precision

Parameters:
size : int (default=8)

size of the field; {8, 16}

is_double : bool (default=False)

is this card double precision

Returns:
msg : str

the string representation of the card

class pyNastran.bdf.cards.elements.damper.CDAMP4(eid, b, nids, comment='')[source]

Bases: pyNastran.bdf.cards.elements.damper.LineDamper

Creates a CDAMP4 card

Parameters:
eid : int

element id

b : float

damping

nids : List[int, int]

SPOINT ids

comment : str; default=’‘

a comment for the card

B(self)[source]
classmethod add_card(card, icard=0, comment='')[source]
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, eids)[source]

exports the elements in a vectorized way

node_ids
raw_fields(self)[source]
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 = 'CDAMP4'
uncross_reference(self)[source]

Removes cross-reference links

write_card(self, size=8, is_double=False)[source]

Writes the card with the specified width and precision

Parameters:
size : int (default=8)

size of the field; {8, 16}

is_double : bool (default=False)

is this card double precision

Returns:
msg : str

the string representation of the card

class pyNastran.bdf.cards.elements.damper.CDAMP5(eid, pid, nids, comment='')[source]

Bases: pyNastran.bdf.cards.elements.damper.LineDamper

Defines a damping element that refers to a material property entry and connection to grid or scalar points.

Creates a CDAMP5 card

Parameters:
eid : int

element id

pid : int

property id (PDAMP5)

nids : List[int, int]

GRID/SPOINT ids

comment : str; default=’‘

a comment for the card

B(self)[source]
classmethod add_card(card, comment='')[source]

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

exports the elements in a vectorized way

node_ids
raw_fields(self)[source]
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 = 'CDAMP5'
uncross_reference(self)[source]

Removes cross-reference links

write_card(self, size=8, is_double=False)[source]

Writes the card with the specified width and precision

Parameters:
size : int (default=8)

size of the field; {8, 16}

is_double : bool (default=False)

is this card double precision

Returns:
msg : str

the string representation of the card

class pyNastran.bdf.cards.elements.damper.CVISC(eid, pid, nids, comment='')[source]

Bases: pyNastran.bdf.cards.elements.damper.LineDamper

Viscous Damper Connection Defines a viscous damper element.

1 2 3 4 5
CVISC EID PID G1 G2

Creates a CVISC card

Parameters:
eid : int

element id

pid : int

property id (PVISC)

nids : List[int, int]

GRID ids

comment : str; default=’‘

a comment for the card

B(self)[source]
classmethod add_card(card, comment='')[source]

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

exports the elements in a vectorized way

get_edge_ids(self)[source]
node_ids
raw_fields(self)[source]
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 = 'CVISC'
uncross_reference(self)[source]

Removes cross-reference links

write_card(self, size=8, is_double=False)[source]

Writes the card with the specified width and precision

Parameters:
size : int (default=8)

size of the field; {8, 16}

is_double : bool (default=False)

is this card double precision

Returns:
msg : str

the string representation of the card

class pyNastran.bdf.cards.elements.damper.DamperElement[source]

Bases: pyNastran.bdf.cards.base_card.Element

class pyNastran.bdf.cards.elements.damper.LineDamper[source]

Bases: pyNastran.bdf.cards.elements.damper.DamperElement