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#
Return the name of Mapdl in the PIM environment. |
Initialize and start the Mapdl server. |
|
Return an instance of Mapdl’s client given the host and port of the shared product instance. |
|
Save the state of the product instance. |
|
Load the state of the product instance. |
|
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#
- 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.