properties Module

digraph inheritanceea0aea429d { 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.Property" [URL="../pyNastran.bdf.cards.base_card.html#pyNastran.bdf.cards.base_card.Property",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="Base Property Class"]; "pyNastran.bdf.cards.base_card.BaseCard" -> "pyNastran.bdf.cards.base_card.Property" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.properties.properties.CrackProperty" [URL="#pyNastran.bdf.cards.properties.properties.CrackProperty",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.Property" -> "pyNastran.bdf.cards.properties.properties.CrackProperty" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.properties.properties.PFAST" [URL="#pyNastran.bdf.cards.properties.properties.PFAST",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.Property" -> "pyNastran.bdf.cards.properties.properties.PFAST" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.properties.properties.PGAP" [URL="#pyNastran.bdf.cards.properties.properties.PGAP",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.Property" -> "pyNastran.bdf.cards.properties.properties.PGAP" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.properties.properties.PRAC2D" [URL="#pyNastran.bdf.cards.properties.properties.PRAC2D",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="CRAC2D Element Property"]; "pyNastran.bdf.cards.properties.properties.CrackProperty" -> "pyNastran.bdf.cards.properties.properties.PRAC2D" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.bdf.cards.properties.properties.PRAC3D" [URL="#pyNastran.bdf.cards.properties.properties.PRAC3D",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="CRAC3D Element Property"]; "pyNastran.bdf.cards.properties.properties.CrackProperty" -> "pyNastran.bdf.cards.properties.properties.PRAC3D" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
All ungrouped properties are defined in this file. This includes:
  • PFAST

  • PGAP

  • PRAC2D (CrackProperty)

  • PRAC3D (CrackProperty)

  • PCONEAX (not done)

class pyNastran.bdf.cards.properties.properties.CrackProperty[source]

Bases: Property

dummy init

Mid() int[source]

returns the material ID of an element

Returns:
midint

the Material ID

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.properties.properties.PFAST(pid: int, d: float, kt1: float, kt2: float, kt3: float, mcid: int = -1, mflag: int = 0, kr1: float = 0.0, kr2: float = 0.0, kr3: float = 0.0, mass: float = 0.0, ge: float = 0.0, comment: str = '')[source]

Bases: Property

1

2

3

4

5

6

7

8

9

PFAST

PID

D

MCID

MFLAG

KT1

KT2

KT3

KR1

KR2

KR3

MASS

GE

PFAST

7

1.1

70

Creates a PFAST card

Parameters:
pidint

property id

dfloat

diameter of the fastener

kt1, kt2, kt3float

stiffness values in directions 1-3

mcidint; default=01

specifies the element stiffness coordinate system

mflagint; default=0

0-absolute; 1-relative

kr1, kr2, kr3float; default=0.0

rotational stiffness values in directions 1-3

massfloat; default=0.0

lumped mass of the fastener

gefloat; default=0.0

structural damping

commentstr; default=’’

a comment for the card

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

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

d

diameter of the fastener

ge

Structural damping

kr1

Rotational stiffness values in directions 1-3

kt1

stiffness values in directions 1-3

mass

Lumped mass of fastener

mcid

Specifies the element stiffness coordinate system

mflag

0-absolute 1-relative

pid

Property ID

pname_fid_map = {'KR1': 'kr1', 'KR2': 'kr2', 'KR3': 'kr3', 'KT1': 'kt1', 'KT2': 'kt2', 'KT3': 'kt3', 'MASS': 'mass'}
raw_fields()[source]
repr_fields()[source]

Gets the fields in their simplified form

Returns:
fieldslist[varies]

the fields that define the card

type = 'PFAST'
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.properties.properties.PGAP(pid, u0=0.0, f0=0.0, ka=100000000.0, kb=None, mu1=0.0, kt=None, mu2=None, tmax=0.0, mar=100.0, trmin=0.001, comment='')[source]

Bases: Property

1

2

3

4

5

6

7

8

9

PGAP

PID

U0

F0

KA

KB

KT

MU1

MU2

TMAX

MAR

TRMIN

PGAP

2

0.025

2.5

1.E6

1.E6

0.25

0.25

Defines the properties of the gap element (CGAP entry).

Parameters:
pidint

property id for a CGAP

u0float; default=0.

Initial gap opening

f0float; default=0.

Preload

kafloat; default=1.e8

Axial stiffness for the closed gap

kbfloat; default=None -> 1e-14 * ka

Axial stiffness for the open gap

mu1float; default=0.

Coefficient of static friction for the adaptive gap element or coefficient of friction in the y transverse direction for the nonadaptive gap element

ktfloat; default=None -> mu1*ka

Transverse stiffness when the gap is closed

mu2float; default=None -> mu1

Coefficient of kinetic friction for the adaptive gap element or coefficient of friction in the z transverse direction for the nonadaptive gap element

tmaxfloat; default=0.

Maximum allowable penetration used in the adjustment of penalty values. The positive value activates the penalty value adjustment

marfloat; default=100.

Maximum allowable adjustment ratio for adaptive penalty values KA and KT

trminfloat; default=0.001

Fraction of TMAX defining the lower bound for the allowable penetration

commentstr; default=’’

a comment for the card

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

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

Parameters:
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

cross_reference(model: BDF) None[source]
f0

preload

ka

axial stiffness of closed gap

kb

axial stiffness of open gap

kt

transverse stiffness of closed gap

mu1

static friction coeff

mu2

kinetic friction coeff

pid

Property ID

pname_fid_map = {'KA': 'ka', 10: 'tmax', 11: 'mar', 12: 'trmin', 5: 'ka', 6: 'kb', 7: 'kt', 8: 'mu1', 9: 'mu2'}
raw_fields()[source]
repr_fields()[source]

Gets the fields in their simplified form

Returns:
fieldslist[varies]

the fields that define the card

type = 'PGAP'
u0

initial gap opening

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.properties.properties.PRAC2D(pid, mid, thick, iplane, nsm=0.0, gamma=0.5, phi=180.0, comment='')[source]

Bases: CrackProperty

CRAC2D Element Property Defines the properties and stress evaluation techniques to be used with the CRAC2D structural element.

dummy init

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

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

gamma

Exponent used in the displacement field. See Remark 4. (Real; Default = 0.5)

iplane

Plane strain or plane stress option. Use 0 for plane strain; 1 for plane stress. (Integer = 0 or 1)

mid

Material ID

nsm

Non-structural mass per unit area.(Real >= 0.0; Default = 0)

phi

Angle (in degrees) relative to the element x-axis along which stress intensity factors are to be calculated. See Remark 4. (Real; Default = 180.0)

pid

Property ID

raw_fields()[source]
repr_fields()[source]

Gets the fields in their simplified form

Returns:
fieldslist[varies]

the fields that define the card

type = 'PRAC2D'
uncross_reference() None[source]

Removes cross-reference links

validate()[source]

card checking method that should be overwritten

class pyNastran.bdf.cards.properties.properties.PRAC3D(pid, mid, gamma=0.5, phi=180.0, comment='')[source]

Bases: CrackProperty

CRAC3D Element Property Defines the properties of the CRAC3D structural element.

dummy init

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

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

gamma

Exponent used in the displacement field. See Remark 4. (Real; Default = 0.5)

mid

Material ID

phi

Angle (in degrees) relative to the element x-axis along which stress intensity factors are to be calculated. See Remark 4. (Real; Default = 180.0)

pid

Property ID

raw_fields()[source]
repr_fields()[source]

Gets the fields in their simplified form

Returns:
fieldslist[varies]

the fields that define the card

type = 'PRAC3D'
uncross_reference() None[source]

Removes cross-reference links