springs Module

digraph inheritance6159e1a64d { 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.springs.CELAS1" [URL="#pyNastran.bdf.cards.elements.springs.CELAS1",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.springs.SpringElement" -> "pyNastran.bdf.cards.elements.springs.CELAS1" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.elements.springs.CELAS2" [URL="#pyNastran.bdf.cards.elements.springs.CELAS2",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.springs.SpringElement" -> "pyNastran.bdf.cards.elements.springs.CELAS2" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.elements.springs.CELAS3" [URL="#pyNastran.bdf.cards.elements.springs.CELAS3",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.springs.SpringElement" -> "pyNastran.bdf.cards.elements.springs.CELAS3" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.elements.springs.CELAS4" [URL="#pyNastran.bdf.cards.elements.springs.CELAS4",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.springs.SpringElement" -> "pyNastran.bdf.cards.elements.springs.CELAS4" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.elements.springs.SpringElement" [URL="#pyNastran.bdf.cards.elements.springs.SpringElement",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.springs.SpringElement" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

All spring elements are defined in this file. This includes:

  • CELAS1

  • CELAS2

  • CELAS3

  • CELAS4

All spring elements are SpringElement and Element objects.

class pyNastran.bdf.cards.elements.springs.CELAS1(eid, pid, nids, c1=0, c2=0, comment='')[source]

Bases: SpringElement

1

2

3

4

5

6

7

CELAS1

EID

PID

G1

C1

G2

C2

Creates a CELAS1 card

Parameters:
eidint

element id

pidint

property id (PELAS)

nidslist[int, int]

node ids

c1 / c2int; default=0

DOF for nid1 / nid2

commentstr; default=’’

a comment for the card

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

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

Parameters:
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

c1

component number

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 = 'CELAS1'
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.springs.CELAS2(eid, k, nids, c1=0, c2=0, ge=0.0, s=0.0, comment='')[source]

Bases: SpringElement

1

2

3

4

5

6

7

8

9

CELAS2

EID

K

G1

C1

G2

C2

GE

S

Creates a CELAS2 card

Parameters:
eidint

element id

kfloat

spring stiffness

nidslist[int, int]

SPOINT ids node ids

c1 / c2int; default=0

DOF for nid1 / nid2

geint; default=0.0

damping coefficient

sfloat; default=0.0

stress coefficient

commentstr; default=’’

a comment for the card

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

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

Parameters:
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

c1

component number

cp_name_map = {'GE': 'ge', 'K': 'k', 'S': 's'}
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

ge

damping coefficient

get_edge_ids()[source]
k

stiffness of the scalar spring

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

s

stress coefficient

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 = 'CELAS2'
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.springs.CELAS3(eid, pid, nodes, comment='')[source]

Bases: SpringElement

1

2

3

4

5

CELAS3

EID

PID

S1

S2

Creates a CELAS3 card

Parameters:
eidint

element id

pidint

property id (PELAS)

nidslist[int, int]

SPOINT ids

commentstr; default=’’

a comment for the card

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

Adds a CELAS3 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
nodes

Scalar point identification numbers

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 = 'CELAS3'
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.springs.CELAS4(eid, k, nodes, comment='')[source]

Bases: SpringElement

1

2

3

4

5

CELAS4

EID

K

S1

S2

Creates a CELAS4 card

Parameters:
eidint

element id

kfloat

spring stiffness

nidslist[int, int]

SPOINT ids

commentstr; default=’’

a comment for the card

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

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

Parameters:
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

cp_name_map = {'K': 'k'}
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]
k

stiffness of the scalar spring

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 = 'CELAS4'
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.springs.SpringElement[source]

Bases: Element

dummy init

Mass()[source]
repr_fields()[source]

Gets the fields in their simplified form

Returns:
fieldslist[varies]

the fields that define the card

write_card_16(is_double=False)[source]