ACPInstance#

class ansys.acp.core.ACPInstance(*, server, channel, filetransfer_handler, is_remote)#

Control an ACP instance.

Supports the following operations to control an ACP instance:

  • Loading and unloading ACP models

  • Up- and download of files to the (possibly remote) ACP instance

  • Check if the ACP instance is running

In addition, the ACP instance may support starting, stopping, and restarting.

Note that this class is not meant for instantiating directly. The launch_acp() function should be used instead.

Methods

ACPInstance.check([timeout])

Check if the ACP instance is running.

ACPInstance.clear()

Close all models.

ACPInstance.download_file(remote_path, ...)

Download a file from the server.

ACPInstance.import_model(path, *[, name, format])

Load an ACP model from a file.

ACPInstance.restart([stop_timeout])

Stop, then start the product instance.

ACPInstance.start()

Start the product instance.

ACPInstance.stop(*[, timeout])

Stop the product instance.

ACPInstance.upload_file(local_path)

Upload a file to the server.

ACPInstance.wait(timeout)

Wait for the ACP instance to respond.

Attributes

ACPInstance.is_remote

Whether the server is remote or local.

ACPInstance.models

Models currently loaded on the server.

ACPInstance.server_version

Version of the connected server.

Examples using ACPInstance#

Materials

Materials

Rosette

Rosette

Basic selection rules

Basic selection rules

Advanced selection rules

Advanced selection rules

Direction definition

Direction definition

Thickness definition

Thickness definition

Sensor

Sensor

Sandwich panel

Sandwich panel

Solid Model

Solid Model

Imported ply

Imported ply

Imported solid model

Imported solid model

HDF5 Composite CAE

HDF5 Composite CAE

PyMAPDL workflow

PyMAPDL workflow

Advanced PyMAPDL workflow

Advanced PyMAPDL workflow

Optimizing ply angles

Optimizing ply angles