msgmesh Module

digraph inheritancebd224425cb { 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.loads.loads.Load" [URL="loads/pyNastran.bdf.cards.loads.loads.html#pyNastran.bdf.cards.loads.loads.Load",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 DefaultLoad class"]; "pyNastran.bdf.cards.base_card.BaseCard" -> "pyNastran.bdf.cards.loads.loads.Load" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.msgmesh.CGEN" [URL="#pyNastran.bdf.cards.msgmesh.CGEN",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.base_card.BaseCard" -> "pyNastran.bdf.cards.msgmesh.CGEN" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.msgmesh.GMCORD" [URL="#pyNastran.bdf.cards.msgmesh.GMCORD",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 GMCOORD class"]; "pyNastran.bdf.cards.base_card.BaseCard" -> "pyNastran.bdf.cards.msgmesh.GMCORD" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.msgmesh.GMLOAD" [URL="#pyNastran.bdf.cards.msgmesh.GMLOAD",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 static concentrated force at a grid point by specification of a"]; "pyNastran.bdf.cards.loads.loads.Load" -> "pyNastran.bdf.cards.msgmesh.GMLOAD" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
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: 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:
Typestr

LINE, TRIA, QUAD, HEX

field_eidint

starting element id

pidint

property id

field_idint

GRIDG id

cdirstr

L, M, N

th_geom_opt
TH???

???

GEOM???

only when Type = BEND

OPT???

???

eidlint

???

eidhint

???

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

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

Parameters:
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

cross_reference(model: BDF) None[source]
property node_ids
raw_fields()[source]

Gets the fields in their unmodified form

Returns:
fieldslist[int/float/str]

the fields that define the card

repr_fields()[source]

Gets the fields in their simplified form

Returns:
fieldslist[int/float/str]

the fields that define the card

safe_cross_reference(model)[source]
type = 'CGEN'
uncross_reference(model)[source]
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.msgmesh.GMCORD(cid, entity, gm_ids, comment='')[source]

Bases: BaseCard

defines the GMCOORD class

GMCORD | CID | ENTITY | ID1 | ID2 | GMCORD | 101 | GMCURV | 26 | 44 |

Creates a GMCOORD

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

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

Parameters:
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

static cross_reference(model: BDF) None[source]
raw_fields()[source]
setup()[source]
type = 'GMCORD'
static 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.msgmesh.GMLOAD(sid, normal, entity, entity_id, method, load_magnitudes, cid=0, comment='')[source]

Bases: Load

Defines a static concentrated force at a grid point by specification of a magnitude and two grid points that determine the direction.

Creates a GMLOAD object

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

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

get_loads()[source]
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]
type = 'GMLOAD'
uncross_reference() None[source]

Removes cross-reference links

write_card(size: int = 8, is_double: bool = False) str[source]

The writer method used by BDF.write_card()

Parameters:
sizeint; default=8

the size of the card (8/16)