solid Module

Inheritance diagram of pyNastran.bdf.cards.properties.solid
All solid properties are defined in this file. This includes:
  • PCOMPS
  • PLSOLID
  • PSOLID

All solid properties are Property objects.

class pyNastran.bdf.cards.properties.solid.PCOMPS(pid, global_ply_ids, mids, thicknesses, thetas, cordm=0, psdir=13, sb=None, nb=None, tref=0.0, ge=0.0, failure_theories=None, interlaminar_failure_theories=None, souts=None, comment='')[source]

Bases: pyNastran.bdf.cards.base_card.Property

Mid(self)[source]

returns the material ID of an element

Returns:
mid : int

the Material ID

Mids(self)[source]
Rho(self)[source]

Returns the density

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

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

Parameters:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

cross_reference(self, model)[source]
material_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

type = 'PCOMPS'
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.solid.PIHEX(pid, mid, cordm=0, integ=None, stress=None, isop=None, fctn='SMECH', comment='')[source]

Bases: pyNastran.bdf.cards.properties.solid.PSOLID

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 = 'PIHEX'
class pyNastran.bdf.cards.properties.solid.PLSOLID(pid, mid, stress_strain='GRID', ge=0.0, comment='')[source]

Bases: pyNastran.bdf.cards.base_card.Property

Defines a fully nonlinear (i.e., large strain and large rotation) hyperelastic solid element.

1 2 3 4
PLSOLID PID MID STR
PLSOLID 20 21  

Creates a PLSOLID card

Parameters:
pid : int

property id

mid : int

material id

stress_strain : str

Location of stress and strain output valid types = {GRID, GAUSS}

ge : float; default=0.

damping coefficient

comment : str; default=’‘

a comment for the card

Rho(self)[source]

Returns the density

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

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

mid = None

Material ID

pid = None

Property ID

raw_fields(self)[source]
stress_strain = None

Location of stress and strain output

type = 'PLSOLID'
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.properties.solid.PSOLID(pid, mid, cordm=0, integ=None, stress=None, isop=None, fctn='SMECH', comment='')[source]

Bases: pyNastran.bdf.cards.base_card.Property

1 2 3 4 5 6 7 8
PSOLID PID MID CORDM IN STRESS ISOP FCTN
PSOLID 1   1 0      
PSOLID 2 100 6 TWO GRID REDUCED  

Creates a PSOLID card

Parameters:
pid : int

property id

mid : int

material id

cordm : int; default=0

material coordinate system

integ : int; default=None

None-varies depending on element type 0, ‘BUBBLE’ 1, ‘GAUSS’ 2, ‘TWO’ 3, ‘THREE’ REDUCED FULL

stress : int/str; default=None

None/GRID, 1-GAUSS

isop : int/str; default=None

0-REDUCED 1-FULL

fctn : str; default=’SMECH’

PFLUID/SMECH

comment : str; default=’‘

a comment for the card

E(self)[source]
G(self)[source]
Nu(self)[source]
Rho(self)[source]

Returns the density

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

Adds a PSOLID 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 reference method for a PSOLID

classmethod export_to_hdf5(h5_file, model, pids)[source]

exports the properties in a vectorized way

materials(self)[source]
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 = 'PSOLID'
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