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
ordocker_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:
Examples using launch_acp#
Advanced selection rules example
PyMechanical to CDB shell workflow