This node allows you to use Ansys Discovery as a solver and supports Discovery project files (*.dsco), SpaceClaim project files (*.scdoc, *scdocx) or all files (*).
Setup
In the dialog box, open an existing Discovery project. Parameters and responses are loaded and listed in the tables. Register the parameters and responses by dragging them to the Parameters or Responses panes or highlighting them in the tables and clicking the multi-action buttons.
Execution Settings
Option | Description |
---|---|
Product | Select the version of Discovery to use (only supported versions are listed). |
Batch mode | When selected, starts Discovery without a user interface. When cleared, starts Discovery with a user interface. |
Python script pre update | Executes a Python script before the design is updated. |
Python script post update | Executes a Python script after the design has been updated. |
The following execution sequence runs for each design:
Open project
Execute Python script pre-update
Update parametrics
Check the set parametrics
Export geometries and images
Execute Python script post-update
Close project
Note: The parameters are updated for the project in the order in which they are displayed in the registration table. The sort order is always alphabetical and can be changed by renaming.
The following environment variables are available for the Python scripts during the execution sequence:
OSL_DESIGN_NO
: The current design number (for example, 0.1)OSL_DESIGN_NAME
: The current design directory name (for example, Design0001)OSL_DESIGN_DIR
: The absolute path of the current design directoryOSL_PROJECT_DIR
: The absolute path of the current project (*.opd)OSL_WORKING_DIR
: The absolute path of the current working directoryOSL_NODE_NAME
: The name of the current nodeOSL_RLS_VER
: The optiSLang version numberOSL_RLS_REV
: The optiSLang revision numberOSL_RLS_FLG
: Is empty unless a specific version of optiSLang is used
Note:
You get access to the environment variables by using the following IronPython code:
OSL_DESIGN_DIR = args_dict['OSL_DESIGN_DIR']
Export Tab
Option | Description |
---|---|
Export formats | Select the export formats to use. These formats are written as result files in the design directory. |
Additional formats | Sets user defined file types to export during the run. Use comma (,), semicolon (;) or pipe (|) separation characters when creating the list. See Supported File Types for Import and Export for supported export formats. |
Run Options
This node has general Run Options. The number of supported options is individual for each node.
Limitations
Currently, the node can only be used on Windows systems.
Recorded History Tracking is not preserved.