next_available

LocalMapdlPool.next_available(return_index=False)

Wait until an instance of mapdl is available and return that instance.

Parameters
return_indexbool, optional

Return the index along with the instance. Default False.

Returns
pyansys.MapdlGrpc

Instance of MAPDL.

int

Index within the pool of the instance of MAPDL. By default this is not returned.

Examples

>>> mapdl = pool.next_available()
>>> print(mapdl)
Product:         ANSYS Mechanical Enterprise
MAPDL Version:   RELEASE                    BUILD  0.0      UPDATE        0
PyANSYS Version: 0.55.1