load_table

Mapdl.load_table(name, array, var1='', var2='', var3='', csysid='')

Load a table from Python to MAPDL.

Uses TREAD to transfer the table. It should be noticed that PyMAPDL when query a table, it will return the table but not its axis (meaning it will return table[1:,1:]).

Parameters
namestr

An alphanumeric name used to identify this table. Name may be up to 32 characters, beginning with a letter and containing only letters, numbers, and underscores. Examples: "ABC" "A3X" "TOP_END".

arraynp.ndarray or List

List as a table or numpy array.

var1str, optional

Variable name corresponding to the first dimension (row). Default Row

A primary variable (listed below) or can be an independent parameter. If specifying an independent parameter, then you must define an additional table for the independent parameter. The additional table must have the same name as the independent parameter and may be a function of one or more primary variables or another independent parameter. All independent parameters must relate to a primary variable.

  • "TIME": Time

  • "FREQ": Frequency

  • "X": X-coordinate location

  • "Y": Y-coordinate location

  • "Z": Z-coordinate location

  • "TEMP": Temperature

  • "VELOCITY": Velocity

  • "PRESSURE": Pressure

  • "GAP": Geometric gap/penetration

  • "SECTOR": Cyclic sector number

  • "OMEGS": Amplitude of the rotational velocity vector

  • "ECCENT": Eccentricity

  • "THETA": Phase shift

  • "ELEM": Element number

  • "NODE": Node number

  • "CONC": Concentration

var2str, optional

Variable name corresponding to the first dimension (column). See var1. Default column.

var3str, optional

Variable name corresponding to the first dimension (plane). See var1. Default Plane.

csysidstr, optional

An integer corresponding to the coordinate system ID number. APDL Default = 0 (global Cartesian)

Examples

>>> my_conv = np.array([[0, 0.001],
                        [120, 0.001],
                        [130, 0.005],
                        [700, 0.005],
                        [710, 0.002],
                        [1000, 0.002]])
>>> mapdl.load_table('MY_TABLE', my_conv, 'TIME')
>>> mapdl.parameters['MY_TABLE']
array([0.0001, 0.0001, 0.0005, 0.0005, 0.0002, 0.0002])