ACP#

class ansys.acp.core.ACP(*, server, channel, filetransfer_strategy, 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

ACP.check([timeout])

Check if the ACP instance is running.

ACP.clear()

Close all models.

ACP.download_file(remote_filename, local_path)

Download a file from the server.

ACP.import_model(*[, name, format])

Load an ACP model from a file.

ACP.restart([stop_timeout])

Stop, then start the product instance.

ACP.start()

Start the product instance.

ACP.stop(*[, timeout])

Stop the product instance.

ACP.upload_file(local_path)

Upload a file to the server.

ACP.wait(timeout)

Wait for the ACP instance to respond.

Attributes

ACP.is_remote

Whether the server is remote or local.

ACP.models

Models currently loaded on the server.

ACP.server_version

Version of the connected server.