A task group is a collection of tasks defined in a
<taskgroups> block. Individual task groups are
defined in child <taskgroup> blocks. At minimum, each
task group definition must include the attributes name and
version.
<extension>
<workflow name="MyWorkflow" context="Project" version="1">
<taskgroups>
<taskgroup name="DataSquares" ... headertext="Foo" />
</taskgroups>
</workflow>
</extension>
The following figure maps the preceding example to the Workbench UI.
Starting in ANSYS 18.0, task group entries support standard ACT attributes. When creating custom task groups with installed ANSYS-defined mechanical tasks, you can use attributes to specify additional properties.
<extension>
<workflow name="MyWorkflow" context="Project" version="1">
<taskgroups>
<taskgroup name="CustomStructural" caption="Custom Structural Group"
icon="custom_structural" category="ACT Workflows"
abbreviation="CSTRUCT" version="1">
...
<attributes SolverType="ANSYS"
SystemName="Static Structural (ANSYS)"/>
</taskgroup>
</taskgroups>
</workflow>
</extension>For the following tasks, you find the solver type by referring to
$(AttributeCombination), where the second part of the
Physics Type and Solver Name combination is the Solver Type.
SimulationModelCellTemplate
SimulationSetupCellTemplate_$(AttributeCombination)
SimulationSolutionCellTemplate_$(AttributeCombination)
SimulationResultsCellTemplate_$(AttributeCombination)
For a static structural ANSYS-based task, the
StructuralStaticANSYS combination shows
ANSYS as the Solver Type. You can obtain more
combinations from
%AWP_ROOT182%\Addins\Simulation\AnalysisTemplates.xml.
You use the <includetask> and
<includeGroup> child blocks to specify the one or
more tasks or nested task groups to include. In the
<includetask> child block, you can reference both
the custom tasks defined in your extension and “external" tasks
(Workbench-defined components). Setting the optional attribute
external to true specifies that
the referenced task is defined externally, originating outside of the extension.
For an external task, the attribute name must be set to the
internally defined template name for the given component. Optionally, you can set
the attribute caption to use your own display text. For a
list of internally defined systems with their components and component display
names, see Appendix B: ANSYS Workbench Internally Defined System Template and Component Names. To review examples of task
groups referencing external tasks, see Generic Material Transfer
or Generic Mesh Transfer.
If you define a caption, it overrides the task-level caption. Otherwise, the task group-level caption is used.
The basic structure of a task group definition follows.
... <taskgroups> <taskgroup name="" caption="" icon="" category="" abbreviation="" version="1" isparametricgroup="False"> <includetask name="" external=""/> <includeGroup name=""/> </taskgroup> </taskgroups> ...
Note: At present, ACT-defined tasks cannot be added to installed task groups. Also, nested task groups within a task group are not recognized by Workbench at 17.1.