msgmesh Module

Inheritance diagram of pyNastran.bdf.cards.msgmesh
class pyNastran.bdf.cards.msgmesh.CGEN(Type, field_eid, pid, field_id, th_geom_opt, eidl, eidh, t_abcd=None, direction='L', comment='')[source]

Bases: pyNastran.bdf.cards.base_card.BaseCard

1 2 3 4 5 6 7 8 9
CGEN TYPE FIELD_EID PID FIELD_ID DIR TH_GEOM_OPT EIDL EIDH
CGEN TRIA3 550 78 25        
CGEN TRIA6 520 78 26        
CGEN QUAD4 450 145 33        
CGEN HEXA8 610 57 41        
CGEN HEXA20 620 57 42        

Creates the CGEN card

Parameters:
Type : str

LINE, TRIA, QUAD, HEX

field_eid : int

starting element id

pid : int

property id

field_id : int

GRIDG id

cdir : str

L, M, N

th_geom_opt :
TH : ???

???

GEOM : ???

only when Type = BEND

OPT : ???

???

eidl : int

???

eidh : int

???

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

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

Parameters:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

cross_reference(self, model)[source]
node_ids
raw_fields(self)[source]

Gets the fields in their unmodified form

Returns:
fields : List[int/float/str]

the fields that define the card

repr_fields(self)[source]

Gets the fields in their simplified form

Returns:
fields : List[int/float/str]

the fields that define the card

safe_cross_reference(self, model)[source]
type = 'CGEN'
uncross_reference(self, model)[source]
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