CFD Script Editors

There are two ways to create and run scripts with the Autodesk® CFD API:

Internal Script Editor

The internal script editor is well suited for working with completed simulations. Example applications include the following:

To open the Script Editor, click Setup (tab) > Design Study Tools (panel expanding menu) > Script Editor. In many cases, a script is run within the same session as a completed scenario. This allows results manipulation directly within the design study environment.

Note: Note that a design study must be open to access the script editor.

Script Editor User Interface

File

Edit

Tools > Triggers

You can use triggers to automatically launch a script when a specific event occurs.

Examples of using trigger events:

Pre-defined trigger events:

There are two levels of triggers:

To create a trigger:

  1. Click Tools > Triggers...
  2. Right click on the desired trigger event (from either the Default or Design Study groups), and select Add Trigger.
  3. A minimum script is automatically created. Modify this script to include your specific actions and commands.

To change the name of a trigger or script, double click over the name and enter the new name.

Tool bar Commands

Text Region

The text region is contains several features that make text development easier:

a. Color-coding for several elements including variable declarations, comments, strings, and vectors

b. Line numbers

c. Current line highlighting

External Script Editor

Use the external script editor to execute a Script from outside Autodesk® CFD.

To open the external editor, navigate to your CFD installation folder, and doubleclick on CFDScriptEditor.exe.

The primary use of the external editor is to run existing scripts.

Related Topics

Application Programming Interface (API)

API Programming Reference

Overview of the API structure and hierarchy