ACPWorkflow#

class ansys.acp.core.ACPWorkflow(*, acp, local_working_directory=None, local_file_path, file_format, **kwargs)#

Instantiate an ACP Workflow.

Use the class methods from_cdb_or_dat_file() and from_acph5_file() to instantiate the workflow.

Parameters:
  • acp (ACP[ServerProtocol]) – The ACP Client.

  • local_file_path (Union[str, PathLike[str]]) – Path of the file to load.

  • file_format (str) – Format of the file to load. Options are "acp:h5", "ansys:cdb", "ansys:dat", and "ansys:h5".

  • kwargs (Any) – Additional keyword arguments to pass to the ACP.import_model() method.

Methods

ACPWorkflow.add_cad_geometry_from_local_file(path)

Add a local CAD geometry to the ACP model.

ACPWorkflow.from_acph5_file(acp, acph5_file_path)

Instantiate an ACP Workflow from an acph5 file.

ACPWorkflow.from_cdb_or_dat_file(*, acp, ...)

Instantiate an ACP Workflow from a cdb file.

ACPWorkflow.get_local_acph5_file()

Get the ACP Project file (in acph5 format) on the local machine.

ACPWorkflow.get_local_cdb_file()

Get the cdb file on the local machine.

ACPWorkflow.get_local_composite_definitions_file()

Get the composite definitions file on the local machine.

ACPWorkflow.get_local_materials_file()

Get the materials.xml file on the local machine.

ACPWorkflow.refresh_cad_geometry_from_local_file(...)

Refresh the CAD geometry from a local file.

Attributes

ACPWorkflow.model

Get the ACP Model.

ACPWorkflow.working_directory

Get the working directory.