Client#

class ansys.meshing.prime.Client(*, server_process=None, ip='127.0.0.1', port=50055, timeout=20.0, credentials=None, **kwargs)#

Provides the Client class for PyPrimeMesh.

Parameters:
server_processAny, optional

Server process in the system. The default is None.

ipstr, optional

IP address where the server is located. The default is defaults.ip().

portint, optional

Port where the server is deployed. The default is defaults.port().

timeoutfloat, optional

Maximum time to wait for connection. The default is defaults.connection_timeout().

credentialsAny, optional

Credentials to connect to the server. The default is None.

Raises:
ValueError

Failed to load the communicator.

Methods

Client.exit()

Close the connection with the server.

Client.run_on_server(recipe)

Run a recipe on the server.

Attributes

Client.model

Get model associated with the client.

Examples using Client#

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 mixing elbow for a flow analysis

Mesh a mixing elbow for a flow 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

Wrap a toy car for a flow analysis

Wrap a toy car for a flow analysis

Mesh a PCB for structural thermal analysis

Mesh a PCB for structural thermal 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 saddle bracket for a structural analysis

Mesh a saddle bracket for a structural analysis

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

Mesh a set of solder balls (beta)

Mesh a set of solder balls (beta)

Add a new example

Add a new example