InternalMechanicalManager#
- class ansys.saf.product_manager.mechanical.InternalMechanicalManager(**kwargs: Any)#
Bases:
ansys.saf.glow.solution.InstanceManager[ansys.mechanical.core.Mechanical,MechanicalStateInfo]A private class to manage a Mechanical instance with secure gRPC connections.
Mechanical implements its own project directory, where all files are uploaded to/generated/downloaded from. It is not configurable. Thus, this manager: - stores a copy of it in GLOW’s product space when saving the instance state - loads a copy of it from GLOW’s product space when restoring the instance state The user must use pymechanical’s upload()/download() to move files to the product working directory. Using this manager’s upload()/download() will only move them to the product space.
Overview#
Return the name of Mechanical in the PIM environment. |
Initialize and start the Mechanical server. |
|
Return an instance of Mechanical’s client given the host and port of the shared product instance. |
|
Save the state of Mechanical instance to the given directory. |
|
Loads the state of Mechanical instance from the given directory. |
|
Gracefully terminates Mechanical instance process. |
Import detail#
from ansys.saf.product_manager.mechanical import InternalMechanicalManager
Attribute detail#
- InternalMechanicalManager.PRODUCT_NAME = 'mechanical-secure'#
- InternalMechanicalManager.SERVICE_NAME = 'grpc'#
Method detail#
- InternalMechanicalManager.initialize(version: str | None = None)#
Initialize and start the Mechanical server.
- classmethod InternalMechanicalManager.get_product_name_implement() str#
Return the name of Mechanical in the PIM environment.
- InternalMechanicalManager.get_client_object_implement(hostname: str, port: int) ansys.mechanical.core.Mechanical#
Return an instance of Mechanical’s client given the host and port of the shared product instance.
- InternalMechanicalManager.save_state_implement() None#
Save the state of Mechanical instance to the given directory.