bdf_tables Module

Inheritance diagram of pyNastran.bdf.cards.bdf_tables

All table cards are defined in this file. This includes:

  • table_d

  • TABLED1 - Dynamic Table = f(Time, Frequency)

  • TABLED2

  • TABLED3

  • table_m

  • TABLEM1 - Material table = f(Temperature)

  • TABLEM2

  • TABLEM3

  • TABLEM4

*tables
  • TABLEST - Material table = f(Stress)

  • TABLES1

  • TABLEHT - Material table = f(Temperature)

  • TABLEH1

*random_tables
  • TABRND1

  • TABRNDG

class pyNastran.bdf.cards.bdf_tables.DTABLE(default_values, comment='')[source]

Bases: pyNastran.bdf.cards.base_card.BaseCard

Creates a DTABLE card

Parameters
default_valuesdict
keystr

the parameter name

valuefloat

the value

commentstr; default=’’

a comment for the card

_finalize_hdf5(encoding)[source]

hdf5 helper function

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

raw_fields()[source]
type = 'DTABLE'
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.bdf_tables.TABDMP1(tid: int, x: Any, y: Any, Type: str = 'G', comment: str = '')[source]

Bases: pyNastran.bdf.cards.bdf_tables.Table

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

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

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'TABDMP1'
class pyNastran.bdf.cards.bdf_tables.TABLED1(tid: int, x: numpy.ndarray, y: numpy.ndarray, xaxis: str = 'LINEAR', yaxis: str = 'LINEAR', extrap: int = 0, comment: str = '')[source]

Bases: pyNastran.bdf.cards.bdf_tables.Table

Dynamic Load Tabular Function, Form 1 Defines a tabular function for use in generating frequency-dependent and time-dependent dynamic loads.

1

2

3

4

5

6

7

8

9

TABLED1

TID

XAXIS

YAXIS

EXTRAP

x1

y1

x2

y2

x3

y3

etc.

ENDT

TABLED1

32

-3.0

6.9

2.0

5.6

3.0

5.6

ENDT

..note:: EXTRAP is NX specific

Creates a TABLED1, which is a dynamic load card that is applied by the DAREA card

Parameters
tidint

table id

xList[float]

nvalues

yList[float]

nvalues

xaxisstr

LINEAR, LOG

yaxisstr

LINEAR, LOG

extrapint; default=0
Extrapolation method:

0 : linear 1 : constant

Note

this is NX specific

commentstr; default=’’

a comment for the card

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

interpolate(x)[source]
raw_fields()[source]
repr_fields()[source]

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'TABLED1'
class pyNastran.bdf.cards.bdf_tables.TABLED2(tid: int, x1: float, x: numpy.ndarray, y: numpy.ndarray, extrap: int = 0, comment: str = '')[source]

Bases: pyNastran.bdf.cards.bdf_tables.Table

Dynamic Load Tabular Function, Form 2 Defines a tabular function for use in generating frequency-dependent and time-dependent dynamic loads. Also contains parametric data for use with the table.

Parameters
tidint

table id

x1float

y = yT(x - x1)

xList[float]

the x values

yList[float]

the y values

extrapint; default=0
Extrapolation method:

0 : linear 1 : constant

Note

this is NX specific

commentstr; default=’’

a comment for the card

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

interpolate(x)[source]
raw_fields()[source]
repr_fields()[source]

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'TABLED2'
class pyNastran.bdf.cards.bdf_tables.TABLED3(tid: int, x1: float, x2: float, x: numpy.ndarray, y: numpy.ndarray, extrap: int = 0, comment: str = '')[source]

Bases: pyNastran.bdf.cards.bdf_tables.Table

Dynamic Load Tabular Function, Form 3 Defines a tabular function for use in generating frequency-dependent and time-dependent dynamic loads. Also contains parametric data for use with the table.

Parameters
tidint

table id

x1float

y = yT(x - x1)

x2???

???

xList[float]

the x values

yList[float]

the y values

extrapint; default=0
Extrapolation method:

0 : linear 1 : constant

Note

this is NX specific

commentstr; default=’’

a comment for the card

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

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

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'TABLED3'
class pyNastran.bdf.cards.bdf_tables.TABLED4(tid: int, x1: float, x2: float, x3: float, x4: float, a: List[float], comment: str = '')[source]

Bases: pyNastran.bdf.cards.bdf_tables.Table

Dynamic Load Tabular Function, Form 4 Defines the coefficients of a power series for use in generating frequency-dependent and time-dependent dynamic loads. Also contains parametric data for use with the table.

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

interpolate(x)[source]

y = sum_{i=0}^N Ai * ((x-x1)/x2))^i

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

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'TABLED4'
class pyNastran.bdf.cards.bdf_tables.TABLED5(tid, xs, table_ids, comment='')[source]

Bases: pyNastran.bdf.cards.bdf_tables.Table

Dynamic Load Tabular Function, Form 5 Defines a value as a function of two variables for use in generating frequency-dependent and time-dependent dynamic loads.

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

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

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'TABLED5'
class pyNastran.bdf.cards.bdf_tables.TABLEH1(tid, x, y, comment='')[source]

Bases: pyNastran.bdf.cards.bdf_tables.Table

1

2

3

4

5

6

7

8

9

TABLEH1

TID

x1

y1

x2

y2

x3

y3

etc.

ENDT

TABLEH1

32

0.0

0.0

0.01

0.2

ENDT

Adds a TABLEH1 card, which defines convection heat transfer coefficient. It’s referenced by a TABLEHT.

Parameters
tidint

Table ID

x, yList[float]

table values

