load_table

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

Load a table from Python to MAPDL.

Uses TREAD to transfer the table.

Parameters
  • name (str) – 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".

  • array (np.ndarray or List) – List as a table or numpy array.

  • var1 (str, optional) –

    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

    • "1"]: 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

  • var2 (str, optional) – See var1

  • var3 (str, optional) – See var1

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])