get_value

Mapdl.get_value(entity='', entnum='', item1='', it1num='', item2='', it2num='', **kwargs)

Runs the GET command and returns a Python value.

This method uses _MapdlCore.get().

See the full MADPL command documentation at *GET

Parameters
  • entity – Entity keyword. Valid keywords are NODE, ELEM, KP, LINE, AREA, VOLU, PDS, etc.

  • entnum – The number or label for the entity (as shown for ENTNUM = in the tables below). In some cases, a zero (or blank) ENTNUM represents all entities of the set.

  • item1 – The name of a particular item for the given entity. Valid items are as shown in the Item1 columns of the tables below.

  • it1num – The number (or label) for the specified Item1 (if any). Valid IT1NUM values are as shown in the IT1NUM columns of the tables below. Some Item1 labels do not require an IT1NUM value.

  • item2 – A second set of item labels and numbers to further qualify the item for which data are to be retrieved. Most items do not require this level of information.

  • it2num – A second set of item labels and numbers to further qualify the item for which data are to be retrieved. Most items do not require this level of information.

Returns

par (float) – Floating point value of the parameter.

Examples

Retrieve the number of nodes.

>>> value = ansys.get_value('node', '', 'count')
>>> value
3003

Retrieve the number of nodes using keywords.

>>> value = ansys.get_value(entity='node', item1='count')
>>> value
3003