get_variable#

Mapdl.get_variable(ir='', tstrt='', kcplx='', **kwargs)#

Obtain the variable values.

Parameters:
irstr, optional

Reference number of the variable (1 to NV [NUMVAR]).

tstrtstr, optional

Time (or frequency) corresponding to start of IR data. If between values, the nearer value is used. By default it is the first value.

kcplxstr, optional

Complex number key:

  • 0 - Use the real part of the IR data. Default.

  • 1 - Use the imaginary part of the IR data.

Returns:
np.array

Variable values as array.

Return type:

ndarray[tuple[int, ...], dtype[float64]]