rods Module

digraph inheritancefa157f730c { 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.rods.CONROD" [URL="#pyNastran.bdf.cards.elements.rods.CONROD",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.rods.RodElement" -> "pyNastran.bdf.cards.elements.rods.CONROD" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.elements.rods.CROD" [URL="#pyNastran.bdf.cards.elements.rods.CROD",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.rods.RodElement" -> "pyNastran.bdf.cards.elements.rods.CROD" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.elements.rods.CTUBE" [URL="#pyNastran.bdf.cards.elements.rods.CTUBE",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.rods.RodElement" -> "pyNastran.bdf.cards.elements.rods.CTUBE" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.elements.rods.RodElement" [URL="#pyNastran.bdf.cards.elements.rods.RodElement",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.rods.RodElement" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
class pyNastran.bdf.cards.elements.rods.CONROD(eid, mid, nids, A=0.0, j=0.0, c=0.0, nsm=0.0, comment='')[source]

Bases: RodElement

1

2

3

4

5

6

7

8

9

CONROD

EID

N1

N2

MID

A

J

C

NSM

Creates a CONROD card

Parameters:
eidint

element id

midint

material id

nidslist[int, int]

node ids

Afloat

area

jfloat; default=0.

polar moment of inertia

cfloat; default=0.

stress factor

nsmfloat; default=0.

non-structural mass per unit length

commentstr; default=’’

a comment for the card

Area()[source]
C()[source]

torsional constant

Centroid()[source]

Get the centroid of the element (save as the center of mass for the CONROD)

E()[source]

returns the Young’s Modulus, :math:`E`$

G()[source]

returns the Shear Modulus, \(G\)

J()[source]

returns the Polar Moment of Inertia, \(J\)

Length()[source]

Gets the length of the element.

\[L = \sqrt{ (n_{x2}-n_{x1})^2+(n_{y2}-n_{y1})^2+(n_{z2}-n_{z1})^2 }\]
MassPerLength()[source]

Gets the mass per length of the CONROD

Mid()[source]
Nsm()[source]

Placeholder method for the non-structural mass

Pid()[source]

Spoofs the property id for the CONROD

Rho()[source]

returns the material density f$ rho f$

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

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

Parameters:
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

center_of_mass()[source]

Get the center of mass of the element (save as the centroid for the CONROD)

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

pid = -10
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]

Cross links the card so referenced cards can be extracted directly

Parameters:
modelBDF()

the BDF object

type = 'CONROD'
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.rods.CROD(eid, pid, nids, comment='')[source]

Bases: RodElement

1

2

3

4

5

CROD

EID

PID

N1

N2

Creates a CROD card

Parameters:
eidint

element id

pidint

property id (PROD)

nidslist[int, int]

node ids

commentstr; default=’’

a comment for the card

Area()[source]
C()[source]
Centroid()[source]
E()[source]
G()[source]
J()[source]
Length()[source]

Gets the length of the element.

\[L = \sqrt{ (n_{x2}-n_{x1})^2+(n_{y2}-n_{y1})^2+(n_{z2}-n_{z1})^2 }\]
MassPerLength()[source]
Mid()[source]
Nsm()[source]
Rho()[source]

returns the material density f$ rho f$

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

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

Parameters:
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

center_of_mass()[source]
cross_reference(model: BDF) None[source]
classmethod export_to_hdf5(h5_file, model, eids)[source]

exports the elements in a vectorized way

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]

Cross links the card so referenced cards can be extracted directly

Parameters:
modelBDF()

the BDF object

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

write_card_16(is_double=False)[source]
class pyNastran.bdf.cards.elements.rods.CTUBE(eid, pid, nids, comment='')[source]

Bases: RodElement

1

2

3

4

5

CTUBE

EID

PID

N1

N2

Creates a CTUBE card

Parameters:
eidint

element id

pidint

property id

nidslist[int, int]

node ids

commentstr; default=’’

a comment for the card

Area() float[source]
Centroid()[source]
E() float[source]
G() float[source]
J()[source]
Length()[source]

Gets the length of the element.

\[L = \sqrt{ (n_{x2}-n_{x1})^2+(n_{y2}-n_{y1})^2+(n_{z2}-n_{z1})^2 }\]
Mass() float[source]

get the mass of the element.

\[m = \left( \rho A + nsm \right) L\]
Mid()[source]
Nsm() float[source]
Rho()[source]

returns the material density f$ rho f$

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

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

Parameters:
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

center_of_mass()[source]
cross_reference(model: BDF) None[source]
classmethod export_to_hdf5(h5_file, model, eids)[source]

exports the elements in a vectorized way

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 = 'CTUBE'
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.rods.RodElement[source]

Bases: Element

dummy init

Mass()[source]

get the mass of the element.

\[m = \left( \rho A + nsm \right) L\]
get_edge_ids()[source]
property node_ids