damper Module

digraph inheritancef5ba94e32e { bgcolor=transparent; rankdir=LR; size=""; "pyNastran.bdf.cards.base_card.BaseCard" [URL="../pyNastran.bdf.cards.base_card.html#pyNastran.bdf.cards.base_card.BaseCard",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Defines a series of base methods for every card class"]; "pyNastran.bdf.cards.base_card.Element" [URL="../pyNastran.bdf.cards.base_card.html#pyNastran.bdf.cards.base_card.Element",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="defines the Element class"]; "pyNastran.bdf.cards.base_card.BaseCard" -> "pyNastran.bdf.cards.base_card.Element" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.elements.damper.CDAMP1" [URL="#pyNastran.bdf.cards.elements.damper.CDAMP1",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "pyNastran.bdf.cards.elements.damper.LineDamper" -> "pyNastran.bdf.cards.elements.damper.CDAMP1" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.elements.damper.CDAMP2" [URL="#pyNastran.bdf.cards.elements.damper.CDAMP2",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "pyNastran.bdf.cards.elements.damper.LineDamper" -> "pyNastran.bdf.cards.elements.damper.CDAMP2" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.elements.damper.CDAMP3" [URL="#pyNastran.bdf.cards.elements.damper.CDAMP3",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="+--------+-----+-----+----+----+"]; "pyNastran.bdf.cards.elements.damper.LineDamper" -> "pyNastran.bdf.cards.elements.damper.CDAMP3" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.elements.damper.CDAMP4" [URL="#pyNastran.bdf.cards.elements.damper.CDAMP4",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "pyNastran.bdf.cards.elements.damper.LineDamper" -> "pyNastran.bdf.cards.elements.damper.CDAMP4" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.elements.damper.CDAMP5" [URL="#pyNastran.bdf.cards.elements.damper.CDAMP5",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Defines a damping element that refers to a material property entry and connection to"]; "pyNastran.bdf.cards.elements.damper.LineDamper" -> "pyNastran.bdf.cards.elements.damper.CDAMP5" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.elements.damper.CVISC" [URL="#pyNastran.bdf.cards.elements.damper.CVISC",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Viscous Damper Connection"]; "pyNastran.bdf.cards.elements.damper.LineDamper" -> "pyNastran.bdf.cards.elements.damper.CVISC" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.elements.damper.DamperElement" [URL="#pyNastran.bdf.cards.elements.damper.DamperElement",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "pyNastran.bdf.cards.base_card.Element" -> "pyNastran.bdf.cards.elements.damper.DamperElement" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.elements.damper.LineDamper" [URL="#pyNastran.bdf.cards.elements.damper.LineDamper",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "pyNastran.bdf.cards.elements.damper.DamperElement" -> "pyNastran.bdf.cards.elements.damper.LineDamper" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

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: LineDamper

Creates a CDAMP1 card

Parameters:
eidint

element id

pidint

property id (PDAMP)

nidslist[int, int]

node ids

c1 / c2int; default=0

DOF for nid1 / nid2

commentstr; default=’’

a comment for the card

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

Adds a CDAMP1 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

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

Removes cross-reference links

validate()[source]

card checking method that should be overwritten

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.damper.CDAMP2(eid, b, nids, c1=0, c2=0, comment='')[source]

Bases: LineDamper

Creates a CDAMP2 card

Parameters:
eidint

element id

bfloat

damping

nidslist[int, int]

SPOINT ids node ids

c1 / c2int; default=0

DOF for nid1 / nid2

commentstr; default=’’

a comment for the card

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

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

Parameters:
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

b

Value of the scalar damper (Real)

c1

component number

cp_name_map = {'B': 'b'}
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

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

Removes cross-reference links

validate()[source]

card checking method that should be overwritten

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.damper.CDAMP3(eid, pid, nids, comment='')[source]

Bases: LineDamper

1

2

3

4

5

CDAMP3

EID

PID

S1

S2

Creates a CDAMP3 card

Parameters:
eidint

element id

pidint

property id (PDAMP)

nidslist[int, int]

SPOINT ids

commentstr; default=’’

a comment for the card

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

Adds a CDAMP3 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]
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 = 'CDAMP3'
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.damper.CDAMP4(eid, b, nids, comment='')[source]

Bases: LineDamper

Creates a CDAMP4 card

Parameters:
eidint

element id

bfloat

damping

nidslist[int, int]

SPOINT ids

commentstr; default=’’

a comment for the card

B()[source]
classmethod add_card(card, icard=0, comment='')[source]
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]
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 = 'CDAMP4'
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.damper.CDAMP5(eid, pid, nids, comment='')[source]

Bases: LineDamper

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

Creates a CDAMP5 card

Parameters:
eidint

element id

pidint

property id (PDAMP5)

nidslist[int, int]

GRID/SPOINT ids

commentstr; default=’’

a comment for the card

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

Adds a CDAMP5 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]
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 = 'CDAMP5'
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.damper.CVISC(eid, pid, nids, comment='')[source]

Bases: LineDamper

Viscous Damper Connection Defines a viscous damper element.

1

2

3

4

5

CVISC

EID

PID

G1

G2

Creates a CVISC card

Parameters:
eidint

element id

pidint

property id (PVISC)

nidslist[int, int]

GRID ids

commentstr; default=’’

a comment for the card

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

Adds a CVISC 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

get_edge_ids()[source]
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 = 'CVISC'
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.damper.DamperElement[source]

Bases: Element

dummy init

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

Bases: DamperElement

dummy init