4.1.22. Workbench Node

Your Ad Here

The Workbench Node is used to wrap a ANSYS Workbench simulation, transferring data from and to it. This node works on Windows Platform only.

Warning

Before using Workbench Node in the run phase, and before trying to edit Workbench simulation from modeFRONTIERTM, you must configure the correct ANSYS Workbench version number in the modeFRONTIER preferences, see Section B.4.4, "ANSYS Workbench" for further details.

Node Configuration

The Workbench Node Properties Dialog

Figure 4.47. The Workbench Node Properties Dialog

Configuring a Workbench node requires setting several parameters:

In order to use the node during the analysis, to open the document in a new Workbench session and to use the introspection, you need to have installed Workbench on your computer

If you have specified a valid Workbench simulation, you could take advantage of the following features:

At run-time, several different operations are carried out behind the scenes:

  1. A Workbench process is aquired. The environment in which Workbench runs will contain the following variables:

    • CWD: the absolute path of the current Workbench directory

    • DESIGN_ID: the ID for the design being evaluated

    • PROJECT_NAME: The name of the modeFRONTIER project within which the script is being run

    • USER_NAME: The name of the modeFRONTIER user

  2. The input variable values are assigned to the parameter indicated in the Data Input Connector panel.

  3. The Before Simulation User Macro is executed.

  4. If the Store Simulation in Working Dir flag is set, the simulation is stored in the working directory for the job.

  5. All the parameters selected are updated and the needed simulation tree branches are solved.

  6. Output (or buffer) variables values are extracted from the parameters indicated in the Data Output Connector panel.

  7. The After Simulation User Macro is executed.

  8. Workbench process ends its execution.

If everything works correctly, the exit value for the node is zero. Otherwise, one of the following values is returned:

1005The job has been killed due to timeout
1006Workbench Process not avaiable
1007Workbench Process Pool not avaiable
1008A failure occurred retrieving the Workbench Simulation file
1009A failure occurred running the user macro code
1010The input variable is not a number (NaN)
1011A failure occurred refreshing the geometry of the Simulation: check the link of the CAD file in the Simulation and the consistency of the CAD Parameters
1012A failure occurred setting an input variable: the introspection may request a refresh with new input variable assignement
1013A failure occurred extracting an output variable: the Simulation couldn't be solved or the introspection may request a refresh with new output variable assignement

Compatibility Notes

The node has been tested with Workbench version 8.0, 9.0 and 10.0 on Windows XP.

There are some known incompatibility issues:

Input Connections

The Workbench node input can be connected to one or more nodes. The connectable nodes are different for each connector. The process input connector can only be connected to the process output connector of nodes that belong to one of the following types:

For each node belonging to one of the first seven node types (i.e., for each application node) that you connect, you must also indicate for which values of the application exit value you want the Process Flow to be routed through this node (see Section 4.2.7, "Conditional Expression Legal Syntax"). Only when the application exit value matches the condition this node will be processed.

The data input connector can be connected only to nodes that belong to one of the following types:

For each node belonging to one of the last four node types (i.e., for each node representing a design variable) that you connect, you must also indicate which parameter you want to set with the value. This requires specifying the parameter name.

Output Connections

The Workbench node output can be connected to one or more nodes, different for each connector. The process output connector can only be connected to the process input connector of nodes that belong to one of the following types:

For each connected node, you also need to specify for which values of the exit value you want the Process Flow to be routed through the connected node (see Section 4.2.7, "Conditional Expression Legal Syntax"). Only those output branches for which the exit value matches the corresponding condition will be transversed. If no condition matches the exit value, it is assumed that the design is failed, and the Work Flow execution is interrupted. Note: all conditions must be mutually exclusive (i.e., there can be no exit value for which two or more conditions hold true).

The data output connector can be connected only to nodes that belong to one of the following types:

For each output and buffer variable connected, you must also indicate from which parameter you want to read the value. This requires specifying the parameter name.

Logic Log Messages

The following error messages can be associated with a Workbench node:

259MISSING WORKBENCH SIMULATIONNo Workbench simulation has been selected, or the Workbench simulation indicated does not exist
250MISSING WORKBENCH PARAMETERA legal parameter name has not been associated with one or more design variables connected to the Workbench node
251WORKBENCH NODE NOT REACHEABLEThe Process Flow cannot be routed through the Workbench node because an appropriate input connection is missing
252NO EXIT PATH FOR WORKBENCH NODEThe Process Flow cannot be routed past the Workbench node because an appropriate output connection is missing
253NO INPUT FILE OR VARIABLE FOR WORKBENCH NODENo design variable or file is supplied to the Workbench node
254WRONG RELATIVE FILE MACRO BEFORE SIM FOR WORKBENCH NODEMissing user macro file in working directory
255WRONG RELATIVE FILE MACRO AFTER SIM FOR WORKBENCH NODEMissing user macro file in working directory
202INVALID EXIT CONDITION(S)The conditions for the output nodes that support the Process Flow routing are not mutually exclusive

General Warnings

In order to perform a correct CAD parameter update you need to configure Workbench for linking the correct CAD file and have the CAD program installed in your machine. To do so you can also consult the ANSYS Workbench documentation.

Every time the CAD file is re-linked or the Workbench simulation is modified in ANSYS Workbench, a new introspection and assignment of input and output variable could be needed.

Due to the blocking popup dialogs that could appear during the run phase in case of Workbench errors or warning, it is strongly reccomended to set up a timeout value, so the next design could start without the user interaction.

The scripting language for the user macro code must be JScript.

In case of large simulation file (30 MB and over) you should clean mesh and results of the model before performing introspections and starting the run phase. In order to reduce the start time requested by the Workbench program, the user can follow these steps:

  1. Start Workbench

  2. Select File->Clean


Return to modeFRONTIER Index


Your Ad Here