damper Module

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

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

  • PDAMP
  • PDAMP5 (not implemented)
  • PDAMPT
  • PVISC

All damper properties are DamperProperty and Property objects.

class pyNastran.bdf.cards.properties.damper.DamperProperty[source]

Bases: pyNastran.bdf.cards.base_card.Property

cross_reference(self, model)[source]
uncross_reference(self)[source]

Removes cross-reference links

class pyNastran.bdf.cards.properties.damper.PDAMP(pid, b, comment='')[source]

Bases: pyNastran.bdf.cards.properties.damper.DamperProperty

1 2 3 4 5 6 7 8 9
PDAMP PID1 B1 PID2 B2 PID3 B3 PID4 B4
PDAMP 1 2.0            
B(self)[source]
classmethod _init_from_empty()[source]
classmethod add_card(card, icard=0, comment='')[source]

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

Parameters:
card : BDFCard()

a BDFCard object

icard : int; default=0

the index of the card that’s being parsed

comment : str; default=’‘

a comment for the card

b = None

Force per unit velocity (Real)

pid = None

Property ID

pname_fid_map = {3: 'b', 'B1': 'b'}
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

type = 'PDAMP'
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.properties.damper.PDAMP5(pid, mid, b, comment='')[source]

Bases: pyNastran.bdf.cards.properties.damper.DamperProperty

Defines the damping multiplier and references the material properties for damping. CDAMP5 is intended for heat transfer analysis only.

Mid(self)[source]

returns the material ID of an element

Returns:
mid : int

the Material ID

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

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

Parameters:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

b = None

Damping multiplier. (Real > 0.0) B is the mass that multiplies the heat capacity CP on the MAT4 or MAT5 entry.

cross_reference(self, model)[source]

Cross links the card so referenced cards can be extracted directly

Parameters:
model : BDF()

the BDF object

mid = None

Material ID

pid = None

Property ID

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

type = 'PDAMP5'
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.properties.damper.PDAMPT(pid, tbid, comment='')[source]

Bases: pyNastran.bdf.cards.properties.damper.DamperProperty

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

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

pid = None

Property ID

pname_fid_map = {}
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

tbid = None

Identification number of a TABLEDi entry that defines the damping force per-unit velocity versus frequency relationship

type = 'PDAMPT'
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.properties.damper.PVISC(pid, ce, cr, comment='')[source]

Bases: pyNastran.bdf.cards.properties.damper.DamperProperty

Viscous Damping Element Property Defines properties of a one-dimensional viscous damping element (CVISC entry).

1 2 3 4 5 6 7
PVISC PID1 CE1 CR1 PID2 CE2 CR2
PVISC 3 6.2 3.94      

Creates a PVISC card

Parameters:
pid : int

property id for a CVISC

ce : float

Viscous damping values for extension in units of force per unit velocity

cr : float

Viscous damping values for rotation in units of moment per unit velocity.

comment : str; default=’‘

a comment for the card

classmethod _init_from_empty()[source]
classmethod add_card(card, icard=0, comment='')[source]

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

Parameters:
card : BDFCard()

a BDFCard object

icard : int; default=0

the index of the card that’s being parsed

comment : str; default=’‘

a comment for the card

cross_reference(self, model)[source]
pname_fid_map = {'CE1': 'ce'}
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

type = 'PVISC'
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