The file GenericMeshTransfer.xml follows.
<extension version="1" name="GenericMeshTransfer"> <guid shortid="GenericMeshTransfer">69d0095b-e138-4841-a13a-de12238c83f7</guid> <script src="generic_mesh_transfer.py" /> <interface context="Project"> <images>images</images> </interface> <workflow name="wf6" context="Project" version="1"> <tasks> <task name="Mesher" caption="Mesher" icon="GenericMesh_cell" version="1"> <callbacks> <onupdate>update</onupdate> <onedit>edit</onedit> </callbacks> <inputs> <input format="FluentMesh" type="MeshingMesh" count="1"/> <input/> </inputs> <outputs> <output format="FluentMesh" type="SimulationGeneratedMesh"/> </outputs> </task> </tasks> <taskgroups> <taskgroup name="GenericMeshTransfer" caption="Generic Mesh" icon="GenericMesh" category="ACT Custom Workflows" abbreviation="GenMeshXfer" version="1"> <includeTask name="Mesher" caption="Mesher"/> </taskgroup> <taskgroup name="GenericMeshTransferComplete" caption="Generic Mesh Complete" icon="GenericMesh" category="ACT Custom Workflows" abbreviation="GenMeshXferComplete" version="1"> <includeTask external="True" name="GeometryCellTemplate" caption="Ansys Geometry"/> <includeTask external="True" name="SimulationMeshingModelCellTemplate" caption="Ansys Meshing"/> <includeTask name="Mesher" caption="Custom Mesher"/> <includeTask external="True" name="FluentSetupCellTemplate" caption="Fluent Setup"/> <includeTask external="True" name="FluentResultsCellTemplate" caption="Fluent Solution"/> </taskgroup> </taskgroups> </workflow> </extension>
This file specifies the two custom task groups that are to appear in your custom ACT Workflows task group in the Workbench Toolbox. It performs the following actions:
References the script generic_mesh_transfer.py.
Defines a single task in the element
<tasks>
.Defines the callback
<onedit>
for theMesher
task, which automatically creates a default Edit context menu for the task.Defines an input and an output in the elements
<inputs>
and<outputs>
.The input has
type
set toMeshingMesh
, indicating that the input data type is a mesh.Both the input and output have
format
set toFluentMesh
, specifying that the input and output files have the sameFluentMesh
format.
Defines two custom task groups in the element
<taskgroups>
.The first custom task group,
GenericMeshTransfer
, references the custom taskMesher
. It consumes a mesh from an upstreamMesh
task group and passes it to a downstreamFluent
task group.The second custom task group,
GenericMeshTransferComplete
, references the custom taskMaterial
and also, by using the attributeexternal
, the Ansys-installed tasksAnsys Geometry
,Ansys Meshing
,Fluent Setup
, andFluent Solution
. The taskMaterial
consumes a mesh from the upstream taskAnsys Meshing
and passes it to the downstream taskFluent Setup
.