InternalMapdlManager#

class ansys.saf.product_manager.mapdl.InternalMapdlManager(**kwargs: Any)#

Bases: ansys.saf.glow.solution.InstanceManager[ansys.mapdl.core.Mapdl, MapdlStateInfo]

A private class to manage a Mapdl instance with secure gRPC connection.

Mapdl implements its own project directory, and we configure it to be GLOW’s product space so we don’t need to synchronize files between both directories and all files are automatically preserved between reinitializations.

Overview#

get_product_name_implement

Return the name of Mapdl in the PIM environment.

initialize

Initialize and start the Mapdl server.

get_client_object_implement

Return an instance of Mapdl’s client given the host and port of the shared product instance.

save_state_implement

Save the state of the product instance.

load_state_implement

Load the state of the product instance.

shutdown_implement

Gracefully terminates Mapdl instance process.

Import detail#

from ansys.saf.product_manager.mapdl import InternalMapdlManager

Attribute detail#

InternalMapdlManager.PRODUCT_NAME = 'mapdl-secure'#
InternalMapdlManager.SERVICE_NAME = 'grpc'#

Method detail#

InternalMapdlManager.initialize(version: str | None = None)#

Initialize and start the Mapdl server.

classmethod InternalMapdlManager.get_product_name_implement() → str#

Return the name of Mapdl in the PIM environment.

InternalMapdlManager.get_client_object_implement(hostname: str, port: int) → ansys.mapdl.core.Mapdl#

Return an instance of Mapdl’s client given the host and port of the shared product instance.

InternalMapdlManager.save_state_implement() → None#

Save the state of the product instance.

Subclasses must implement the logic required to store the state of the product instance.

InternalMapdlManager.load_state_implement() → None#

Load the state of the product instance.

Subclasses must implement the logic required to restore the state of the product instance.

InternalMapdlManager.shutdown_implement() → None#

Gracefully terminates Mapdl instance process.