commentstr; default=’’

a comment for the card

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

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

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'TABLEH1'
class pyNastran.bdf.cards.bdf_tables.TABLEHT(tid: int, x, y, comment='')[source]

Bases: pyNastran.bdf.cards.bdf_tables.Table

1

2

3

4

5

6 | 7

8

9

TABLEHT

TID


x1

tid1

x2

tid2

x3

tid3

etc.

ENDT

TABLEHT

32

10

11

ENDT

Adds a TABLEHT card, which a function of two variables for convection heat transfer coefficient.

Parameters
tidint

Table ID

x, yList[float]

table values

commentstr; default=’’

a comment for the card

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

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

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'TABLEHT'
class pyNastran.bdf.cards.bdf_tables.TABLEM1(tid, x, y, xaxis='LINEAR', yaxis='LINEAR', comment='')[source]

Bases: pyNastran.bdf.cards.bdf_tables.Table

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

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

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'TABLEM1'
class pyNastran.bdf.cards.bdf_tables.TABLEM2(tid, x1, x, y, extrap=0, comment='')[source]

Bases: pyNastran.bdf.cards.bdf_tables.Table

1

2

3

4

5

6

7

8

9

TABLEM2

TID

X1

EXTRAP

x1

y1

x2

y2

x3

y3

etc.

ENDT

TABLEM2

32

-10.5

-3.0

6.9

2.0

5.6

3.0

5.6

ENDT

..note:: EXTRAP is NX specific

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

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

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'TABLEM2'
class pyNastran.bdf.cards.bdf_tables.TABLEM3(tid, x1, x2, x, y, extrap=0, comment='')[source]

Bases: pyNastran.bdf.cards.bdf_tables.Table

1

2

3

4

5

6

7

8

9

TABLEM3

TID

X1

X2

EXTRAP

x1

y1

x2

y2

x3

y3

etc.

ENDT

TABLEM3

32

126.9

30.0

-3.0

6.9

2.0

5.6

3.0

5.6

ENDT

..note:: EXTRAP is NX specific

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

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

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'TABLEM3'
class pyNastran.bdf.cards.bdf_tables.TABLEM4(tid, x1, x2, x3, x4, a, comment='')[source]

Bases: pyNastran.bdf.cards.bdf_tables.Table

1

2

3

4

5

6

7

8

TABLEM4

TID

X1

X2

X3

X4

A1

A2

A3

A4

A5

etc.

ENDT

TABLEM4

32

0.0

1.0

0.0

2.91

-0.0329

6.51-5

0.0

-3.4-7

ENDT

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

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

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'TABLEM4'
class pyNastran.bdf.cards.bdf_tables.TABLES1(tid, x, y, Type=1, comment='')[source]

Bases: pyNastran.bdf.cards.bdf_tables.Table

1

2

3

4

5

6

7

8

9

TABLES1

TID

TYPE

x1

y1

x2

y2

x3

y3

etc.

ENDT

TABLES1

32

0.0

0.0

0.01

0.2

ENDT

Adds a TABLES1 card, which defines a stress dependent material

Parameters
tidint

Table ID

Typeint; default=1

Type of stress-strain curve (1 or 2) 1 - Cauchy (true) stress vs. total true strain 2 - Cauchy (true) stress vs. plastic true strain (MSC only) Type is MSC-specific and was added somewhere between 2006 and 2016.

x, yList[float]

table values

commentstr; default=’’

a comment for the card

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

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

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'TABLES1'
class pyNastran.bdf.cards.bdf_tables.TABLEST(tid, x, y, comment='')[source]

Bases: pyNastran.bdf.cards.bdf_tables.Table

1

2

3

4

5

6 | 7

8

9

TABLEST

TID


x1

y1

x2

y2

x3

y3

etc.

ENDT

TABLEST

32

150.0

10.0

175.0

ENDT

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

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

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'TABLEST'
class pyNastran.bdf.cards.bdf_tables.TABRND1(tid, x, y, xaxis='LINEAR', yaxis='LINEAR', comment='')[source]

Bases: pyNastran.bdf.cards.bdf_tables.Table

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

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

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'TABRND1'
class pyNastran.bdf.cards.bdf_tables.TABRNDG(tid, Type, LU, WG, comment='')[source]

Bases: pyNastran.bdf.cards.bdf_tables.Table

Gust Power Spectral Density

Defines the power spectral density (PSD) of a gust for aeroelastic response analysis.

Creates a TABRNDG card

Parameters
tidint

table id

Typeint

PSD type 1 : von Karman 2 : Dryden

LUfloat

Scale of turbulence divided by velocity (units of time)

WGfloat

Root-mean-square gust velocity

commentstr; default=’’

a comment for the card

LU = None

Scale of turbulence divided by velocity (units of time; Real)

Type = None

PSD Type: 1. von Karman; 2. Dryden

WG = None

Root-mean-square gust velocity. (Real)

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

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

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

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

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

tid = None

Table identification number. (Integer >0)

type = 'TABRNDG'
class pyNastran.bdf.cards.bdf_tables.Table[source]

Bases: pyNastran.bdf.cards.base_card.BaseCard

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

pyNastran.bdf.cards.bdf_tables._map_axis(axis)[source]
pyNastran.bdf.cards.bdf_tables.make_xy(table_id, table_type, xy)[source]
pyNastran.bdf.cards.bdf_tables.read_table(card, table_id, table_type)[source]

common method for reading tables that handles SKIP

pyNastran.bdf.cards.bdf_tables.read_table_float_int(card, table_id, table_type)[source]

common method for reading tables that handles SKIP