ACPInstance#

class ansys.acp.core.ACPInstance(*, 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

ACPInstance.check([timeout])

Check if the ACP instance is running.

ACPInstance.clear()

Close all models.

ACPInstance.download_file(remote_filename, ...)

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#

Sandwich panel example

Sandwich panel example

Basic selection rules example

Basic selection rules example

Advanced selection rules example

Advanced selection rules example

Thickness definition example

Thickness definition example

Rosette example

Rosette example

Direction definition example

Direction definition example

PyMAPDL workflow

PyMAPDL workflow

Advanced PyMAPDL workflow

Advanced PyMAPDL workflow

Optimizing ply angles

Optimizing ply angles