rods Module

Inheritance diagram of pyNastran.bdf.cards.elements.rods
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: pyNastran.bdf.cards.elements.rods.RodElement

1 2 3 4 5 6 7 8 9
CONROD EID N1 N2 MID A J C NSM

Creates a CONROD card

Parameters:
eid : int

element id

mid : int

material id

nids : List[int, int]

node ids

A : float

area

j : float; default=0.

polar moment of inertia

c : float; default=0.

stress factor

nsm : float; default=0.

non-structural mass per unit length

comment : str; default=’‘

a comment for the card

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

torsional constant

Centroid(self)[source]

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

E(self)[source]

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

G(self)[source]

returns the Shear Modulus, \(G\)

J(self)[source]

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

Length(self)[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(self)[source]

Gets the mass per length of the CONROD

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

Placeholder method for the non-structural mass

Pid(self)[source]

Spoofs the property id for the CONROD

Rho(self)[source]

returns the material density f$ rho f$

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

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

Parameters:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

center_of_mass(self)[source]

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

cross_reference(self, model)[source]

Cross links the card so referenced cards can be extracted directly

Parameters:
model : BDF()

the BDF object

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

exports the elements in a vectorized way

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

safe_cross_reference(self, model, xref_errors)[source]

Cross links the card so referenced cards can be extracted directly

Parameters:
model : BDF()

the BDF object

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

Bases: pyNastran.bdf.cards.elements.rods.RodElement

1 2 3 4 5
CROD EID PID N1 N2

Creates a CROD card

Parameters:
eid : int

element id

pid : int

property id (PROD)

nids : List[int, int]

node ids

comment : str; default=’‘

a comment for the card

Area(self)[source]
C(self)[source]
Centroid(self)[source]
E(self)[source]
G(self)[source]
J(self)[source]
Length(self)[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(self)[source]
Mid(self)[source]
Nsm(self)[source]
Rho(self)[source]

returns the material density f$ rho f$

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

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

Parameters:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

center_of_mass(self)[source]
cross_reference(self, model)[source]
classmethod export_to_hdf5(h5_file, model, eids)[source]

exports the elements in a vectorized way

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

safe_cross_reference(self, model, xref_errors)[source]

Cross links the card so referenced cards can be extracted directly

Parameters:
model : BDF()

the BDF object

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

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

Bases: pyNastran.bdf.cards.elements.rods.RodElement

1 2 3 4 5
CTUBE EID PID N1 N2

Creates a CTUBE card

Parameters:
eid : int

element id

pid : int

property id

nids : List[int, int]

node ids

comment : str; default=’‘

a comment for the card

Area(self)[source]
Centroid(self)[source]
E(self)[source]
G(self)[source]
J(self)[source]
Length(self)[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(self)[source]

get the mass of the element.

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

returns the material density f$ rho f$

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

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

Parameters:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

center_of_mass(self)[source]
cross_reference(self, model)[source]
classmethod export_to_hdf5(h5_file, model, eids)[source]

exports the elements in a vectorized way

raw_fields(self)[source]
safe_cross_reference(self, model, xref_errors)[source]

Cross links the card so referenced cards can be extracted directly

Parameters:
model : BDF()

the BDF object

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

Bases: pyNastran.bdf.cards.base_card.Element

Mass(self)[source]

get the mass of the element.

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