Defining Inputs and Outputs

Workbench Schematic connections serve as visual representations of data flow between components. These connections depend on input and output coordination. Workbench can establish connections only if an upstream (providing) component exposes outputs whose types also match the inputs for a downstream (consuming) component. These input and output specifications must be made within the Component nodes of the System Definition file. At a minimum, a component should always specify an empty input (<Input/>).

Certain Workbench types require the use of the dataType attribute. For example, the Mesh component uses dataType to determine which mesh file format to output (for example, Fluent).

In the following example, the FluentMesh data type value instructs an upstream mesh component to output the Fluent mesh file format (.msh).

This example defines the inputs and outputs for a component within a Fluent meshing workflow:

<Component name="Mesher" displayText="Mesher" imageName="GenericMesh_cell">
   <Inputs>
       <Input/>
       <Input dataType="FluentMesh">MeshingMesh</Input>
   </Inputs>
   <Outputs>
      <Output dataType="FluentMesh">SimulationGeneratedMesh</Output>
   </Outputs>
<component/>

For a list of supported transfer types and their corresponding transfer properties, see Table 199: Data Transfer Types and Properties.

For a list of supported datatype strings, see Appendix D: Addin Data Types and Data Transfer Formats.


Release 18.2 - © ANSYS, Inc. All rights reserved.