exit#
- Client.exit()#
Close the connection with the server.
If the client has launched the server, this method also kills the server process.
Examples
>>> import ansys.meshing.prime as prime >>> prime_client = prime.launch_prime() # This launches a server process. >>> model = prime_client.model >>> fileio = prime.FileIO(model) >>> result = fileio.read_pmdat('example.pmdat', prime.FileReadParams(model=model)) >>> print(result) >>> prime_client.exit() # Sever connection with server and kill the server.
Examples using Client.exit#

Convert data when importing and exporting mesh and CAD formats
Convert data when importing and exporting mesh and CAD formats

Mesh a mid-surfaced bracket for a structural analysis
Mesh a mid-surfaced bracket for a structural analysis

Mesh a pipe T-section for structural thermal and fluid flow analysis
Mesh a pipe T-section for structural thermal and fluid flow analysis

Morph a hexahedral mesh of a turbine blade to a new shape
Morph a hexahedral mesh of a turbine blade to a new shape

Mesh a generic F1 car rear wing for external aero simulation
Mesh a generic F1 car rear wing for external aero simulation

Mesh a generic PCB geometry with multiple hexa layers
Mesh a generic PCB geometry with multiple hexa layers

Create a contact patch for wrapping between a wheel and ground interface
Create a contact patch for wrapping between a wheel and ground interface