launch_acp#

ansys.acp.core.launch_acp(config=None, launch_mode=None, timeout=30.0)#

Launch an ACP instance.

Launch the ACP gRPC server with the given configuration. If no configuration is provided, the configured default is used.

Warning

Do not execute this function with untrusted input parameters. See the security guide for details.

Parameters:
  • config (DirectLaunchConfig | DockerComposeLaunchConfig | None) – The configuration used for launching ACP. If unspecified, the default for the given launch mode is used.

  • launch_mode (LaunchMode | None) – Specifies which ACP launcher is used. One of direct or docker_compose. If unspecified, the configured default is used. If no default is configured, direct is used.

  • timeout (float | None) – Timeout to wait until ACP responds. If None is specified, the check that ACP has started is skipped.

Returns:

ACP instance which can be used to control the server, and instantiate objects on the server.

Return type:

ACPInstance[ControllableServerProtocol]

Examples using launch_acp#

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

PyMechanical shell workflow

PyMechanical shell workflow

PyMechanical solid workflow

PyMechanical solid workflow

PyMechanical to CDB shell workflow

PyMechanical to CDB shell workflow

Optimizing ply angles

Optimizing ply angles