Ansys Discovery

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
OptionDescription
ProductSelect the version of Discovery to use (only supported versions are listed).
Batch modeWhen selected, starts Discovery without a user interface. When cleared, starts Discovery with a user interface.
Python script pre updateExecutes a Python script before the design is updated.
Python script post updateExecutes a Python script after the design has been updated.

The following execution sequence runs for each design:

  1. Open project

  2. Execute Python script pre-update

  3. Update parametrics

  4. Check the set parametrics

  5. Export geometries and images

  6. Execute Python script post-update

  7. 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 directory

  • OSL_PROJECT_DIR: The absolute path of the current project (*.opd)

  • OSL_WORKING_DIR: The absolute path of the current working directory

  • OSL_NODE_NAME: The name of the current node

  • OSL_RLS_VER: The optiSLang version number

  • OSL_RLS_REV: The optiSLang revision number

  • OSL_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
OptionDescription
Export formatsSelect the export formats to use. These formats are written as result files in the design directory.
Additional formatsSets 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.