Creating the Extension for Generic Mesh Transfer

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 the Mesher 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 to MeshingMesh, indicating that the input data type is a mesh.

    • Both the input and output have format set to FluentMesh, specifying that the input and output files have the same FluentMesh format.

  • Defines two custom task groups in the element <taskgroups>.

    • The first custom task group, GenericMeshTransfer, references the custom task Mesher. It consumes a mesh from an upstream Mesh task group and passes it to a downstream Fluent task group.

    • The second custom task group, GenericMeshTransferComplete, references the custom task Material and also, by using the attribute external, the Ansys-installed tasks Ansys Geometry, Ansys Meshing, Fluent Setup, and Fluent Solution. The task Material consumes a mesh from the upstream task Ansys Meshing and passes it to the downstream task Fluent Setup.