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()
andfrom_acph5_file()
to instantiate the workflow.- Parameters:
acp (ACPInstance[ServerProtocol]) – The ACP Client.
local_file_path (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
ACPInstance.import_model()
method.
Methods
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.
Get the ACP Project file (in acph5 format) on the local machine.
Get the cdb file on the local machine.
Get the composite definitions file on the local machine.
Get the materials.xml file on the local machine.
Refresh the CAD geometry from a local file.
Attributes
Get the ACP Model.
Get the working directory.
Examples using ACPWorkflow#
Advanced selection rules example