Parameters#

class ansys.mapdl.core.parameters.Parameters(mapdl)#

Collection of MAPDL parameters.

Notes

See Setting and retrieving parameters for additional notes.

Examples

Simply list all parameters except for MAPDL MATH parameters.

>>> mapdl.parameters
MAPDL Parameters
----------------
ARR                              : ARRAY DIM (3, 1, 1)
PARM_FLOAT                       : 20.0
PARM_INT                         : 10.0
PARM_LONG_STR                    : "stringstringstringstringstringst"
PARM_STR                         : "string"
PORT                             : 50052.0

Get a parameter

>>> mapdl.parameters['PARM_FLOAT']
20.0

Get an array parameter

>>> mapdl.parameters['ARR']
array([1., 2., 3.])

Methods

Parameters.copy()

Return a shallow copy of the dictionary.

Parameters.items()

Return a view object that contains the key-value pairs in the dictionary.

Parameters.keys()

Return a view object that contains the keys in the dictionary.

Parameters.values()

Return a view object that contains the values in the dictionary.

Attributes

Parameters.csys

Active coordinate system

Parameters.dsys

Active display coordinate system

Parameters.esys

Active element coordinate system

Parameters.material

Active material

Parameters.numcpu

Number of Distributed MAPDL processes being used.

Parameters.platform

The current platform.

Parameters.real

Active real constant set

Parameters.revision

MAPDL revision version.

Parameters.routine

Current routine string as a string.

Parameters.rsys

Active result coordinate system

Parameters.section

Active section number

Parameters.type

Active element type

Parameters.units

Units specified by /UNITS command.