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_values : dict
key : str

the parameter name

value : float

the value

comment : str; default=’‘

a comment for the card

_finalize_hdf5(self, 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:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

raw_fields(self)[source]
type = 'DTABLE'
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.bdf_tables.RandomTable[source]

Bases: pyNastran.bdf.cards.bdf_tables.Table

type = 'TABLE??'
class pyNastran.bdf.cards.bdf_tables.TABDMP1(tid, x, y, Type='G', comment='')[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:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

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

type = 'TABDMP1'
class pyNastran.bdf.cards.bdf_tables.TABLED1(tid, x, y, xaxis='LINEAR', yaxis='LINEAR', extrap=0, comment='')[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:
tid : int

table id

x : List[float]

nvalues

y : List[float]

nvalues

xaxis : str

LINEAR, LOG

yaxis : str

LINEAR, LOG

extrap : int; default=0
Extrapolation method:

0 : linear 1 : constant

Note

this is NX specific

comment : str; 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:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

interpolate(self, x)[source]
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

type = 'TABLED1'
class pyNastran.bdf.cards.bdf_tables.TABLED2(tid, x1, x, y, extrap=0, comment='')[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:
tid : int

table id

x1 : float

y = yT(x - x1)

x : List[float]

the x values

y : List[float]

the y values

extrap : int; default=0
Extrapolation method:

0 : linear 1 : constant

Note

this is NX specific

comment : str; 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:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

interpolate(self, x)[source]
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

type = 'TABLED2'
class pyNastran.bdf.cards.bdf_tables.TABLED3(tid, x1, x2, x, y, extrap=0, comment='')[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:
tid : int

table id

x1 : float

y = yT(x - x1)

x2 : ???

???

x : List[float]

the x values

y : List[float]

the y values

extrap : int; default=0
Extrapolation method:

0 : linear 1 : constant

Note

this is NX specific

comment : str; 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:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

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

type = 'TABLED3'
class pyNastran.bdf.cards.bdf_tables.TABLED4(tid, x1, x2, x3, x4, a, comment='')[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:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

interpolate(self, x)[source]

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

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

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:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

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

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:
tid : int

Table ID

x, y : List[float]

table values

comment : str; 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:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

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

type = 'TABLEH1'
class pyNastran.bdf.cards.bdf_tables.TABLEHT(tid, 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:
tid : int

Table ID

x, y : List[float]

table values

comment : str; 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:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

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

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:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

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

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:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

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

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:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

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

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:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

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

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:
tid : int

Table ID

Type : int; 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, y : List[float]

table values

comment : str; 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:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

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

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:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

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

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

Bases: pyNastran.bdf.cards.bdf_tables.RandomTable

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

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

Parameters:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

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

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

Bases: pyNastran.bdf.cards.bdf_tables.RandomTable

Gust Power Spectral Density

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

Creates a TABRNDG card

Parameters:
tid : int

table id

Type : int

PSD type 1 : von Karman 2 : Dryden

LU : float

Scale of turbulence divided by velocity (units of time)

WG : float

Root-mean-square gust velocity

comment : str; 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:
card : BDFCard()

a BDFCard object

comment : str; default=’‘

a comment for the card

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

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(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

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