Workbench Scripting Guide
Workbench Scripting Guide
© 2014-2015 SAS IP, Inc. All rights reserved. Unauthorized use, distribution or duplication is prohibited.
ANSYS, ANSYS Workbench, Ansoft, AUTODYN, EKM, Engineering Knowledge Manager, CFX, FLUENT, HFSS, AIM
and any and all ANSYS, Inc. brand, product, service and feature names, logos and slogans are registered trademarks
or trademarks of ANSYS, Inc. or its subsidiaries in the United States or other countries. ICEM CFD is a trademark
used by ANSYS, Inc. under license. CFX is a trademark of Sony Corporation in Japan. All other brand, product,
service and feature names or trademarks are the property of their respective owners.
Disclaimer Notice
THIS ANSYS SOFTWARE PRODUCT AND PROGRAM DOCUMENTATION INCLUDE TRADE SECRETS AND ARE CONFID-
ENTIAL AND PROPRIETARY PRODUCTS OF ANSYS, INC., ITS SUBSIDIARIES, OR LICENSORS. The software products
and documentation are furnished by ANSYS, Inc., its subsidiaries, or affiliates under a software license agreement
that contains provisions concerning non-disclosure, copying, length and nature of use, compliance with exporting
laws, warranties, disclaimers, limitations of liability, and remedies, and other provisions. The software products
and documentation may be used, disclosed, transferred, or copied only in accordance with the terms and conditions
of that software license agreement.
For U.S. Government users, except as specifically granted by the ANSYS, Inc. software license agreement, the use,
duplication, or disclosure by the United States Government is subject to restrictions stated in the ANSYS, Inc.
software license agreement and FAR 12.212 (for non-DOD licenses).
Third-Party Software
See the legal information in the product help files for the complete Legal Notice for ANSYS proprietary software
and third-party software. If you are unable to access the Legal Notice, please contact ANSYS, Inc.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. iii
Scripting Guide
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
iv of ANSYS, Inc. and its subsidiaries and affiliates.
Scripting Guide
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. v
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
vi of ANSYS, Inc. and its subsidiaries and affiliates.
Scripting Overview
Journaling and Scripting Capability Overview
ANSYS Workbench offers the ability to record the actions you perform via the GUI, which we refer to
as journaling. Journals are recorded as Python-based scripts. You can modify these scripts or create new
ones, which we refer to as scripting. Together, these capabilities allow you to quickly and easily replay
analyses you've already run via recorded journals, as well as to extend functionality, automate repetitive
analyses, and run analyses in batch mode via scripting.
Most actions are journaled. Some examples of actions that are not journaled include:
– Running the View Solver Output option from VistaTF's Solution cell
• Actions taken in some data-integrated applications; see Scripting and Data-Integrated Applications (p. 6)
Note
For the purposes of this documentation, ANSYS Workbench refers to all applications and
tools running in the Workbench environment, including the Project tab, Parameter Manager,
and ANSYS AIM. Features that apply only to specific applications or tools will be so noted.
Note
Journaling and scripting uses a decimal point as the decimal separator and a comma as the
separator for list items regardless of locale settings. The GUI will display values and lists using
the current locale settings.
Journaling
A journal is a record of all operations that have modified data during your session. Based on your
Preferences setting, a journal of your full session will automatically be saved to the location you specify
(see Setting Journaling Preferences (p. 2)). You can also choose to record part of a session to a journal
file, capturing a specific set of actions. Playing back the journal will recreate the recorded actions exactly.
Journaling and scripting tools (including recording and playback) are available through the File>
Scripting menu in ANSYS Workbench.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1
Scripting Overview
Journaled sessions can be used to restore work after a crash. Journals are platform independent and
portable, subject to file location consistency between accounts (see File Path Handling in ANSYS
Workbench for details on file path handling within journals and scripts).
You can set journaling preferences such as the default directory where journals will be written and how
long to keep a journal file.
1. In ANSYS Workbench, select Tools > Options > Journals and Logs.
2. Select Record Journal Files to have ANSYS Workbench automatically write journal files.
3. Specify the default location where journal files will be written. This is the location that the file browser
will open in automatically when you choose to begin recording a journal. You will still be able to browse
to a different location before saving a particular journal.
5. Specify how long (in seconds) to pause between each command when running a journal file.
Recording a Journal
3. Specify the name and location of the journal file and click Save.
4. Use the GUI to work through your analysis as you normally would.
6. A message appears informing you that you will stop recording. Click OK.
In ANSYS AIM, you can also play back a journal by selecting the Script icon from the Study panel.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
2 of ANSYS, Inc. and its subsidiaries and affiliates.
Journaling and Scripting Capability Overview
3. As you enter each command, the appropriate action will occur in the ANSYS Workbench database and,
if applicable, in the GUI.
In this journal, template1 and system1 are the variables for the references to the associated data objects.
The variables are used within the journal to access the properties and methods of the objects. These
variables are created and recorded specifically for replaying the journal, and they are not immediately
accessible from within the command window. However, when working in the command window, you
may wish to use these variables. Doing so can aid in manually examining the details of your project or
assist in creating scripts based on the journal. To use these variables, execute the command Import-
JournalVariables() in the command window to make the variable definitions from the currently-
recorded journal available in the command window. You should be aware of the following points when
using the ImportJournalVariables() command:
1. The variable definitions are based on those in the currently-recorded journal. By default, this journal is the
automatically-recorded journal controlled by user preferences (see Setting Journaling Preferences (p. 2)).
If you have manually started a journal recording of part of your session (see Recording a Journal (p. 2)),
the variable definitions will be taken from the manually-recorded journal.
2. If you have any manually-defined variables of the same name as any journal variables, your variables will
be overwritten by the journal variables.
3. Changing the definition of a journal variable in the command window after executing ImportJournal-
Variables() does not affect the definition of the variable in the currently-recorded journal.
4. The ImportJournalVariables() command can be executed multiple times in a session and will
update the variables based on the currently-recorded journal.
Text Cursor Keyboard Keys When typing a command or statement, the following special keys are
available for moving the text cursor:
Key Action
Left Arrow Moves the cursor back one character
Right Arrow Moves the cursor forward one character
Ctrl + Left Arrow Moves the cursor back one word
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 3
Scripting Overview
Key Action
Ctrl + Right Moves the cursor forward one word
Arrow
Home Moves the cursor to the beginning of the
line
End Moves the cursor to the end of the line
Copy/Paste Keyboard Keys You can copy text from the command window to the clipboard or paste
text from the clipboard as input to the command window. The following keys allow you to copy and
paste text:
Key Action
Ctrl+C/Ctrl+Insert Copies selected text from the command window to the clipboard. Text copied from
the command window is first selected (highlighted) using the mouse.
Ctrl+V/Shift+Insert Pastes the text found on the clipboard into the input area of the command window.
If multiple lines of text are pasted, the lines must be one or more complete Python
statements.
Command History The command window maintains a history of commands or statements that you
enter so you can easily recall a previously-entered command or statement and invoke it again without
retyping it. You could also make some modifications to it before invoking it again.
Key Action
Up Arrow/Page Up Recalls the previously-entered command, and the command before that if the
key is pressed again
Down Arrow/Page Recalls the next command in the history list
Down
Type one or more characters and press the Tab key once or multiple times to see the defined variables
and commands that have names beginning with the characters you typed. Entering an object variable
name with the dot (.) and then pressing the Tab key will cycle through the defined properties and
methods for that object. Entering one or more characters after the dot will restrict the completion results
to just those properties and methods that start with those characters.
Key Action
Tab Completes the current text on the command line with any variable, property, command, or
method name that is valid in the current context. Press Tab repeatedly to cycle forward through
possible completions, if available.
Shift+Tab Same as Tab but cycles backwards through possible completions.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
4 of ANSYS, Inc. and its subsidiaries and affiliates.
Journaling and Scripting Capability Overview
Scripting
A script is a set of instructions to be issued to ANSYS Workbench. The script can be a modified journal,
or it can be a completely new set of instructions that you write directly.
ANSYS Workbench uses an object-based approach; therefore, for scripting, some knowledge of object
oriented programming and the Python language is advantageous. For detailed information on using
Scripting, see Using Scripting in ANSYS Workbench (p. 15).
ANSYS Workbench scripting is based on IronPython 2.6. Before attempting to write or modify ANSYS
Workbench scripts, you should be familiar with using this version of Python.
IronPython is well integrated with the rest of the .NET Framework (on Windows) and Mono CLR (on
Linux) and makes all related libraries easily available to Python programmers while maintaining compat-
ibility with the Python language. For more information on IronPython, see http://ironpython.code-
plex.com/.
IronPython is generally compatible with existing standard Python scripts. However, not all C-based Python
library modules are available under IronPython, as discussed on the IronPython website.
For more information on Python, including a standard language reference, see http://www.python.org/.
For a complete list of our published data containers, namespaced commands, and data types, see the
reference material later in this document. You can also find this guide in a PDF version on www.an-
sys.com. Go to the Customer Portal, and after logging on, select Product Documentation and click the
Workbench tab.
<platform> will be one of the following (as applicable to the application or tool you are using):
Win32
Win64
Linux64
For example, to run ANSYS Workbench from the default installation location on a Windows 64-bit system,
the command would be:
C:\Program Files\ANSYS Inc\V160\Framework\bin\win64\runwb2
The following table describes the command line arguments that can be used to control ANSYS Workbench
file operations and execution behavior at start-up.
Argument Operation
-B Run ANSYS Workbench in batch mode. In this mode, the user interface is not displayed
and a console window is opened. The functionality of the console window is the same
as the ANSYS Workbench Command Window.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 5
Scripting Overview
Argument Operation
-R <ANSYS Replay the specified ANSYS Workbench script file on start-up. If specified in conjunction
Workbench with –B, ANSYS Workbench will start in batch mode, execute the specified script, and
script shut down at the completion of script execution.
file>
-I Run ANSYS Workbench in interactive mode. This is typically the default, but if specified
in conjunction with –B, both the user interface and console window are opened.
-X Run ANSYS Workbench interactively and then exit upon completion of script execution.
Typically used in conjunction with –R.
-F <ANSYS Load the specified ANSYS Workbench project file on start-up.
Workbench
project
file>
-E <command> Execute the specified ANSYS Workbench scripting command on start-up. You can issue
multiple commands, separated with a semicolon (;), or specify this argument multiple
times and the commands will be executed in order.
The Console Window The console window is the same as the command window but is present when
running in batch mode to provide a way of working directly with commands outside of the user interface.
Data-integrated applications are created independently of the ANSYS Workbench framework but have
been extended so they can be driven by the Project Schematic and share key data and parameters with
ANSYS Workbench and ANSYS Workbench-enabled applications. Data-integrated applications include
the Mechanical APDL application, ANSYS Fluent, ANSYS CFX, DesignModeler, and the Mechanical applic-
ation.
The difference between native workspaces and data-integrated applications is an important consideration
for ANSYS Workbench journaling and scripting. All operations that modify the data associated with a
native workspace are journaled and can be fully automated with ANSYS Workbench scripting. For data-
integrated applications, only those operations initiated from the Project Schematic are journaled, e.g.,
system updates and data transfers. Operations performed within data-integrated application are not
necessarily journaled or controlled by ANSYS Workbench scripting. For example, steps to construct
geometry in Mechanical APDL or solution methods in ANSYS Fluent are not journaled.
Although data-integrated applications do not fully support ANSYS Workbench scripting, many of them
have their own native scripting language which is accessible through the ANSYS Workbench scripting
interface (see Table 1: Scripting Support for Data-Integrated Applications (p. 7)). For example, Mechan-
ical APDL is based on the powerful ANSYS Parametric Design Language (APDL), and APDL commands
can be directly incorporated within an ANSYS Workbench script. Use SendCommand to pass native
scripting commands to data-integrated applications.
You can insert SendCommand calls into your ANSYS Workbench scripts to drive data-integrated applic-
ations; however, data-integrated applications do not necessarily record operations in the ANSYS Work-
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
6 of ANSYS, Inc. and its subsidiaries and affiliates.
ANSYS Workbench Project and Data Model Concepts
bench journal. Most scriptable data-integrated applications have an independent journal where native
commands are recorded.
A Yes in the Supports Scripting with SendCommand column in Table 1: Scripting Support for Data-
Integrated Applications (p. 7) indicates that the data-integrated application can be driven from an
ANSYS Workbench script by manually inserting SendCommand calls.
A Yes in the Supports Journaling with SendCommand column indicates that the data-integrated
application records its operations with SendCommand, and that the state of the application can be
restored from the ANSYS Workbench journal itself. To learn more about SendCommand, see Mechanical
APDL and Sending Commands to Integrated Applications (p. 28) and the detailed description of the
method in the Data Containers section of this guide.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 7
Scripting Overview
Project
The project is the full collection of systems, components, data, and their connections that you create to
achieve an overall CAE goal.
System
A system is a collection of components that together provide workflow to achieve an engineering simulation
goal, such as completing a static structural analysis or a steady state fluid flow simulation. Systems may
also contain a single component to complete an analysis sub-task, for example, meshing a geometric as-
sembly.
Component
A component includes a collection of data and a data editor that work together to achieve a CAE-related
task. A system may include several components which together to define a simulation workflow. A data
editor can be an ANSYS Workbench-enabled application like ANSYS Fluent or Mechanical, or a native ANSYS
Workbench workspace like Engineering Data or Design Exploration. In the ANSYS Workbench user interface,
a component is depicted as a cell in the Project Schematic.
In an abstract sense, a component receives data from external or upstream sources, enables you to
edit data local to the container, and then performs operations to produce output data. For example,
a meshing component may receive geometry data from an upstream source, enable you define
meshing attributes, and then generate a mesh for a downstream analysis.
In addition to managing the data and data editor required for a CAE task, a component also provides
common services to control the input and output data from the component. For example, the
component allows its output data to be transferred to other components.
Data Container
A data container includes data unique to an individual component as well as the services to manage and
manipulate it. Although most components have a single data container, they may have more than one.
Services which create, retrieve, or modify a component’s local data are provided by the data con-
tainer, while services to control the transfer of data into and out of the component are provide by
the component.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
8 of ANSYS, Inc. and its subsidiaries and affiliates.
ANSYS Workbench Project and Data Model Concepts
Data Entity
A data entity is a data structure defined within the data container. A data container often employs several
data entities. A data entity is similar to a class in an object-oriented programming language; it defines
member data (or properties) and methods which can be called to perform operations on the data.
Data Reference
A data reference is a handle to an instantiated data entity. From a data entity definition, an object can be
created, and the data reference provides access to that object. In an ANSYS Workbench journal, data refer-
ences are assigned to variables. The variables are then used to access the properties and methods of the
data entity. Consider the following example:
system = GetSystem(Name="My Analysis")
system.Update()
The first line queries for a previously instantiated System data entity named “My Analysis.” The
GetSystem method returns a data reference to the specified System object and assigns it to the
variable system. Using this variable, the second line calls a method supported by System data
entity called Update. This method updates the state of the system referenced by the variable,
namely “My Analysis.”
Study
ANSYS AIM captures three concepts of Workbench under the Study name:
• Study is the system provided by ANSYS AIM within the Project Schematic. Only one Study system is al-
lowed at this time.
• Study is the component provided by ANSYS AIM, which provides a namespace for the top level AIM
methods and queries.
• Study is the container within the ANSYS AIM system that contains all DataObjects that are created as
the user is working within ANSYS AIM. The ANSYS AIM container (or ANSYS AIM database) is managed
using a dependency graph, or a directed acyclic graph (DAG) in computer science terminology. The
graph is established by means of the AssociatedObject argument of the CreateEntity command.
Task
An ANSYS AIM task is associated with a subset of DataObjects that exist within the ANSYS AIM Study con-
tainer. Each task corresponds to a container. The task container contains only a DataObject that references
a single DataObject within the ANSYS AIM container, which is known as the Task Anchor. This anchor is
the root of the dependency graph that defines the subset of DataObjects (i.e., the context) that the task
action will operate within and is a sub-graph of the overall dependency graph.
Task Group
An ANSYS AIM task group is used to group tasks together for the purposes of presentation. Currently, this
can only be used for the Physics Definition and Physics Solution task types. Grouping these tasks is the
default behavior.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 9
Scripting Overview
In this diagram, we have the Study system which holds, for example, four containers.
The first container is the Study container, which contains the dependency graph.
The dependency graph contains seven data objects. These objects are the objects that are created when
the user is working with ANSYS AIM. Examples could be PartMesh, GeometryImportSource, Force, Ref-
erenceFrame, etc.
The other three containers are task containers that each hold only one data object. This data object is
the Task data object and stores a reference to a data object that exists within the dependency graph,
which is known formally as the task anchor. The dotted lines represent these references.
In this diagram, the context for Task 1 is the graph represented by DataObject 2, DataObject 5, and
DataObject 6, where DataObject 2 is the root of the graph, and DataObject 5 and DataObject 6 are the
leaf nodes of the graph. Task 1 will operate only upon the three data objects within this sub-graph and
does not have the ability to change any data objects within the rest of the dependency graph.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
10 of ANSYS, Inc. and its subsidiaries and affiliates.
ANSYS Workbench Project and Data Model Concepts
Property
A object’s data is referred to as its properties. In the ANSYS Workbench scripting interface, only objects
derived from data entities have properties. A property is defined by its name, type, and value. Property
types include:
• Boolean
• String
• Physical quantities
An object’s properties are accessed by applying the dot operator on the corresponding reference
to that object. In the example below, parameter1 is a data reference to a Parameter object, and
the Expression property of that object is set to 10.
parameter1.Expression = "10"
Method
A method is a command that is bound to a data entity or data container object. Methods can change
property values, create or delete properties, or invoke complex calculations and operations. Methods may
require arguments to further specify the action to be taken, and they may return an object as a result of
that action. Like properties, an object's methods are accessed by applying the dot operator on a corres-
ponding data reference. In the following example, parameter1 is a data reference to a Parameter object,
and the method SetQuantityUnits is called to set the object's units to meters.
parameter1.SetQuantityUnits("m")
To see a list of all methods and queries in a component, execute dir(<component>) from the
Workbench script console.
Argument
An argument is a variable that can be passed to a method when invoked. An argument has a type and
share most of the same types as properties.
ANSYS Workbench methods use 'Named' arguments, where each argument is given a name that is
used to distinguish it from other arguments in the method. Because the arguments are named,
their order is inconsequential.
Arguments can be required or optional. All required arguments must be specified or the method
will fail. Optional arguments may be omitted and typically take a default value.
In the following example, the density property of a material is set to 8500 kg/m3. The named argu-
ments are "Variables" and "Values" which are set to "Density" and "8500 [kg m^-3]}," respectively.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 11
Scripting Overview
Because ANSYS Workbench uses named arguments, the following form of the command is also ac-
ceptable.
property1.SetData(Values="8500 [kg m^-3]", Variables="Density")
Query
A query is a method which typically returns a data or container reference which can then be used to further
interrogate or modify the project. Queries by themselves do not change the state of the project. Like
methods, queries may require specifying arguments.
Namespaced Commands
Namespaced commands are commands that are not bound to a particular object but have been grouped
in a namespace with other commands having similar context. Like methods, commands perform some
action, often require arguments, and may return an object as a result of the action. In the following example,
the Update command is called in the Project namespace to update all components in a project by refreshing
the input data and performing local calculations:
Project.Update()
AssociatedObject
The AssociatedObject command argument creates a directed edge in the ANSYS AIM dependency graph.
The AssociatedObject command argument therefore defines the directed edge which is represented
by the arrow between DataObject 2 and DataObject 6.
Templates
ANSYS Workbench uses templates to create the Projects, System, and Components elements described
above. A template is a high-level description of the item to be created, but does not contain specific
detailed data.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
12 of ANSYS, Inc. and its subsidiaries and affiliates.
ANSYS Workbench Project and Data Model Concepts
Templates are analogous to document templates provided for Microsoft Word. For example, you may
pick a Word report template that contains the formatting, sections, etc., for a type of report you wish
to create. You then create a document from that template and fill out your specific content within that
document to produce the report. Comparably, you may pick a System Template in ANSYS Workbench
that describes the components, data, and relationships needed to execute a particular type of CAE
analysis. You then create a system from that template, enter data, and perform operations within that
system to complete the analysis.
Templates facilitate and automate creation of project elements for a specific purpose. However, these
templates do not preclude you from manually (and flexibly) building up a project from the constituent
elements to achieve the same goal.
Project Template
A project template defines a set of system templates and the connections between them that can be used
to perform a multi-disciplinary CAE analysis task (e.g., Thermal-Stress or One-Way FSI).
The project template can be used to create specific instances of systems and components within
the project (such as the Custom Templates in ANSYS Workbench Toolbox).
System Template
A system template contains the information to create an ANSYS Workbench System designed for a partic-
ular simulation objective. ANSYS Workbench provides system templates for many types of standard analyses,
including static structural, fluid flow, explicit dynamics, steady-state thermal, and others. The Analysis
Systems listed in the ANSYS Workbench Toolbox are all examples of system templates. All analyses per-
formed in ANSYS Workbench begin by referencing a system template.
Component Template
The component template includes the allowed input/output data types, internal data, and key commands
associated with a specific component (e.g., Geometry).
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 13
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
14 of ANSYS, Inc. and its subsidiaries and affiliates.
Using Scripting in ANSYS Workbench
Object-Based Approach
ANSYS Workbench scripting follows an object-based approach, where interaction with data is defined
in terms of objects. Objects have properties that can be used to get or set data values, and methods
that use or modify the data. In terms of the ANSYS Workbench concepts described in ANSYS Workbench
Project and Data Model Concepts (p. 7), objects are references to data entities in the data model, and
the methods are commands and queries which operate on those entities.
For example, a Parameter is a data entity that has properties such as description, value, and expression,
and has methods that operate on the parameter to (for example) delete it or determine which other
parts of the data model are associated with the parameter.
ANSYS Workbench objects fall into two general categories: data containers and data entities. The basic
process for operating on these objects is:
1. Query for either a data container or data entity objects. Queries are implemented as methods on both
data container and data entity objects, and they most often start with Get (e.g., GetFiles, GetSystem,
GetComponent). These methods return references to objects that are assigned to variables. The variables
can then be used to access object properties and methods. To illustrate this process, consider the Design
of Experiments (DOE) data container that includes a data entity for the DOE model, which in turn contains
a data entity for the input parameters. To query the input parameter object, first query the DOE model
from the data container, and then query the input parameter from the DOE model:
DOEModel = DOEDataContainer.GetModel()
InputParameter = DOEModel.GetParameter(Name="P1")
In most instances, the variable for a data reference will be reused later in the journal or script so
that queries do not need to be re-executed. However, there are some instances (e.g., System
Coupling Variables), where re-executing the query can clarify the context that is used to access the
object. In those situations, journal variables are not reused and queries are generated each time an
object is referenced.
2. Interrogate and modify object properties. If the query returns a reference to a data entity, you can inter-
rogate its properties and modify those that are not identified as “Read-Only” in the Reference section of
this guide. Properties are accessed by appending a dot and the property name to the variable assigned to
the object reference. For example, once a reference to an input parameter is obtained, you can modify its
classification (or Nature Property) to reflect that it is a continuous or discrete parameter.
inputParameter.Nature = "NatureContinuous"
3. Call methods on objects. In addition to properties, most objects provide methods that operate on internal
data. To call a method on an object, append a dot, the method name, and a comma-separated argument
list in closed parentheses. A method's required and optional arguments are also documented in the Reference
section of this guide. Continuing the input parameter example, you can specify a restricted set of Manufac-
turable Values for a parameter by calling the AddLevels method on the input parameter object and by
constructing a list of values and assigning it to the Levels argument.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 15
Using Scripting in ANSYS Workbench
Typical examples are provided in Usage Examples (p. 18). These examples demonstrate how to query
objects and how to invoke methods on those objects for the desired result. Use the Reference section
at the end of this document for a complete list of all available data container objects, and the data
entities, methods, properties, and arguments associated with each.
Units
Specifying Quantities Without Units
Many properties and variable values in ANSYS Workbench represent physical quantities, which include
both a value and a unit in their definition (see Expressions, Quantities, and Units in the Workbench User's
Guide). The assignments of these quantities are journaled using a “Value [Unit]” string syntax. This
method ensures that all available information is recorded in the journal. However, strings may be incon-
venient to work with when writing or modifying scripts that assign quantities.
As a convenience, ANSYS Workbench allows the assignment of a quantity using just the numeric value.
When units are omitted, the unit is assumed to be the unit for that quantity in the current project unit
system. Although this method is more convenient, you must ensure that the value being supplied is
consistent with the current units.
Setting an Entity Property When setting an entity property that refers to a quantity, the property
assignment can be done as a numeric value, and the units will be taken from the project unit system.
For example, after setting the Inlet Mass Flow in a VistaTF setup, the following would be recorded in
the journal:
vistaTFSetup1 = setup1.GetSetupEntity()
vistaTFSetup1.MassFlow = "0.5 [kg s^-1]"
When entering this command or writing script, you can use a direct numeric value:
vistaTFSetup1 = setup1.GetSetupEntity()
SetProjectUnitSystem(UnitSystemName="SI")
vistaTFSetup1.MassFlow = "0.3 [lbm s^-1]" # Units explicitly provided
print vistaTFSetup1.MassFlow
>>> 0.3 [lbm s^-1]
vistaTFSetup1.MassFlow = 0.3 # Units are taken from the project unit system
print vistaTFSetup1.MassFlow
>>> 0.3 [kg s^-1]
Setting Quantity in Variable Data Tables The same principles apply when setting variables in Ma-
terial Property data tables (used primarily in Engineering Data). For example, after selecting a material
and changing the Density to 9000 [kg m^-3], the following would be recorded in the journal:
material1= eda1.GetMaterial(Name=”Structural Steel”)
materialProperty1= material1.GetProperty(Name=”Density”)
materialProperty1.SetData(
SheetName="Density",
Variables=["Density"],
Values=[["9000 [kg m^-3]"]])
When writing a script, for convenience, you can omit the units, and they will be taken from the current
project unit system. You can also omit the list brackets because only single values are being specified.
A condensed version of the above command that is valid when playing back a script is:
material1= eda1.GetMaterial(Name=”Structural Steel”)
materialProperty1= material1.GetProperty(Name=”Density”)
materialProperty1.SetData(
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
16 of ANSYS, Inc. and its subsidiaries and affiliates.
File Path Handling in ANSYS Workbench
Variables="Density",
Values=9000)
A more complex example showing the creation of a temperature-dependant property using a script is
given below:
# Temperatures in degrees Fahrenheit
temperatures = [200,400,600,800,1000]
# Coefficient of Thermal Expansion in F^-1
alphas = [6.3e-6, 7.0e-6, 7.46e-6, 7.8e-6, 8.04 e-4]
1. When a journal is written, all backslashes that occur in command arguments representing a path are con-
verted to forward slashes.
2. When a command argument containing a path is read, all slashes are internally converted to the current
platform-appropriate slash.
The following conventions and capabilities are used with the User Path Root.
1. The default value of the User Path Root is taken from the Default Folder for Permanent Files preference.
Changing this preference will take effect in your next session.
2. When a path is recorded to the journal and the start of the path matches the User Path Root, then the path
is recorded using AbsUserPathName("<relative path name>"). This function constructs an ab-
solute path based on the supplied relative path and the current User Path Root.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 17
Using Scripting in ANSYS Workbench
3. You can access or change the current value of User Path Root within a script using the following commands:
• pathRoot = GetUserPathRoot()
SetUserPathRoot does not change the Default Folder for Permanent Files preference, but simply
overrides the path root setting in the current session.
Example
If the current value of the User Path Root is C:\Users\myUser\Projects, then the command:
Open(FilePath=r"C:\Users\myUser\Projects\proj1.wbpj")
You can override the current User Path Root to control the base location of files in your script:
SetUserPathRoot(DirectoryPath = “C:/Users/myUser1/Projects”)
Open(FilePath=AbsUserPathName("proj1.wbpj")) # Read project from first location
SetUserPathRoot(DirectoryPath = “C:/Users/myUser2/Projects”)
Open(FilePath=AbsUserPathName("proj1.wbpj")) # Read project from second location
Usage Examples
Several examples are provided here to demonstrate some typical scripting uses. All of the files used by
these examples are located in <installpath>\v160\commonfiles\examples\Script-
ing\ScriptingGuideExamples.zip. To use these example files, unzip them into the My Docu-
ments directory. All necessary subdirectories will be created, allowing these sample journals to run
correctly.
Automatically Update all Projects Affected by a Design Modification
Interaction with Files in a Project
Material Properties and Tabular Data
Mechanical APDL and Sending Commands to Integrated Applications
Updating a Workbench Project and Parameters from Excel
Set Up, Solve, and Post-Process a Fluids Study Using AIM
Set Up, Solve, and Post-Process a Structural Study Using AIM
Updating a Workbench Project and Parameters from Excel Using AIM
To automate the update of all affected projects, you would like to write a script that does the following:
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
18 of ANSYS, Inc. and its subsidiaries and affiliates.
Usage Examples
• Replaces the original geometry with the new geometry file in any system in the project.
• Updates the project and reports any errors from the update.
• If the update was successful, reports the values of key output parameters under the modified geometry.
• Saves the modified project with the new geometry file to a new directory.
Although the analysis specifics are secondary for the purposes of this example, we will use a CFD ana-
lysis of a blood mixing device. This device attempts to maximize mixing of two blood streams while
minimizing flow vorticity (which is an indicator of blood damage potential). Three projects involving a
coarse mesh model, a fine mesh model, and an asymmetric flow condition were created. The parameters
of interest are pressure drop, average and maximum vorticity, and mixing factor of blood stream 1 at
the exit.
Workbench Script The script for this example follows. Each line is numbered for reference in the
discussion that follows.
1 # import the 'os' module, which provides a portable way of using operating system dependent functionality
2 import os
3
4 # Helper function to write parameters to the log file
5 def writeParams(logFile):
6 for param in Parameters.GetAllParameters():
7 prmString = " " + param.Name + ": " + param.DisplayText + " = " + param.Value.ToString()
8 logFile.write(prmString + "\n")
9 logFile.flush()
10
11 workDir = "ScriptingGuideExamples/Design_Modification/"
12
13 # Define the original and target directories
14 origDir = AbsUserPathName(workDir + "Original")
15 newDir = AbsUserPathName(workDir + "Modified")
16
17 # Define new geometry file
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 19
Using Scripting in ANSYS Workbench
Log File The log file generated by the above script should look like the following:
Processing project in C:\Users\neUser\Demo/ScriptExample1/Original/AsymmetricFlow.wbpj
Parameter values in original project:
P1: PressureDropCoeff = 34.2088
P2: mixing = 0.217835
P5: maxVorticity = 3939.22 [s^-1]
P4: aveVorticity = 27.4697 [s^-1]
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
20 of ANSYS, Inc. and its subsidiaries and affiliates.
Usage Examples
Discussion This example demonstrates a number of the typical programming constructs and ANSYS
Workbench functionality that will be employed in the creation of scripts. The following discussion refers
to the specified line numbers of the example script to illustrate some of these concepts and constructs.
Lines 1-2
The import keyword is used to include Python modules that enhance functionality available within the
script. This ‘os’ module used in this script provides capabilities for interacting with operating system services.
Refer to the Python Standard Library documentation for details on all available modules.
Lines 4-9
A common pattern is to encapsulate repeated operations in Python function definitions and then call these
functions later in the script. Because the script is processed sequentially, the function must be defined
before it is used. In this example, we define a function writeParams() to loop through all the parameters
in the current project and write information to a provided file object. When concatenating data into a
string for output, all non-String data types must first be explicitly converted to their string representation
using the str(<data>) function or .ToString() method.
Lines 11-18
We recommend that you use the AbsUserPathName function when working with directory or file paths
to promote portability of the path between user accounts and operating systems. See File Path Handling
in ANSYS Workbench (p. 17) for further details.
Lines 20-21
Standard Python functionality is used to open and write output to a log file throughout this script.
Lines 23-31
This section also employs standard Python to loop through all file names in a directory. All those file names
that end with the .wbpj extension are added to a list of project files for further processing.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 21
Using Scripting in ANSYS Workbench
Lines 33-40
The script now processes each project in turn. At the beginning of the loop, the full path to the project
file is generated from the provided directory name and project file name in a platform-independent
manner using Python’s os.path.join function. The project is then opened and messages are cleared
so that later message processing will focus on new messages generated during the update. Note that the
Python is case sensitive. The Open command is part of the ANSYS Workbench Project namespace and is
used to open an ANSYS Workbench project, while the open command is provide by Python and is used
to open any file and create a Python file object.
Lines 42-44
The writeParams function defined earlier in the script is used to record parameter values to the log file
before project modification.
Lines 46-47
The GetAllSystems() query is used to provide references to all systems in the project.
Lines 48-53
Since we are specifically interested in Geometry components, we use the system’s GetContainer()
query to try to get a reference to the Geometry data. A Python try/except/else construct is used to handle
the success or failure of the query.
An alternate approach here would be to walk through each component in the system, and then
use information about the component to decide which to process. That approach is demonstrated
in a subsequent example.
Lines 55-59
An ANSYS Workbench project update is used to recompute all aspects of the project affected by the geo-
metry change. This step is the most computationally expensive part of the script. A Python try/except
construct is used to handle the success or failure of the update and prevent a premature exit of the script.
Lines 61-70
After the update operation has completed, we check if the whole project has been successfully updated.
If the project update was successful, we call the writeParams function again to output updated para-
meter information to the log file. If the update was not successful, we record any project messages that
were generated during the update.
Lines 66-70
Similar to the method we used to process parameters, we loop through all messages in the project and
write key information about each message to the log file.
Lines 72-77
A file path for the project within the desired directory for the modified projects is generated, and the ANSYS
Workbench Save command is called to save the modified project. After saving, the loop repeats for the
next project in the list.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
22 of ANSYS, Inc. and its subsidiaries and affiliates.
Usage Examples
To automate this search, we will write a script that performs the operations described below. Two dif-
ferent methods that accomplish the same task are demonstrated to illustrate different approaches to
project and file navigation.
1. Starting from a given location, recursively search through all subdirectories to find any ANSYS Workbench
projects.
2. For each project, looks for a specified geometry file in using one of two methods:
a. Get a flat list of all files in the project, and look for the desired filename.
b. Walk through all systems and their components, and query each component to get the list of files re-
gistered to it. Then look if the component is using a file of the specified name. This method is a more
involved but provides more detailed information (e.g., the specific system/component using the file)
and gives access to the ANSYS Workbench FileReference to provide detailed information like file size
and last modification time.
Workbench Script The script for this example follows. Each line is numbered for reference in the
discussion that follows.
1 # import the 'os' module, which provides a portable way of using operating system dependent functionality
2 import os
3
4 # A helper function to find all Workbench projects within a specified directory and add them to a list.
5 # This recursivly calls itself to process subdirectories.
6 def findProjectFiles(searchDir, fileList):
7 print "Searching in %s" % searchDir
8 for dirEntry in os.listdir(searchDir):
9 fullName = os.path.join(searchDir,dirEntry)
10 if dirEntry.endswith(".wbpj"):
11 # Store the full path to the project file
12 projList.append(fullName)
13 if os.path.isdir(fullName):
14 findProjectFiles(fullName, fileList)
15
16
17 # Define starting directory to find project files.
18 # Here we'll look everywhere within the user's project path root directory.
19 searchDir = AbsUserPathName("ScriptingGuideExamples")
20
21 # Define file name of interest
22 targetFile = "bloodMix1.agdb"
23
24 # Recursively find all WB2 projects within the search directory
25 projList = []
26 findProjectFiles(searchDir, projList)
27
28 # Open a log file to record script progress
29 logFile = open(AbsUserPathName("ScriptingGuideExamples/Project_File_Search/FindFileInProjects.log"),"w")
30
31 for projFile in projList:
32 try:
33 Open(FilePath=projFile)
34 except Exception as ex:
35 logFile.write("Error opening %s, %s\n" % (projFile, ex))
36 continue
37
38 # Method 1: Search the list of all project files.
39 # This method is simpler, but not as much file information is readily available
40 for fileName in GetAllFiles():
41 if fileName.find(targetFile)> -1:
42 logFile.write("--\n")
43 fileStr = "File %s found in project %s\n"
44 logFile.write(fileStr % (fileName, projFile))
45 logFile.flush()
46
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 23
Using Scripting in ANSYS Workbench
47 # Method 2: Walk through the systems and components, to find any that are using the file.
48 # This method is more complex, but provides detailed information through systems,
49 # components and file references. It's also a useful example of general
50 # System & Component navigation.
51
52 # Loop over all systems in the project
53 for system in GetAllSystems():
54 # Loop over the all components in the system
55 for component in system.Components:
56 container = component.DataContainer
57 # Loop over all file data references associated with the container for the component
58 for compFile in container.GetFiles():
59 if compFile.FileName.find(targetFile) > -1:
60 logFile.write("--\n")
61 sysStr = "Target file found in component %s of system named %s in %s. Details:\n"
62 fileStr = " %s, Size %s bytes, Modified %s\n"
63 logFile.write(sysStr % (component.DisplayText, system.DisplayText, projFile))
64 logFile.write(fileStr % (compFile.Location, compFile.Size, compFile.LastModifiedTime))
65 logFile.flush()
66
67 logFile.close()
68
Log File The log file generated by the above script should look like the following:
--
Target file found in component Geometry of system named Static Structural in
C:\Users\neUser\DemoProjects\pipe1.wbpj. Details:
E:\data\Models\pipe_demo\pipe.x_t, Size 6934 bytes, Modified 06/07/2009 11:50:53 AM
--
File E:\data\Models\pipe_demo\pipe.x_t found in project C:\Users\neUser\DemoProjects\pipe1.wbpj
--
Target file found in component Geometry of system named Static Structural in
C:\Users\neUser\Working\pipeDemo.wbpj. Details:
E:\data\Models\pipe_demo\pipe.x_t, Size 6934 bytes, Modified 06/07/2009 11:50:53 AM
--
File E:\data\Models\pipe_demo\pipe.x_t found in project C:\Users\neUser\Working\pipeDemo.wbpj
Discussion This example demonstrates how to navigate through systems and components in a project,
as well as useful queries and data entities for working with files. The following discussion refers to the
specified line numbers of the example script to illustrate some of these concepts and constructs. Dis-
cussion points from earlier examples will not be repeated here.
Lines 4-14
This function finds all project files within a specified directory. The Python os.listdir function returns
all file and directory names in the specified location. If the name ends with .wbpj, ANSYS Workbench
stores the full path to a list of projects. If the name is a directory, ANSYS Workbench recursively calls the
function to search the subdirectory.
Lines 32-36
Here, the script demonstrates exception handling to catch any errors that result from opening the project
file and report the error to the log file. The continue statement skips to the next entry in the project file
loop.
Lines 38-45
This method uses the GetAllFiles() query to get a flat list of all files used in the project and looks at
each entry to see if contains the target file name. If so, we record the full path to the target file and the
project file to the log.
Line 53
The GetAllSystems() query is used to loop over all systems in the project.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
24 of ANSYS, Inc. and its subsidiaries and affiliates.
Usage Examples
Line 55
The Components property in the system is accessed to loop over the set of components in the system.
Line 56
The DataContainer property is used to access the data within the component.
Line 58
The GetFiles() method on a container is used to return a list of FileReferences that have been associated
to that container.
Lines 59-65
We look at the FileName property of each FileReference to see if it contains the target file name. If so,
other properties of the FileReference, System and Component are used to record information about the
file and its location within the project to the log file.
The above consideration will be used to demonstrate calculations based on physical quantities and
units.
To automate property creation, we will write a script that performs the operations described below:
1. Create a system for a Static Structural analysis, and access the data container for Engineering Data.
2. Load material data for Polyethylene. By default, this material does not include property data for Multilinear
Isotropic Hardening.
3. Read experimental data from a text file, and generate lists of data for the necessary variables (converting
Total Strain to Plastic Strain)
4. Create the Multilinear Isotropic Hardening property within Polyethylene and set its data table.
Sample Data File The sample data file to be used in this example follows:
#
# Stress Stain Data for the Material Properties scripting example.
#
# The data is Total Strain (in m m^-1), Stress (in MPa)
#
7.33E-02, 80.6
1.80E-01, 88.0
6.30E-01, 142.5
7.53E-01, 168.0
8.70E-01, 187.0
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 25
Using Scripting in ANSYS Workbench
Workbench Script The script for this example follows. Each line is numbered for reference in the
discussion that follows.
1 workDir = "ScriptingGuideExamples\Material_Tabular_Data/"
2
3 # Create an Engineering Data system and access its data container
4 template1 = GetTemplate(
5 TemplateName="Static Structural",
6 Solver="ANSYS")
7 system1 = template1.CreateSystem()
8 engineeringData1 = system1.GetContainer(ComponentName="Engineering Data")
9
10 # Import Polyethylene
11 poly = engineeringData1.ImportMaterial(
12 Name="Polyethylene",
13 Source="General_Materials.xml")
14
15 # Initialize lists for variable values
16 temperature = []
17 strain = []
18 stress = []
19
20 # Get the value of Young's Modulus for use in the Total/Plastic strain calculation.
21 # Material Property data is always returned as a Quantity.
22 elasticity = poly.GetProperty(Name="Elasticity")
23 E = elasticity.GetData(Variables="Young's Modulus")
24
25 # Read the data file and create lists for Temperature, Strain and Stress values
26 # We must convert Total Strain in the data file into Plastic Strain
27 fileName = AbsUserPathName(workDir + "StressStrainData.txt")
28 dataFile = open(fileName,"r")
29 for line in dataFile:
30 # Skip comment lines
31 if line.startswith("#"):
32 continue
33
34 # Split at the comma to get strain, stress
35 (thisStrain, thisStress) = line.split(",")
36
37 # Convert the data into Quantities with Units.
38 thisStrain = Quantity(float(thisStrain),"m m^-1")
39 thisStress = Quantity(float(thisStress),"MPa")
40
41 # Append data to the variable lists (converting total strain to plastic strain)
42 temperature.append(0)
43 calcStrain = thisStrain - thisStress/E
44 if calcStrain.Value < 1e-4:
45 calcStrain = Quantity(0.0,"m m^-1")
46 strain.append(calcStrain)
47 stress.append(thisStress)
48
49 # Create the Multilinear Isotropic Hardening property and set the data for it
50 miso = poly.CreateProperty(
51 Name="Isotropic Hardening",
52 Definition="Multilinear")
53 miso.SetData(
54 SheetName="Isotropic Hardening",
55 SheetQualifiers={"Definition Method": "Multilinear"},
56 Variables = ["Temperature","Plastic Strain","Stress"],
57 Values = [temperature, strain, stress])
58
59 # Save the project
60 Save(
61 FilePath=AbsUserPathName(workDir + "TabularData.wbpj"),
62 Overwrite=True)
Discussion This example demonstrates interaction with Engineering Data to get, create, and set
material properties, as well as calculations involving quantities and units. The following discussion refers
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
26 of ANSYS, Inc. and its subsidiaries and affiliates.
Usage Examples
to the specified line numbers of the example script to illustrate some of these concepts and constructs.
Discussion points from earlier examples will not be repeated here.
Lines 1-13
To set the project up to work with Polyethylene, we create a new Static Structural system, access its Engin-
eering Data container, and load material data from the General Materials library.
Lines 15-18
Interaction with tabular data is done in terms of the variables that make up the data table. Each variable
represents a column in the table, with a list of data for the variable. Here we initialize three lists for temper-
ature, strain and stress data. Multilinear Isotropic Hardening property data can be temperature-dependent,
and temperature is a required variable in the data table. Since our data is not temperature-dependent, we
will use the same value of temperature (0 [C]) at each strain/stress point.
Lines 20-23
Since the calculation for plastic strain depends on Young's Modulus, we use the GetData() method to
get the Young’s Modulus value from the elasticity property. Within Engineering Data, all property values
are stored and returned as quantities which include both a numeric value and a unit. See Lines 35-41 for
further discussion on quantities and units.
Lines 25-32
Here we open our text data file and read each line one at a time. If the line begins with a comment character
'#', we continue to the next line in the file.
Lines 34-35
The Python split() function is used to break the comma delimited line and return the separate values
into variables for strain and stress.
Lines 37-39
In this example we are creating explicit unit-based quantities for stress and strain values, to ensure dimen-
sional and unit consistency in later calculations.
Material property data (or any other quantity data) can be set either as a quantity (i.e., with value
and units), or as a simple numeric value (see Specifying Quantities Without Units). If a numeric value
is supplied, the units are assumed to be the same as the current project units for the variable (it is
the script writer’s responsibility to ensure the numeric data and project units are consistent).
Line 43-45
Since temperature is a simple constant value, we will specify temperature as a numeric value (without
units), and the units will be taken from the current project unit system. We append 0 into the list of tem-
perature data for this strain/stress pair.
Line 46
Here we calculate plastic strain based on the available quantities and append it to the variable list. Math-
ematical operations involving quantities enforce dimensional consistency and automatically perform unit
conversion as necessary to generate a consistent result.
Line 47
Stress data is also appended to the appropriate list.
Lines 50-52
A new property for Multilinear Isotropic Hardening is created within Polyethylene.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 27
Using Scripting in ANSYS Workbench
Lines 53-57
The SetData() method is used to set single value or tabular data for material properties. Some properties
can contain more than one data table, so the SheetName and SheetQualifiers arguments are used to specify
the exact data table to be accessed. The Variables argument specifies one or more variables in the table
to be set. The Values argument specifies the values that correspond to each variable.
Lines 59-62
Finally we save the project, overwriting if one already exists.
The case under consideration is a simple stress analysis of a bar that is defined in a Mechanical APDL
input file. The bar dimensions and output displacement have been parameterized within Mechanical
APDL. In this example, you wish to write a script that automates this analysis for a number of different
bar lengths, and write an ANSYS .cdb file for each case for future processing.
To automate this process, we will write an ANSYS Workbench script that performs the operations de-
scribed below:
1. Create a system for Mechanical APDL analysis, and loads the specified ANSYS input file.
2. Publishes some of the parameters from the input file to ANSYS Workbench.
3. Loops through a list of desired bar lengths and, for each value, does the following:
c. Sends APDL commands to Mechanical APDL to write the .cdb file to a desired location.
Sample Data File The sample data file to be used in this example follows:
! set parameters
xlen=3
ylen=4
zlen=7
! define model
/prep7
block,,xlen,,ylen,,zlen
et,1,185
mp,ex,1,1e6
mp,prxy,1,0.3
vmesh,all
nsel,s,loc,z,0
d,all,all
nsel,s,loc,y,ylen
sf,all,pres,125
alls
fini
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
28 of ANSYS, Inc. and its subsidiaries and affiliates.
Usage Examples
solve
fini
! retrieve results
/post1
! get the max stress at the fixed end
nsel,s,loc,x,xlen
nsel,r,loc,y,ylen
nsel,r,loc,z,0
*GET,out_my_node_stress,NODE,1,NXTH
*GET,out_seqv,NODE,out_my_node_stress,S,EQV
! get the max displacement at the free end
nsel,s,loc,x,xlen
nsel,r,loc,y,ylen
nsel,r,loc,z,zlen
*GET,out_my_node_def,NODE,1,NXTH
*GET,out_uy,NODE,out_my_node_def,U,Y
alls
fini
Workbench Script The script for this example follows. Each line is numbered for reference in the
discussion that follows.
1 # Import the 'os' module, which provides a portable way of using
2 # operating system dependent functionality
3 import os
4
5 workDir = "ScriptingGuideExamples/Sending_Commands/"
6
7 # Specify the Mechanical APDL Input file to be processed
8 inputFile = AbsUserPathName(workDir + "bar.dat")
9
10 # Provide a list of bar length (Z) values to solve and write CDB files for.
11 # Note: We expect '0' to fail.
12 zValues = [3,5,0,12,15]
13
14 # Open a log file to record script progress
15 logFile = open(AbsUserPathName(workDir + "my_bar_script.log"),"w")
16
17 # Start a new project and create the Mechanical APDL system
18 Reset()
19 template1 = GetTemplate(TemplateName="Mechanical APDL")
20 system1 = template1.CreateSystem()
21
22 # Read the input file into the Mechanical APDL Setup
23 setup1 = system1.GetContainer(ComponentName="Setup")
24 mapdlInputFile1 = setup1.AddInputFile(FilePath=inputFile)
25
26
27 # Create Workbench parameters from two of the Mechanical APDL parameters
28 # in the input file
29 mapdlInputFile1.PublishMapdlParameter(Name="ZLEN")
30 parameter1 = Parameters.GetParameter(Name="P1")
31
32 mapdlInputFile1.PublishMapdlParameter(
33 Name="OUT_UY",
34 IsDirectOutput=True)
35 parameter2 = Parameters.GetParameter(Name="P2")
36
37 # Save the initial project definition.
38 Save(
39 FilePath=AbsUserPathName(workDir + "myBar.wbpj"),
40 Overwrite=True)
41
42 # Loop through all provided bar lengths
43 for zVal in zValues:
44
45 # Set the Z (length) parameter expression
46 parameter1.Expression = str(zVal)
47 logFile.write("Updating for z = %s\n" % zVal)
48
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 29
Using Scripting in ANSYS Workbench
49 # Update the project for the new parameter value, and report
50 # success or failure to the log file.
51 try:
52 Update()
53 except:
54 logFile.write(" Update failed.\n")
55 else:
56 logFile.write(" Update succeeded. UY = %s\n" % parameter2.Value)
57
58 # Generate the name of the CDB file to save
59 cdbName = os.path.join(GetUserFilesDirectory(), "my_bar_" + str(zVal) + ".cdb")
60 cdbName = cdbName.replace("\\","/")
61
62 # Delete the cdb file if it already exists, to prevent
63 # Mechanical APDL from promting us about overwrite.
64 if os.path.exists(cdbName):
65 os.remove(cdbName)
66
67 # Generate the APDL command to save the CDB file and send it.
68 apdlCmd = "cdwr,db,%s" % cdbName
69 setup1.SendCommand(Command=apdlCmd)
70 logFile.write(" CDB written to %s\n" % cdbName)
71
72 # Save the final project state.
73 Save()
74 logFile.close()
Log File The log file generated by the above script should look like the following:
Change all the forward slashes (\) with back slashes (/)
Updating for z = 3
Update succeeded. UY = -0.00083352729
CDB written to C:\Users\neUser\Demo\ScriptExample4\myBar_files\user_files\my_bar_3.cdb
Updating for z = 5
Update succeeded. UY = -0.00304172391
CDB written to C:\Users\neUser\Demo\ScriptExample4\myBar_files\user_files\my_bar_5.cdb
Updating for z = 0
Update failed.
CDB written to C:\Users\neUser\Demo\ScriptExample4\myBar_files\user_files\my_bar_0.cdb
Updating for z = 12
Update succeeded. UY = -0.0504979576
CDB written to C:\Users\neUser\Demo\ScriptExample4\myBar_files\user_files\my_bar_12.cdb
Updating for z = 15
Update succeeded. UY = -0.121175623
CDB written to C:\Users\neUser\Demo\ScriptExample4\myBar_files\user_files\my_bar_15.cdb
Discussion This example demonstrates interaction with Mechanical APDL to operate on an existing
ANSYS input file, and send APDL commands. The following discussion refers to the specified line numbers
of the example script to illustrate some of these concepts and constructs. Discussion points from earlier
examples will not be repeated here.
Lines 1-15
The initial lines of the script import useful modules, define controlling variables and create a log file to
record script progress.
Lines 17-20
Here we start a new project and create a new Mechanical APDL system.
Lines 22-24
We use the AddInputFile method on the Mechanical APDL Setup container to read and process the
specified input file.
Lines 27-35
The input file contains a number of values that could be parameterized. Here we promote two of them to
be parameters that are controlled and displayed at the ANSYS Workbench level. We access the ZLEN
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
30 of ANSYS, Inc. and its subsidiaries and affiliates.
Usage Examples
parameter as an input to set the bar length, and the OUT_UY parameter as an output to track maximum
Y displacement.
Lines 40
We save the project to a permanent location. Until the project is saved, all files and project directories are
based on a temporary location. By saving the project, we can more accurately report the directory that
holds the .cdb files. The script will still function if the project is not first saved, but will report the temporary
location for the project files.
Lines 42-47
We start the loop for the desired bar length values and set the Z parameter appropriately. Note that the
Expression for a parameter is a string as it can support complex functions. The Python str() function is
used to convert the Z value to a string.
Lines 49-56
We call the project Update() command to recalculate the project based on the new length parameter
value, and use Python exception handling to report the success or failure of the update. The value of output
displacement is reported on successful update.
Lines 58-60
We use the project user_files directory to store the .cdb files for each case. Here we generate the
desired .cdb file path based on the GetUserFilesDirectory() query and use os.path.join to
combine that with the desired file name.
Mechanical APDL typically uses forward slashes in file paths by convention, so we convert any
backslashes to forward in line 62.
Line 62-65
Mechanical APDL interactively prompts you to overwrite a .cdb file if one already exists, so we ensure no
.cdb file of the desired name is present.
Lines 67-70
We generate an APDL command string to write the .cdb file to the desired file path and use the Send-
Command method to execute it. While this example just passes a single line command, the command
string can contain multiple commands separated by newlines.
Lines 72-74
We complete the script by saving the final project state and closing the log file.
Of primary interest in this example is that user interaction with this project will be done via Microsoft
Excel, where you will:
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 31
Using Scripting in ANSYS Workbench
3. See an 'Updating...' message in Excel as the calculation proceeds, and the output parameter value updated
within the Workbook when the calculation is complete.
When the ANSYS Workbench script below is executed, it opens the necessary ANSYS Workbench project
and Excel Workbook, and then establishes an event connection so that an ANSYS Workbench script
function is executed at the press of the button within Excel.
Workbench Script The script for this example follows. Each line is numbered for reference in the
discussion that follows.
1 # IronPython imports to enable Excel interop
2 import clr
3 clr.AddReference("Microsoft.Office.Interop.Excel")
4 import Microsoft.Office.Interop.Excel as Excel
5
6 workingDir = AbsUserPathName("ScriptingGuideExamples/Excel_Parameter_Scripting/")
7
8 def updateHandler():
9
10 # Define key ranges in the Workbook
11 lengthCell = worksheet.Range["A3"]
12 loadCell = worksheet.Range["B3"]
13 defCell = worksheet.Range["C3"]
14
15 # Get the Workbench Parameters
16 lengthParam = Parameters.GetParameter(Name="P1")
17 loadParam = Parameters.GetParameter(Name="P2")
18 defParam = Parameters.GetParameter(Name="P3")
19
20 # Assign values to the input parameters
21 lengthParam.Expression = lengthCell.Value2.ToString()
22 loadParam.Expression = loadCell.Value2.ToString() + " [N]"
23
24 # Mark the deformation parameter as updating in the workbook
25 defCell.Value2="Updating..."
26
27 # Run the project update
28 Update()
29
30 # Update the workbook value from the WB parameter
31 defCell.Value2 = defParam.Value
32
33
34 # Open the Workbench Project
35 Open(FilePath = workingDir + "ExcelParameterScripting.wbpj")
36
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
32 of ANSYS, Inc. and its subsidiaries and affiliates.
Usage Examples
Discussion This example demonstrates a number of the typical programming constructs necessary
for ANSYS Workbench scripting to interact with the Common Language Runtime (CLR) API exposed by
Microsoft Excel and similar applications.
Lines 1-4
The clr module is imported to enable IronPython to load and interact with CLR modules from other ap-
plications. In this example we add a CLR reference to the Microsoft Excel Interop assembly, and then import
the module as the Excel namespace.
Line 6
The working directory is set, so that the script can load the Project and Excel Workbook from the specified
location. When completing this example, this line will need to be modified to reflect your working location.
Lines 8-31
An updateHandler() function is created that performs all the necessary actions to interact with Excel
and update the ANSYS Workbench project. This function is connected to the CLICK event of the Excel
button on line 45 of this script.
Lines 10-13
Specific cells of interest in the Workbook are created as named references in the script to facilitate later
use of these cells. In this instance, the cells that hold the values of the two input parameters and one output
parameter are given named references.
Lines 15-18
References to the three parameters exposed by the Static Structural system are also assigned to variables
for later use.
Lines 20-22
The Expression property defining the input parameters are set based on the values of the associated cells
in the Excel Workbook. Note the 'Value2' property is used because it has simpler interaction when working
with a single cell value.
Lines 24-25
The script sets the value of the output parameter cell in the workbook to 'Updating...' while calculation
proceeds.
Lines 27-28
The Update() command is executed to update the project based on the new input parameter values.
Lines 30-31
When the Update is complete, we update the output cell value in the Workbook with the parameter value
in the Project.
Note the reference to defparam.Value.Value. The Value property of a parameter can have
different types (Numeric, String, Boolean, Quantity, etc). In this instance, it is a Quantity, which in
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 33
Using Scripting in ANSYS Workbench
turn has properties for its Value and Unit. Therefore defparam.Value.Value is the numeric
part of the Quantity that is the parameter's current value.
Lines 34-35
The lines following the UpdateHandler definition are those first executed when the script executes. The
first operation is to load the Workbench Project containing the parameterized Static Structural analysis.
Lines 37-39
Using the imported Excel namespace, we create an instance of the Excel application and make it visible.
Lines 40-41
We open the Excel workbook that contains the parameter table and 'Update' button, and get a reference
to the primary (active) worksheet in the book.
Lines 43-44
We get a reference to the named OLE button (CommandButton1) that is present in the worksheet. This
button was added to the worksheet by inserting the control within Excel, but no other macros or code
associated with this button is required in the workbook.
Line 45
The updateHandler() function is added as an event handler to the CLICK event on the command
button. Whenever the button is clicked, the associated ANSYS Workbench script function is executed.
ANSYS AIM Script The script for this example follows. Each line is numbered for reference in the
discussion that follows.
1 # encoding: utf-8
2 SetScriptVersion(Version="16.0")
3 Reset()
4
5 # Define working directory and CAD file
6 workingDir = r"D:\ScriptingGuideExamples\AIM_Fluids_Study\"
7 CADFile = "TrumpetValve.agdb"
8 projectName = "sce-4-cfd.wbpj"
9
10 import os
11 fullPath = os.path.join(workingDir, CADFile)
12 savePath = os.path.join(workingDir, projectName)
13
14 with Transaction():
15 # Define Study system and access the container
16 system1 = GetSystem(Name="Study")
17 study1 = system1.GetContainer(ComponentName="Study")
18
19 # Define the Tasks and Groups
20 importComponent1 = Study.CreateTask(Type="Import", System=system1)
21 meshingComponent1 = Study.CreateTask(Type="Meshing", System=system1)
22
23 physicsDefinitionComponent1 = Study.CreateTask(Type="Physics Definition",System=system1)
24 solvePhysicsComponent1 = Study.CreateTask(Type="Solve Physics",System=system1)
25 # physicsDefinitionComponent1 and solvePhysicsComponent1 will be grouped together
26
27 physicsSolutionGroup1 = Study.CreateGroup(Name="Physics Solution")
28 physicsSolutionGroup1.Add(Component=physicsDefinitionComponent1)
29 physicsSolutionGroup1.Add(Component=solvePhysicsComponent1)
30
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
34 of ANSYS, Inc. and its subsidiaries and affiliates.
Usage Examples
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 35
Using Scripting in ANSYS Workbench
103
104 # Define Boundary Conditions
105 with Transaction():
106 inletBoundary1 = study1.CreateEntity(Type="InletBoundary", AssociatedObject=physicsRegion1)
107 inletBoundary1.Location = 'GetSelectionSet("@inlet")'
108 inletBoundary1.Flow.Velocity.Magnitude = "3.0 [m s^-1]"
109
110 with Transaction():
111 outletBoundary1 = study1.CreateEntity(Type="OutletBoundary", AssociatedObject=physicsRegion1)
112 outletBoundary1.Location = 'GetSelectionSet("@outlet")'
113 outletBoundary1.Flow.Pressure.GaugeStaticPressure = "0 [Pa]"
114
115 with Transaction():
116 wallBoundary1 = study1.CreateEntity(Type="WallBoundary", AssociatedObject=physicsRegion1)
117 wallBoundary1.Location = 'GetSelectionSet("@wall")'
118
119 # Add post-processing items (contours, vectors and streamlines) on boundaries and cut-planes
120 with Transaction():
121 contourResult1 = study1.CreateEntity(Type="ContourResult", AssociatedObject=results1)
122 contourResult1.Variable = "Pressure"
123 contourResult1.Location = 'GetSelectionSet("@wall")'
124 contourResult1.DisplayText = "WallPressure"
125
126 with Transaction():
127 vectorResult1 = study1.CreateEntity(Type="VectorResult", AssociatedObject=results1)
128 vectorResult1.Variable = "Velocity"
129 vectorResult1.Location = 'GetSelectionSet("@outlet")'
130 vectorResult1.DisplayText = "OutletVelocity"
131
132 with Transaction():
133 plane1 = study1.CreateEntity(Type="Plane", AssociatedObject=results1)
134 plane1.DisplayText = "Z0"
135
136 with Transaction():
137 plane2 = study1.CreateEntity(Type="Plane", AssociatedObject=results1)
138 plane2.Transformation.RotationAngle = "90 [degree]"
139 plane2.DisplayText = "Y0"
140
141 with Transaction():
142 contourResult2 = study1.CreateEntity(Type="ContourResult", AssociatedObject=results1)
143 contourResult2.Variable = "Pressure"
144 contourResult2.Location = [plane2] # Y0
145 contourResult2.DisplayText = "Y0Pressure"
146
147 with Transaction():
148 vectorResult2 = study1.CreateEntity(Type="VectorResult", AssociatedObject=results1)
149 vectorResult2.Variable = "Velocity"
150 vectorResult2.Location = [plane1] # Z0
151 vectorResult2.DisplayText = "Z0Velocity"
152
153 with Transaction():
154 streamLine1 = study1.CreateEntity(Type="StreamLine",AssociatedObject=results1)
155 streamLine1.Location = 'GetSelectionSet("@inlet")'
156 streamLine1.DisplayText = "Streamlines_from_inlet"
157
158 # Generate the Mesh
159 meshingComponent1.Update(AllDependencies=True)
160
161 # Perform the Simulation
162 with Transaction():
163 physicsDefinitionComponent1.Update(AllDependencies=True)
164 solvePhysicsComponent1.Update(AllDependencies=True)
165
166 # Update the Results
167 resultsEvaluationComponent1.Update(AllDependencies=True)
168
169 # Save project to working directory
170 Save(FilePath=savePath, Overwrite=True)
171
172 # Exit from Workbench AIM
173
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
36 of ANSYS, Inc. and its subsidiaries and affiliates.
Usage Examples
Line 3
Reset() command starts a new session.
Line 6
The working directory is set, so that the script can load the geometry file from the specified location. When
completing this example, this line will need to be modified to reflect your working location.
Line 10
The 'os' module used in this script provides capabilities for interacting with operating system services.
Refer to the Python Standard Library documentation for details on all available modules.
Lines 14-63
This part defines a basic CFD analysis template. All the different tasks (e.g., geometry import, mesh gener-
ation, solution and results) are created and populated.
Lines 19-31
Different tasks (e.g., geometry import, mesh generation, solution, and results) are created.
Lines 36-39
Define some global properties for the mesh generation.
Lines 45-57
Define PhysicsRegion, SolverSettings, and Material for the solution.
Lines 59-63
Define links between the tasks, i.e., meshing task takes the geometry from the import task as input; solution
task takes the mesh generated from the meshing task, etc.
Lines 65-66
Add a Transcript tab so that solver output information can be monitored.
Lines 71-84
The geometry file is imported (along all NamedSelections) and other tasks are refreshed as their upstream
data is updated.
Lines 86-91
Define a boundary layers mesh control on the "wall" NamedSelection.
Lines 93-102
Define Solver Controls
Lines 104-117
Define Boundary Conditions.
Lines 105-108
3.0 m/s velocity magnitude for the "inlet" Named Selection.
Lines 110-113
0 Pa static pressure for the "outlet" Named Selection.
Lines 115-117
Wall for the "wall" Named Selection.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 37
Using Scripting in ANSYS Workbench
Lines 120-156
Add post-processing items (contours, vectors and streamlines) on boundaries and cut-planes.
Line 159
Generate the mesh.
Line 162-164
Perform the simulation.
Line 166-167
Evaluate all of the results.
Line 170
Save the project files.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
38 of ANSYS, Inc. and its subsidiaries and affiliates.
Usage Examples
43 physicsDefinition1.CalculationType = "Static"
44
45 # Define PhysicsRegion, SolverSettings, Material
46 physicsRegion1 = study1.CreateEntity(Type="PhysicsRegion",AssociatedObject=physicsDefinition1)
47 physicsRegion1.PhysicsType = "Structural"
48 physicsRegion1.Location = "AllBodies()"
49
50 solverSettings1 = study1.CreateEntity(Type="SolverSettings",AssociatedObject=physicsDefinition1)
51
52 material1 = study1.CreateEntity(Type="Material", AssociatedObject=physicsDefinition1)
53 material1.ImportEngineeringData(Name="Structural Steel")
54
55 materialAssignment1 = study1.CreateEntity(Type="MaterialAssignment",AssociatedObject=physicsDefinition1)
56 materialAssignment1.Material = material1
57 materialAssignment1.Location = [physicsRegion1]
58
59 # Define upstream-downstream links between the tasks
60 AddSourceToComponentInSystem(SourceComponent=importComponent1, TargetComponent=meshingComponent1)
61 AddSourceToComponentInSystem(SourceComponent=meshingComponent1, TargetComponent=physicsDefinitionComponent1)
62 AddSourceToComponentInSystem(SourceComponent=physicsDefinitionComponent1, TargetComponent=solvePhysicsCompon
63 AddSourceToComponentInSystem(SourceComponent=solvePhysicsComponent1, TargetComponent=resultsEvaluationCompon
64
65 # Add a Transcript tab
66 transcript1 = study1.CreateEntity(Type="Transcript", AssociatedObject=physicsDefinition1)
67
68 # Define Results
69 results1 = resultsEvaluationComponent1.GetTaskObject()
70
71 with Transaction():
72 # Import the CAD
73 Study.AddGeometryImportSourceOperation(ObjectReference=import1)
74 geometryImportSource1 = study1.GetGeometryImportSource(Name="GeometryImportSource 1")
75 geometryImportSource1.FilePath = fullPath
76 geometryImportSource1.GeometryPreferences.ImportNamedSelections = "True"
77 geometryImportSource1.GeometryPreferences.NamedSelectionKey = ""
78
79 importComponent1.Update(AllDependencies=True)
80
81 # Refresh other cells
82 meshingComponent1.Refresh()
83 physicsDefinitionComponent1.Refresh()
84 resultsEvaluationComponent1.Refresh()
85
86 # Define Boundary Conditions
87 with Transaction():
88 support1 = study1.CreateEntity(Type="Support", AssociatedObject=physicsRegion1)
89 support1.Location = 'GetSelectionSet("@side1")'
90
91 with Transaction():
92 pressure1 = study1.CreateEntity(Type="Pressure", AssociatedObject=physicsRegion1)
93 pressure1.Location = 'GetSelectionSet("@side2")'
94 pressure1.Magnitude = "1.0E7 [Pa]"
95 # Define this as a input Parameter
96 parameter1 = Parameters.CreateParameter(Entity=pressure1, PropertyName="Magnitude", IsOutput=False)
97 parameter1.Expression = str(pressure1.Magnitude)
98 parameter1.DisplayText="Pressure1"
99
100 # Add post-processing contours
101 with Transaction():
102 contourResult1 = study1.CreateEntity(Type="ContourResult", AssociatedObject=results1)
103 contourResult1.Variable = "Displacement.mag"
104 contourResult1.Location = "AllBodies()"
105 contourResult1.DisplayText = "Total Deformation"
106 # Define this as a output Parameter
107 parameter2 = Parameters.CreateParameter(Entity=contourResult1, PropertyName="Summary.Max", IsOutput=True, Is
108 parameter2.DisplayText="Maximum Deformation"
109
110 with Transaction():
111 contourResult2 = study1.CreateEntity(Type="ContourResult", AssociatedObject=results1)
112 contourResult2.Variable = "Stress.eqv"
113 contourResult2.Location = "AllBodies()"
114 contourResult2.DisplayText = "Eqv Stress"
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 39
Using Scripting in ANSYS Workbench
115
116 with Transaction():
117 vectorResult1 = study1.CreateEntity(Type="VectorResult", AssociatedObject=results1)
118 vectorResult1.Variable = "Displacement"
119 vectorResult1.Location = "AllBodies()"
120
121 # Generate the Mesh
122 meshingComponent1.Update(AllDependencies=True)
123
124 # Perform the Simulation
125 # Perform the Simulation
126 with Transaction():
127 physicsDefinitionComponent1.Update(AllDependencies=True)
128 solvePhysicsComponent1.Update(AllDependencies=True)
129
130 # Update the Results
131 resultsEvaluationComponent1.Update(AllDependencies=True)
132
133 # Save project to working directory
134 Save(FilePath=savePath, Overwrite=True)
135
136 # Exit from Workbench AIM
137
Line 3
Reset() command starts a new session.
Line 6
The working directory is set, so that the script can load the geometry file from the specified location. When
completing this example, this line will need to be modified to reflect your working location.
Line 10-12
The 'os' module used in this script provides capabilities for interacting with operating system services.
Refer to the Python Standard Library documentation for details on all available modules.
Lines 14-69
This part defines a basic Static Structural analysis template. All the different tasks (e.g., geometry import,
mesh generation, solution and results) are created and populated.
Lines 19-34
Different tasks (e.g., geometry import, mesh generation, solution, and results) are created.
Lines 36-39
Define some global properties for the mesh generation.
Lines 45-57
Define PhysicsRegion, SolverSettings, and Material for the solution.
Lines 59-63
Define links between the tasks, i.e., meshing task takes the geometry from the import task as input; solution
task takes the mesh generated from the meshing task, etc.
Lines 65-66
Add a Transcript tab so that solver output information can be monitored.
Lines 71-84
The geometry file is imported (along all NamedSelections) and other tasks are refreshed as their upstream
data is updated.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
40 of ANSYS, Inc. and its subsidiaries and affiliates.
Usage Examples
Lines 88-89
Define a fixed support boundary condition on "side1" Named Selection.
Lines 91-98
Define a 1.0E7 Pa pressure load "side2" Named Selection and make it an input parameter, named "Pressure1".
Lines 101-105
Create a displacement magnitude contours on all bodies.
Lines 107-108
Make the maximum displacement magnitude as a output parameter, named "Maximum Deformation".
Lines 110-119
Create more contour and vector results.
Line 122
Generate the mesh.
Line 126-128
Perform the simulation.
Line 131
Evaluate all of the results.
Line 133
Save the project files.
Of primary interest in this example is that user interaction with this project will be done via Microsoft
Excel, where you will:
3. See an 'Updating ...' message in Excel as the calculation proceeds, and the output parameter value updated
within the Workbook when the calculation is complete.
When the script below is executed, it opens the necessary ANSYS AIM project and Excel Workbook, and
then establishes an event connection so that an ANSYS AIM script function is executed at the press of
the button within Excel.
Script The script for this example follows. Each line is numbered for reference in the discussion that
follows.
1 SetScriptVersion(Version="16.0.260")
2 Reset()
3 # IronPython imports to enable Excel interop
4 import clr
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 41
Using Scripting in ANSYS Workbench
5 import os
6 clr.AddReference("Microsoft.Office.Interop.Excel")
7 import Microsoft.Office.Interop.Excel as Excel
8
9 # Define working directory
10 workingDir = r"D:\ScriptingGuideExamples\AIM_Excel_Parameter_Scripting\"
11 def updateHandler():
12
13 # Update can take long, so disable the Excel warning -
14 # "Excel is waiting for another application to complete an OLE action"
15 ex.Application.DisplayAlerts = False
16
17 # Define key ranges in the Workbook
18 lengthCell = worksheet.Range["A3"]
19 loadCell = worksheet.Range["B3"]
20 defCell = worksheet.Range["C3"]
21
22 # Get the Workbench Parameters
23 lengthParam = Parameters.GetParameter(Name="P1")
24 loadParam = Parameters.GetParameter(Name="P2")
25 defParam = Parameters.GetParameter(Name="P3")
26
27 # Assign values to the input parameters
28 lengthParam.Expression = lengthCell.Value2.ToString() + " [cm]"
29 loadParam.Expression = loadCell.Value2.ToString() + " [N]"
30
31 # Mark the deformation parameter as updating in the workbook
32 defCell.Value2="Updating..."
33
34 # Run the project update
35 Update()
36
37 # Update the workbook value from the WB parameter
38 # Access the deformation value in "m"
39 defValue = defParam.Value.ConvertUnit("m")
40 defCell.Value2 = defValue.Value
41
42 # restore alert setting
43 ex.Application.DisplayAlerts = True
44
45 # Open the Workbench Project
46 if (os.path.exists(os.path.join(workingDir, "AIMExcelParameterScripting.wbpj"))):
47 Open(FilePath = os.path.join(workingDir, "AIMExcelParameterScripting.wbpj"))
48 else:
49 RunScript(FilePath = os.path.join(workingDir,"AIMExcelParameterScriptingProject.wbjn"))
50
51 # Open Excel and the workbook
52 ex = Excel.ApplicationClass()
53 ex.Visible = True
54 workbook = ex.Workbooks.Open(os.path.join(workingDir , "ParameterExample.xlsx"))
55 worksheet=workbook.ActiveSheet
56
57 #Apply the update handler to the workbook button
58 OLEbutton = worksheet.OLEObjects("CommandButton1")
59 commandButton = OLEbutton.Object
60 commandButton.CLICK += updateHandler
61
62
Discussion This example demonstrates a number of the typical programming constructs necessary
for ANSYS Workbench scripting to interact with the Common Language Runtime (CLR) API exposed by
Microsoft Excel and similar applications.
Lines 3-7
The clr module is imported to enable IronPython to load and interact with CLR modules from other ap-
plications. In this example we add a CLR reference to the Microsoft Excel Interop assembly, and then import
the module as the Excel namespace. The 'os' module used in this script provides capabilities for interacting
with operating system services. Refer to the Python Standard Library documentation for details on all
available modules.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
42 of ANSYS, Inc. and its subsidiaries and affiliates.
Usage Examples
Line 10
The working directory is set, so that the script can load the Project and Excel Workbook from the specified
location. When completing this example, this line will need to be modified to reflect your working location.
Lines 11-43
An updateHandler() function is created that performs all the necessary actions to interact with Excel
and update the ANSYS Workbench project. This function is connected to the CLICK event of the Excel
button on line 58 of this script.
Lines 17-20
Specific cells of interest in the Workbook are created as named references in the script to facilitate later
use of these cells. In this instance, the cells that hold the values of the two input parameters and one output
parameter are given named references.
Lines 22-25
References to the three parameters exposed by the Static Structural system are also assigned to variables
for later use.
Lines 27-29
The Expression property defining the input parameters are set based on the values of the associated cells
in the Excel Workbook. Note the 'Value2' property is used because it has simpler interaction when working
with a single cell value.
Lines 31-32
The script sets the value of the output parameter cell in the workbook to 'Updating...' while calculation
proceeds.
Line 35
The Update() command is executed to update the project based on the new input parameter values.
Lines 37-40
When the Update is complete, we update the output cell value in the Workbook with the parameter value
in the Project.
Note the reference to defparam.Value. The Value property of a parameter can have different
types (Numeric, String, Boolean, Quantity, etc.). In this instance, it is a Quantity, which in turn has
properties for its Value and Unit. For consistency, we can access the value in a specific unit system
(independent of the Project unit system). So, in this case, we access the result value in "m", by using
ConvertUnit method.
Lines 46-49
The lines following the UpdateHandler definition are those first executed when the script executes. The
first operation is to load the Workbench Project containing the parameterized Static Structural analysis.
Lines 51-53
Using the imported Excel namespace, we create an instance of the Excel application and make it visible.
Lines 54-55
We open the Excel workbook that contains the parameter table and 'Update' button, and get a reference
to the primary (active) worksheet in the book.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 43
Using Scripting in ANSYS Workbench
Lines 57-59
We get a reference to the named OLE button (CommandButton1) that is present in the worksheet. This
button was added to the worksheet by inserting the control within Excel, but no other macros or code
associated with this button is required in the workbook.
Line 60
The updateHandler() function is added as an event handler to the CLICK event on the command
button. Whenever the button is clicked, the associated ANSYS Workbench script function is executed.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
44 of ANSYS, Inc. and its subsidiaries and affiliates.
Known Issues and Limitations
General
• No known issues or limitations.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 45
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
46 of ANSYS, Inc. and its subsidiaries and affiliates.
Part I: Data Containers
ACP
ACP Setup
This container holds Setup data for an instance of ACP Pre.
Data Entities
SetupDataObject
Setup cell properties of the ACP Pre component.
Properties
AllowRenumbering
Within composite assemblies, mesh and composite data are automatically renumbered in the downstream
systems to avoid overlapping indices.
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
LoadModelGeometry
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 49
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
50 of ANSYS, Inc. and its subsidiaries and affiliates.
Ansoft
Ansoft
This container holds data for an instance of an Ansoft analysis.
Data Entities
AnsoftSolutionEntityType
The main entity for the Solution component of Ansoft systems. This entity exposes parameters that
control how the update operation is carried out by the underlying editor.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
KeepDesktopEnginesDuringUpdateMultiDPs
Controls whether the various engine processes that the editor employs in it's solve process are kept
alive across design points when workbench is performing a multiple design point update. This controls
the memory/time tradeoff during multiple design point updates.
Type bool
Read Only No
NonGraphical
Control whether the editor is launched in non-graphical mode or with full UI.
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 51
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
52 of ANSYS, Inc. and its subsidiaries and affiliates.
Ansoft Feedback Iterator
Methods
ExecuteOneTwoWayIteration
This command executes one two-way iteration among the coupled clients of the master "Two Way
iterator" component
ResetCompletedIterations
This command rests the number of completed iterations
Data Entities
FeedbackIteratorEntity
The main FeedbackIterator entity holding information about the coupled clients etc.
Properties
CallbackPath
Type string
Read Only No
CompletedSolveIterations
Type int
Read Only No
CurrentDeltaDPercentage
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 53
Ansoft Feedback Iterator
CurrentDeltaTPercentage
Type string
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
MaxSolveIterations
The Max number of solve iterations allowed when the FBIter is working with a system that sends con-
vergence information
Type int
Read Only No
TargetDeltaDPercentage
Type double
Read Only No
TargetDeltaTPercentage
Type double
Read Only No
TotalSolveIterations
Type int
Read Only No
FeedbackIteratorTransferManagerEntity
The entity that handles the transfer data protocol for the AnsoftCADGeometry Addin container.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
54 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 55
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
56 of ANSYS, Inc. and its subsidiaries and affiliates.
AQWA
AQWA Model
This container holds Model data for an instance of AQWA.
Methods
Edit
Opens the AQWA editor to allow modification of AQWA Model data.
Exit
Exits the AQWA editor.
GetModel
Get the DataReference for the Model data entity.
Type DataReference
SendCommand
Executes one or more JScript commands in the AQWA editor.
Required Arguments
Example
To execute some arbitrary command (in this case, causing a dialog box to appear) in the AQWA editor:
model1.SendCommand(Command="WBScript.Out(\"My Text\",true);" )
If the AQWA editor is not open SendCommand will open it, run the command and then close it.
Consider calling model1.Edit()to open the editor before using SendCommand if you do not want it
to close.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 57
AQWA
Data Entities
AqwaModel
Model data entity.
Properties
AnalysisType
Type string
AQDBDatabaseFilesWritten
Indicates if aqwa .aqdb database files have been written for this system.
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
GeometrySelected
Type bool
Read Only No
PhysicsType
Type string
ProjectName
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
58 of ANSYS, Inc. and its subsidiaries and affiliates.
SolverType
Type string
AQWA Results
This container holds Results data for an instance of AQWA.
Methods
Edit
Opens the AQWA editor to allow modification of AQWA Setup data or viewing of the AQWA Results.
Exit
Exits the AQWA editor.
GetResults
Get the DataReference for the Results data entity.
Type DataReference
SendCommand
Executes one or more JScript commands in the AQWA editor.
Required Arguments
Example
To execute some arbitrary command (in this case, causing a dialog box to appear) in the AQWA editor:
model1.SendCommand(Command="WBScript.Out(\"My Text\",true);" )
If the AQWA editor is not open SendCommand will open it, run the command and then close it.
Consider calling model1.Edit()to open the editor before using SendCommand if you do not want it
to close.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 59
AQWA
Data Entities
AqwaResults
Results data entity.
Properties
AnalysisType
Type string
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
PhysicsType
Type string
SolverType
Type string
AQWA Setup
This container holds Setup data for an instance of AQWA.
Methods
Edit
Opens the AQWA editor to allow modification of AQWA Setup data or viewing of the AQWA Results.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
60 of ANSYS, Inc. and its subsidiaries and affiliates.
Exit
Exits the AQWA editor.
GetSetup
Get the DataReference for the Setup data entity.
Type DataReference
SendCommand
Executes one or more JScript commands in the AQWA editor.
Required Arguments
Example
To execute some arbitrary command (in this case, causing a dialog box to appear) in the AQWA editor:
model1.SendCommand(Command="WBScript.Out(\"My Text\",true);" )
If the AQWA editor is not open SendCommand will open it, run the command and then close it.
Consider calling model1.Edit()to open the editor before using SendCommand if you do not want it
to close.
Data Entities
AqwaSetup
Setup data entity.
Properties
AnalysisType
Type string
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 61
AQWA
Read Only No
PhysicsType
Type string
SolverType
Type string
StaticOnly
Used to control if Hydrodynamic Diffraction analysis solve is full or hydrostatic only when run from
Workbench. If True then only Hydrostatics are solved.
Type bool
Read Only No
AQWA Solution
This container holds Solution data for an instance of AQWA.
Methods
Edit
Opens the AQWA editor to allow modification of AQWA Solution data.
Exit
Exits the AQWA editor.
GetSolution
Get the DataReference for the Solution data entity.
Type DataReference
SendCommand
Executes one or more JScript commands in the AQWA editor.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
62 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Example
To execute some arbitrary command (in this case, causing a dialog box to appear) in the AQWA editor:
model1.SendCommand(Command="WBScript.Out(\"My Text\",true);" )
If the AQWA editor is not open SendCommand will open it, run the command and then close it.
Consider calling model1.Edit()to open the editor before using SendCommand if you do not want it
to close.
Data Entities
AqwaSolution
Solution data entity.
Properties
AnalysisType
Type string
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
PhysicsType
Type string
SolverType
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 63
AQWA
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
64 of ANSYS, Inc. and its subsidiaries and affiliates.
AUTODYN
AUTODYN Analysis
This container holds Results data for an instance of AUTODYN.
Methods
GetAutodynAnalysis
Returns a reference to an AutodynAnalysis data entity within the container.
Type DataReference
AUTODYN Setup
This container holds Solution data for an instance of AUTODYN.
Methods
Edit
Opens the AUTODYN editor for pre-processing, solving and post-processing. If there is an input file as-
sociated with the system the editor will load that file when it opens, otherwise the editor will create a
new model.
Exit
Closes the AUTODYN editor. If there is any unsaved data in the editor it will be saved.
GetAutodynSetup
Returns a reference to an AutodynSetup data entity within the container.
Type DataReference
Import
Specifies the AUTODYN input file (*.ad), to be associated with the system. The specified file is copied
to the systems working directory and registered with workbench.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 65
AUTODYN
Required Arguments
FilePath The location of the AUTODYN input file (*.ad). If the name is blank any currently associated input
file will be removed.
Type string
SetUserExecutable
Sets the location of the user created executable to be used when the editor is opened.
Required Arguments
ExecutablePath The full path and name of the executable to use when pre-processing, solving and post-
processing.
Type string
Data Entities
AutodynSetup
This holds the properties of the setup component.
Properties
Directory
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
FileName
Type string
Read Only No
strUserExecutable
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
66 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 67
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
68 of ANSYS, Inc. and its subsidiaries and affiliates.
CFD Results
CFD Results
This container holds Results and post-processing data for a CFD simulation.
Methods
Edit
Opens the CFD-Post editor to allow modification of Results data.
This command will open the editor only if one is not already open on this component. If this component's
editor is already open and in interactive mode, then it will be raised to the front.
Optional Arguments
Interactive Run the editor in interactive mode if True, or in no GUI mode if False.
Type bool
Exit
Exits the editor.
Any changes made in this editor will be retained on exit. These changes are made permanent by a
Project Save, and will be discarded in the event of closing the project without saving.
If no editor is open on the component in question, this command will have no effect.
GetCFDResults
Returns the Data Entity which contains user settings and properties for the Results container.
Type DataReference
SendCommand
Sends commands to the editor for this component using CFX Command Language (CCL) syntax. If the
editor for this component is not open, it will be launched before the commands are sent and sub-
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 69
CFD Results
sequently closed. In this mode, component data is loaded and saved as if calling Edit(Interactive=False)
and Exit around the SendCommand invocation.
The instructions must be CFX Command Language session commands that are valid for the editor in
question.
Required Arguments
Data Entities
CFDResults
Entity which manages settings and data for the CFD Results component.
Properties
ClearState
Specifies whether the state should be cleared when the Results cell is updated. This is only used if a
report has been selected or a session script has been specified to run on update.
Type bool
Read Only No
CustomReportTemplate
Specifies the file path of the custom report template to load if LoadReport is set to 'Custom'. It is recom-
mended that the template file be located in the user_files directory of the project so that it is available
if the project is archived and moved to another system.
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
GenerateReport
The report will be generated according to the report definition within CFD-Post. Its name and location
can be controlled by the ReportName and ReportLocationDirectory advanced user properties on this
entity.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
70 of ANSYS, Inc. and its subsidiaries and affiliates.
Type bool
Read Only No
LoadReport
Type PostReportNamesType
Read Only No
MRESLoadOptionsMsg
This property has no effect and is simply used for presentation purposes.
Type string
Read Only No
PostStateFile
Type DataReference
Read Only No
ReportLocationDirectory
This is an advanced user property to be used in conjunction with the GenerateReport and ReportName
properties. By default this property is empty, in which case the project's user_files directory is used. If
a directory path is specified, the directory must exist at the time of component update.
Type string
Read Only No
ReportName
Specifies the name of the report to be generated during component update. By default the report name
is "Report".
This is an advanced user property to be used in conjunction with the GenerateReport and ReportLoca-
tionDirectory properties.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 71
CFD Results
RunSessionScript
Specifies whether a CFD-Post session script will be run as part of the component update.
If enabled, the UpdateScriptCCL property on this entity should be set to contain the session script text.
Type bool
Read Only No
StateInitializationFile
Contains CFX Command Language script for CFD-Post, to be executed as part of the component update.
This can be used to toggle regeneration of exported data, animation files, etc. In this scenario, the script
will only need to be run when loading the results into Post at a time when the Results cell is in the
‘Unfulfilled’ state (i.e. has never been opened yet).
This is an advanced user feature, and caution should be exercised. CFD-Post session files are capable
of performing file activity and changing state in ways that are not supported in Workbench sessions.
Limit your session script to activities which will not corrupt or circumvent Workbench project data
management.
Type string
Read Only No
UpdateScriptCCL
Contains CFX Command Language script for CFD-Post, to be executed as part of the component update.
This can be used to toggle regeneration of exported data, animation files, etc.
This is an advanced user feature, and caution should be exercised. CFD-Post session files are capable
of performing file activity and changing state in ways that are not supported in Workbench sessions.
Limit your session script to activities which will not corrupt or circumvent Workbench project data
management.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
72 of ANSYS, Inc. and its subsidiaries and affiliates.
CFX
CFX Setup
This container holds Setup data for an instance of CFX-Pre.
Methods
BuildSystemCouplingParticipant
Command wrapper to build the System Coupling Participant object from XML
Type DataReference
Required Arguments
Type string
Edit
Opens the CFX-Pre editor to allow modification of CFX Setup data.
This command will open the editor only if one is not already open on this component. If this component's
editor is already open and in interactive mode, then it will be raised to the front.
Optional Arguments
Interactive Run the editor in interactive mode if True, or in no GUI mode if False.
Type bool
Exit
Exits the editor.
Any changes made in this editor will be retained on exit. These changes are made permanent by a
Project Save, and will be discarded in the event of closing the project without saving.
If no editor is open on the component in question, this command will have no effect.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 73
CFX
GetCFXSetupProperties
Returns the Data Entity which contains user settings and properties for the Setup container.
Type DataReference
Import
Imports CFX Setup data into the CFX-Pre editor from an existing CFX Case file.
The Case file's contents will be imported into a new case file within the project, managed by the Setup
component. This operation is not valid if the component already contains Setup data.
Required Arguments
Type string
ReinitializeContainer
This command reinitialises the selected container, resetting the local data and using the cached initial-
isation CCL commands
SendCommand
Sends commands to the editor for this component using CFX Command Language (CCL) syntax. If the
editor for this component is not open, it will be launched before the commands are sent and sub-
sequently closed. In this mode, component data is loaded and saved as if calling Edit(Interactive=False)
and Exit around the SendCommand invocation.
The instructions must be CFX Command Language session commands that are valid for the editor in
question.
Required Arguments
SetInitCCL
Sets the initialisation commands for this component using CFX Command Language (CCL) syntax. On
setting the commands they may be applied to the editor in question using ApplyInitCCLCommand.
The instructions must be CFX Command Language session commands that are valid for the editor in
question.
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
74 of ANSYS, Inc. and its subsidiaries and affiliates.
SuppressPhysicsErrors
Suppresses physics validation errors for the current CFX Setup component.
Normally, a CFX Setup component will not permit an update to proceed while validation errors exist
in the case. However, in certain special situations, it may be that particular validation errors are tolerable
and the case should be solvable.
This command can be used on CFX Setup components to bring the component from Attention Required
to Up-to-Date, allowing the downstream Solution component to be updated.
Data Entities
CFXSetupProperties
Entity which manages settings and data for the CFX Setup component.
Properties
AllowAssemblyMeshImport
This is a beta option. Allow the user to import the assembly meshes
Type bool
Read Only No
CaseFile
Type DataReference
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
PhysicsStatus
Physics state of the CFX-Pre editor, specifying validation errors, warnings and information on the current
case.
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 75
CFX
Read Only No
SolverInputExtendedFiles
Type DataReferenceSet
Read Only No
SolverInputFile
Type DataReference
Read Only No
CFX Solution
This container holds data for a CFX Solution.
Methods
ClearOldSolutionData
Every time the solver is run for a Solution container, a new set of solution files are generated and the
old ones are kept around. This command is used to clear all solution data files from past solver runs
except for the last one.
Required Arguments
KeepReferenced If true, all old solution data will be removed. Otherwise, only data not referenced in the
latest solution will be removed.
Type bool
DisplayMonitors
Displays run history and monitors for the most recent Solution update.
CFX-Solver Manager is used for displaying monitors, and (if necessary) will be launched by executing
this command.
Edit
Open the CFX-Solver Manager editor to allow modification of the run definition for the CFX Solution
component.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
76 of ANSYS, Inc. and its subsidiaries and affiliates.
Note that CFX-SolverManager is a GUI-only component that is not scriptable. This command will not
be journaled when invoked through the GUI. For batch operations, omit this command and use SetExe-
cutionControl. If execution control is specified in the Setup component, it may be necessary to use this
command with the appropriate value for the ExecutionControlOption parameter. Alternatively, the Exe-
cutionControlOption property of the Solution component can be modified directly in the script to ensure
no execution control conflicts are detected.
Optional Arguments
Type ExecutionControlConflictOptions
EditDefFileInCommandEditor
Opens the CFX Command Editor to allow modification of the physics in the specified CFX Results or
Solver Input file.
This command will simply launch the CCL Command Editor with the provided file path. No further
Workbench interaction with the CCL Command Editor is possible, and no further activity of this com-
ponent is journaled. Do not use this command as part of any batch workflow.
Required Arguments
Type string
Exit
Exits the editor.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 77
CFX
Any changes made in this editor will be retained on exit. These changes are made permanent by a
Project Save, and will be discarded in the event of closing the project without saving.
If no editor is open on the component in question, this command will have no effect.
GetCFXSolutionProperties
Returns the Data Entity which contains user settings and properties for the Solution container.
Type DataReference
GetComponentSettingsForRsmDpUpdate
This query is used to obtain the ComponentSettingsForRsmDpUpdate object for Journaling and
Scripting
GetSolutionSettings
This query is used to obtain the solution settings object for Journaling and Scripting
Import
Imports CFX Solution data from an existing CFX Results file.
The Results file, as well as all files associated with it (such as transient or multi-configuration files, if
they exist), will be copied into the project as the generated data for the Solution component.
This command is intended for use when no Setup has been defined. If no data has been provided to
an upstream Setup, or to any upstream Geometry or Mesh components (if they exist), then all of these
components will automatically be deleted from the system as a result of this command.
Required Arguments
Type string
MarkUpToDate
Accept an interrupted Solution as Up-to-Date.
The specified Solution component should be in Interrupted state. As a result of this command, the
Solution will be marked Up-to-Date.
SetExecutionControl
Sets the CFX-Solver settings (in the form of Execution Control CCL) for a Solution component.
These settings will form the basis of a run definition for the Solution component. However, certain
settings, such as the Solver Input File, are always overridden during Update. Other settings, such as all
Initialization settings, can be overridden by the Solution component's Initialization Option property as
well by as the presence of initialization data provided by other components on the project schematic.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
78 of ANSYS, Inc. and its subsidiaries and affiliates.
The CCL argument must specify valid Execution Control CCL.
Required Arguments
CCL CFX Command Language defining Execution Control for the CFX-Solver.
Type string
SwitchToBackgroundMode
Switch the Update in progress into background mode. This will enable operations that are not allowed
during an Update in foreground mode (e.g. Project Save).
This command is not normally useful in a script. Journals may record the invocation of this command
after an Update invoke, as the result of GUI activity while the Update is in progress. However, replay of
these journals will always wait for the Update invoke to complete before invoking the next command,
rendering this step ineffectual.
Data Entities
CFXSolutionProperties
Entity which manages settings and data for the CFX Solution component.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
ExecutionControlOption
Specifies how to handle conflicts in execution control between this entity and the upstream Setup cell.
It is only used if execution control has been saved in this entity and the execution control in the DEF
file, provided by the upstream Setup cell, has changed since the last run.
Type ExecutionControlSource
Read Only No
InitializationOption
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 79
CFX
Available options:
In cases where no existing solution data is present, this property has no effect.
The default behavior is "CurrentSolutionData"; however this default can be changed in Options->CFX-
>Default Initialization Option
Type InitializationOption
Read Only No
LoadMResOptions
Specifies how multi-configuration solution data should be treated by a Results component when opened
in CFD-Post.
This option has no effect if the Solution component does not contain a results set with multiple config-
urations.
Available options:
Type MResOptions
Read Only No
ResultsFile
Type DataReference
SolverArguments
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
80 of ANSYS, Inc. and its subsidiaries and affiliates.
SolverPath
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 81
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
82 of ANSYS, Inc. and its subsidiaries and affiliates.
Design Exploration
DX Direct Optimization
This container holds data for an instance of Parameter Direct Optimization.
Methods
GetModel
Get the DataReference of the Model. An exception is thrown if the entity is not found.
Type DataReference
Example
The following example shows how the user can get a Model to change one of its properties.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
dOEModel1.DOEType = "eDOETYPE_OSFD"
Data Entities
AmoOptimization
Entity which performs and manages the DesignXplorer Optimization Method Component
Properties
Converged
Convergence state
Type bool
CrossoverProbability
Type double
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 83
Design Exploration
CurrentParetoPercentage
Pareto Percentage
Type double
CurrentStabilityPercentage
Stability Percentage
Type double
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
MaximumNumberOfPermutations
Type int
MaxNumCandidates
Type int
Read Only No
MaxNumCycles
Type int
Read Only No
MaxNumIterations
Type int
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
84 of ANSYS, Inc. and its subsidiaries and affiliates.
MutationProbability
Type double
Read Only No
NumberOfEvaluations
Number of Evaluations
Type int
NumberOfFailures
Number of Failures
Type int
NumberOfInitialSamples
Type int
Read Only No
NumCandidates
Number of Candidates
Type int
NumIterations
Current Iteration
Type int
NumSamplesPerIter
Type int
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 85
Design Exploration
ParetoPercentage
Type double
Read Only No
RandomGeneratorSeed
LHS Seed
Type int
Read Only No
SampleSetSize
Type int
StabilityCriterion
Type double
Read Only No
TypeOfInitialSampling
Type TypeOfInitialSampling
Read Only No
AsoOptimization
Entity which performs and manages the DesignXplorer Optimization Method Component
Properties
Converged
Convergence state
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
86 of ANSYS, Inc. and its subsidiaries and affiliates.
ConvergenceTolerance
Convergence Tolerance
Type double
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
MaximumNumberOfPermutations
Type int
MaxNumberReductionPerIteration
Type int
Read Only No
MaxNumCandidates
Type int
Read Only No
MaxNumCycles
Type int
Read Only No
MaxNumDomainReductions
Type int
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 87
Design Exploration
MaxNumEvaluations
Type int
Read Only No
NumberOfEvaluations
Number of Evaluations
Type int
NumberOfFailures
Number of Failures
Type int
NumberOfInitialSamples
Type int
Read Only No
NumberOfScreeningSamples
Type int
Read Only No
NumberOfStartingPoints
Type int
Read Only No
NumCandidates
Number of Candidates
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
88 of ANSYS, Inc. and its subsidiaries and affiliates.
PercentageOfDomainReductions
Type double
Read Only No
RandomGeneratorSeed
LHS Seed
Type int
Read Only No
SampleSetSize
Type int
CustomConstraintProperties
Entity which wraps and manages the external Parameter Definition for the Optimization Criterion with
an external Optimization Method
Properties
No Properties.
CustomObjectiveProperties
Entity which wraps and manages the external Objective Definition for the Optimization Criterion with
an external Optimization Method
Properties
No Properties.
CustomParameterProperties
Entity which wraps and manages the external Parameter Definition for the Input Parameter with an
external Optimization Method
Properties
No Properties.
DiscreteLevel
The data entity which describes a Discrete Level of an Input Parameter.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 89
Design Exploration
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Index
Zero-based Index of the discrete level in the list of levels of the owning parameter.
Type int
Read Only No
Value
Type Object
Read Only No
Methods
SetValue
Sets the value of a discrete level entity. A discrete level can have an integer value (e.g. a number if
holes, a number of turns, etc) or a string value (e.g. a material name or a geometry file name).
Required Arguments
Type Object
Example
The following example shows how to retrieve a discrete level from an input parameter and then change
its value.
InputParameter
The data entity which describes an Input Parameter in DesignXplorer.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
90 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
Attribute1
First editable attribute of the distribution for an uncertainty parameter. The nature of the attribute de-
pends on the distribution type. For instance, the first attribute of a Normal distribution is the Mean
value.
Type double
Read Only No
Attribute2
Second editable attribute of the distribution for an uncertainty parameter. The nature of the attribute
depends on the distribution type. For instance, the second attribute of a Normal distribution is the
Standard Deviation value. Some distribution type do not have a second attribute.
Type double
Read Only No
ConstantValue
Type Object
Read Only No
CustomDefinitionList
Type List<DataReference>
Read Only No
DiscreteLevels
Type List<DataReference>
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 91
Design Exploration
DistributionLowerBound
Type double
Read Only No
DistributionType
Type DistributionType
Read Only No
DistributionUpperBound
Type double
Read Only No
Enabled
Type bool
Read Only No
Kurtosis
Type double
LowerBound
Type double
Read Only No
Mean
Type double
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
92 of ANSYS, Inc. and its subsidiaries and affiliates.
Nature
Type ParameterNature
Read Only No
NumberOfLevels
Number of levels if the parameter nature is Discrete, or the parameter nature is Continuous and the
UseManufacturableValues property is set to True.
Type int
Skewness
Type double
StandardDeviation
Type double
Type
Type SimulationType
Units
Units
Type string
UpperBound
Type double
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 93
Design Exploration
Read Only No
UseManufacturableValues
Type bool
Read Only No
Methods
AddDiscreteLevel
Adds a Discrete Level entity on a discrete input parameter. A discrete level can have an integer value
(e.g. a number of holes, a number of turns, etc) or a string value (e.g. a material name or a geometry
file name). The command has optional arguments to specify the Name of the level and its Index in the
list of levels of the parameter. By default, the new level is added to the end of the list. The various discrete
levels of an input parameter represent independent configurations of the project, processed in the order
of their creation.
Type DataReference
Required Arguments
Value The value of the discrete level. Value can be an integer or a string.
Type Object
Optional Arguments
DisplayText DisplayText of the created entity. If not specified, a default name of the form "Level [#]" is
used.
Type string
Index The position of the new level in the list of discrete levels of the parameter. Index is zero-
based. If it is not specified, the new level is appended to the list.
Type int
Default Value -1
Example
The following example shows how to add new discrete levels on a discrete input parameter. The third
level is inserted between the two others.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
94 of ANSYS, Inc. and its subsidiaries and affiliates.
AddLevels
Adds a list of levels to a continuous input parameter. Each level is a quantity or a real number corres-
ponding to a manufacturable value. The list of levels forms a restriction filter used when post-processing
the input parameter. If levels are added outside of the variation range, the lower and upper bounds
are adjusted accordingly.
Required Arguments
Type List<string>
Optional Arguments
Type bool
Example
The following example shows how to overwrite the manufacturable values of an input parameter and how
to define an additional value later.
CreateOptimizationCriterion
Type DataReference
Required Arguments
Type DataReference
Example
The following example shows how to create an OptimizationCriterion entity.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
parameter1 = model.GetParameter(Name="P1")
optimizationCriterion = parameter1.CreateOptimizationCriterion()
DeleteDiscreteLevels
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 95
Design Exploration
Required Arguments
Type List<DataReference>
Example
The following example shows how to add and then delete one or more levels from a discrete input para-
meter.
DeleteLevels
Required Arguments
Type List<int>
Example
The following example shows how to add and then delete one or more levels from a continuous input
parameter for which the UseManufacturableValues property is set to True.
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
96 of ANSYS, Inc. and its subsidiaries and affiliates.
Default Value False
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
GetCustomParameterDefinition
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can get a CustomParameterProperties.
system1 = GetSystem(Name="DOP")
optimization1 = system1.GetContainer(ComponentName="Optimization")
optimizationModel1 = optimization1.GetModel()
inputParameter1 = optimizationModel1.GetParameter(Name="P1")
customParameterDefinition1 = inputParameter1.GetCustomParameterDefinition(ExtensionName="UncertaintyParamet
customParameterDefinition1.Distribution = "Triangular"
GetDiscreteLevel
Get a discrete level by name from an input parameter. The parameter's full and ordered list of discrete
levels is available as its "DiscreteLevels" property.
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can retrieve a discrete level of a discrete input parameter by
its name.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 97
Design Exploration
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
DiscreteInputParameter1 = dOEModel1.GetParameter(Name="P1")
level = DiscreteInputParameter1.GetDiscreteLevel(Name="Level 1")
GetOptimizationCriterion
Get the DataReference of the OptimizationCriterion associated with a Parameter. An exception is thrown
if the entity is not found.
Type DataReference
Required Arguments
Type DataReference
Example
The following example shows how the user can get a OptimizationCriterion to change one of its properties.
system1 = GetSystem(Name="RSO")
optimization1 = system1.GetContainer(ComponentName="Optimization")
optimizationModel1 = optimization1.GetModel()
parameter3 = optimizationModel1.GetParameter(Name="P3")
optimizationCriterion = parameter3.GetOptimizationCriterion()
optimizationCriterion.ObjectiveType = "eGT_MinimumPossible"
GetParameterStatistics
Type DataReference
Example
The following example shows how the user can get a ParameterStatistics entity and examine its Mean
property.
system1 = GetSystem(Name="SSA")
sixSigmaAnalysis1 = system1.GetContainer(ComponentName="Six Sigma Analysis")
sixSigmaModel1 = sixSigmaAnalysis1.GetModel()
parameter4 = sixSigmaModel1.GetParameter(Name="P4")
parameterStatistics1 = parameter4.GetParameterStatistics()
mean = parameterStatistics1.Mean
MisqpOptimization
Entity which performs and manages the DesignXplorer Optimization Method Component
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
98 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
Converged
Convergence state
Type bool
DerivativeApproximationType
DerivativeApproximationType
Type DerivativeApproximationType
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
InitialFiniteDifferenceDelta
Type double
Read Only No
MaxConvPercentage
Type double
Read Only No
MaximumNumberOfPermutations
Type int
MaxNumCandidates
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 99
Design Exploration
Read Only No
MaxNumIterations
Type int
Read Only No
NumberOfEvaluations
Number of Evaluations
Type int
NumberOfFailures
Number of Failures
Type int
NumCandidates
Number of Candidates
Type int
NumIterations
Current Iteration
Type int
SampleSetSize
Type int
MOGAOptimization
Entity which performs and manages the DesignXplorer Optimization Method Component
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
100 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
Converged
Convergence state
Type bool
CrossoverProbability
Type double
Read Only No
CurrentParetoPercentage
Pareto Percentage
Type double
CurrentStabilityPercentage
Stability Percentage
Type double
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
MaximumNumberOfPermutations
Type int
MaxNumCandidates
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 101
Design Exploration
Read Only No
MaxNumCycles
Type int
Read Only No
MaxNumIterations
Type int
Read Only No
MutationProbability
Type double
Read Only No
NumberOfEvaluations
Number of Evaluations
Type int
NumberOfFailures
Number of Failures
Type int
NumberOfInitialSamples
Type int
Read Only No
NumCandidates
Number of Candidates
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
102 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only Yes
NumIterations
Current Iteration
Type int
NumSamplesPerIter
Type int
Read Only No
ParetoPercentage
Type double
Read Only No
RandomGeneratorSeed
LHS Seed
Type int
Read Only No
SampleSetSize
Type int
StabilityCriterion
Stability Criterion
Type double
Read Only No
TypeOfInitialSampling
Type TypeOfInitialSampling
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 103
Design Exploration
Read Only No
NlpqlOptimization
Entity which performs and manages the DesignXplorer Optimization Method Component
Properties
Converged
Convergence state
Type bool
DerivativeApproximationType
DerivativeApproximationType
Type DerivativeApproximationType
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
InitialFiniteDifferenceDelta
Type double
Read Only No
MaxConvPercentage
Type double
Read Only No
MaximumNumberOfPermutations
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
104 of ANSYS, Inc. and its subsidiaries and affiliates.
MaxNumCandidates
Type int
Read Only No
MaxNumIterations
Type int
Read Only No
NumberOfEvaluations
Number of Evaluations
Type int
NumberOfFailures
Number of Failures
Type int
NumCandidates
Number of Candidates
Type int
NumIterations
Current Iteration
Type int
SampleSetSize
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 105
Design Exploration
OptimizationCriterion
The data entity which describes the objective and constraint associated with a Parameter for an Optim-
ization Study.
Properties
ConstraintFirstValue
Type double
Read Only No
ConstraintHandling
Constraint Handling
Type ConstraintHandlingType
Read Only No
ConstraintImportance
Type ImportanceLevel
Read Only No
ConstraintSecondValue
Type double
Read Only No
ConstraintType
Type ConstraintType
Read Only No
CustomConstraintDefinitionList
Type List<DataReference>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
106 of ANSYS, Inc. and its subsidiaries and affiliates.
CustomObjectiveDefinitionList
Type List<DataReference>
Read Only No
HistoryChart
Type DataReference
Read Only No
LowerBound
Type double
Read Only No
ObjectiveImportance
Type ImportanceLevel
Read Only No
ObjectiveTargetValue
Type double
Read Only No
ObjectiveType
Type GoalType
Read Only No
StartingValue
The value of the parameter in the starting point if Parameter is an input parameter and the optimization
method uses a starting point.
Type double
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 107
Design Exploration
Units
Type string
UpperBound
Type double
Read Only No
Methods
GetChart
Type DataReference
Example
The following example shows how the user can get a HistoryChart to export its data as .csv file.
system = GetSystem(Name="RSO")
optimization = system.GetContainer(ComponentName="Optimization")
optimizationModel = optimization.GetModel()
parameter = optimizationModel.GetParameter(Name="P3")
criterion = parameter.GetOptimizationCriterion()
historyChart = criterion.GetChart()
historyChart.ExportData(FileName="D:/Temp/HistoryChart.csv")
GetCustomConstraintDefinition
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can get a CustomConstraintProperties.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
108 of ANSYS, Inc. and its subsidiaries and affiliates.
system1 = GetSystem(Name="DOP")
optimization1 = system1.GetContainer(ComponentName="Optimization")
optimizationModel1 = optimization1.GetModel()
outputParameter1 = optimizationModel1.GetParameter(Name="P4")
optimizationCriterion1 = outputParameter1.CreateOptimizationCriterion()
customConstraintDefinition1 = optimizationCriterion1.GetCustomConstraintDefinition(ExtensionName="CommonCon
customConstraintDefinition1.FeasibleTolerance = 0.02
GetCustomObjectiveDefinition
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can get a CustomObjectiveProperties.
system1 = GetSystem(Name="DOP")
optimization1 = system1.GetContainer(ComponentName="Optimization")
optimizationModel1 = optimization1.GetModel()
outputParameter1 = optimizationModel1.GetParameter(Name="P4")
optimizationCriterion1 = outputParameter1.CreateOptimizationCriterion()
customObjectiveDefinition1 = optimizationCriterion1.GetCustomObjectiveDefinition(ExtensionName="CommonObjec
customObjectiveDefinition1.RelativeObjectiveWeight = 0.9
OptimizationMethod
Entity which wraps and manages the external Optimization Method for the Optimization component
Properties
No Properties.
OptimizationModel
Entity which performs and manages the DesignXplorer Optimization Component
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 109
Design Exploration
ExportDesignPoints
If True and PreserveDesignPoints is True as well, export project for each preserved Design Point.
Type bool
Read Only No
Method
Optimization Method
Type DataReference
Read Only No
MethodName
Type string
Read Only No
NumberOfRetries
Indicates the number of times DX will try to update the failed design points.
Type int
Read Only No
PreserveDesignPoints
If True, preserve the Design Points at the project level after the component Update.
Type bool
Read Only No
RetainDesignPoints
If True and PreserveDesignPoints is True as well, retain data for each preserved Design Point.
Type bool
Read Only No
RetryDelay
Indicates how much time will elapse between tries. This option is only applicable when NumberOfRetries
is greater than 0, otherwise it has no effect.
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
110 of ANSYS, Inc. and its subsidiaries and affiliates.
VerifyCandidatePoints
Type bool
Read Only No
Methods
CreateChart
Creates a Chart entity. The chart must be updated once after its creation by invoking its Update method.
Then changes to its properties will update the chart automatically.
Type DataReference
Required Arguments
ChartType Type of chart to be created. The possible values depend on the type of Model. For instance, a
ResponseSurface model accepts Spider, LocalSensitivity and Response chart while a Correla-
tionModel accepts CorrelationMatrix, DeterminationMatrix and CorrelationScatter charts.
Type ChartType
Optional Arguments
DisplayText Displayed name of the chart. If not specified, a default name is applied, depending on the
value of ChartType.
Type string
Example
The following example shows how to create a chart.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
TradeoffChart = model.CreateChart(ChartType="eChartTradeoff")
TradeoffChart.Update()
CreateCustomCandidatePoint
Creates a custom candidate point. The Expressions dictionary can be used to specify a value or a
quantity for some or all of the input parameters. In the context of a response surface based optimization,
the output values are evaluated from the response surface.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 111
Design Exploration
Optional Arguments
DisplayText DisplayText of the created entity. If not specified, a default name of the form "Custom Can-
didate Point [#]" is used.
Type string
Expressions The values for each input parameter. If not specified, each parameter is initialized to its
current value.
Example
The following example shows how to create a CustomCandidatePoint entity on an Optimization model
based on a ResponseSurface.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
inputParameter1 = model.GetParameter(Name="P1")
inputParameter2 = model.GetParameter(Name="P2")
customCandidatePoint = model.CreateCustomCandidatePoint( DisplayText="Existing Design",
Expressions={inputParameter1: "2.01", inputParameter2: "15.5"})
CreateParameterRelationship
Type DataReference
Optional Arguments
Type string
Type string
Type ParameterRelationshipType
Example
The following example shows how to create an ParameterRelationship entity.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
parameterRelationship = model.CreateParameterRelationship(LeftExpression="P1+P2",RightExpression="P3",Type=
parameterRelationship2 = model.CreateParameterRelationship(LeftExpression="P4+P5",RightExpression="10[inch]
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
112 of ANSYS, Inc. and its subsidiaries and affiliates.
DeleteCharts
Required Arguments
Type List<DataReference>
Example
The following example shows how to delete existing charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart1 = model.GetChart(Name="TradeoffChart 1")
chart2 = model.GetChart(Name="SamplesChart 1")
model.DeleteCharts(Charts=[chart1, chart2])
DeleteCustomCandidatePoints
Required Arguments
Type List<DataReference>
Example
The following example shows how to delete existing CustomCandidatePoint entities from an optimization
model.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
customCandidatePoint1 = model.GetCustomCandidatePoint(Name="CustomCandidatePoint 1")
customCandidatePoint2 = model.GetCustomCandidatePoint(Name="CustomCandidatePoint 2")
model.DeleteCustomCandidatePoints(CustomCandidatePoints=[customCandidatePoint1, customCandidatePoint2])
DeleteObjectives
Required Arguments
Type List<DataReference>
Example
The following example shows how to delete existing OptimizationCriterion entities.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
parameter1 = model.GetParameter(Name="P1")
optimizationCriterion1 = parameter1.GetOptimizationCriterion()
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 113
Design Exploration
parameter3 = model.GetParameter(Name="P3")
optimizationCriterion3 = parameter3.GetOptimizationCriterion()
model.DeleteOptimizationCriteria(OptimizationCriteria=[optimizationCriterion1, optimizationCriterion3])
DeleteParameterRelationships
Required Arguments
Type List<DataReference>
Example
The following example shows how to delete existing ParameterRelationships.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
pr1 = model.GetParameterRelationship(Name="ParameterRelationShip 1")
pr2 = model.GetParameterRelationship(Name="ParameterRelationShip 2")
pr3 = model.GetParameterRelationship(Name="ParameterRelationShip 3")
model.DeleteParameterRelationships(ParameterRelationships=[pr1, pr2, pr3])
DuplicateChart
Duplicates a Chart entity. The chart must be updated once after its creation by invoking its Update
method. Then changes to its properties will update the chart automatically.
Type DataReference
Required Arguments
Type DataReference
Optional Arguments
DisplayText Displayed name of the chart. If not specified, a default name is applied, depending
on the value of ChartType.
Type string
TargetModel The model on which the duplicated chart is created. If this parameter is not set,
the model of the source chart is used.
Type DataReference
TargetResponsePoint Parent TargetResponsePoint of the chart. If this parameter is not set, the response
point of the source chart is used if applicable.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
114 of ANSYS, Inc. and its subsidiaries and affiliates.
Example
The following example shows how to duplicate a chart.
ExportData
Export the data of model's entities to a csv file. These entities can be candidate points, custom candidate
points, charts, parametric tables or input parameters.
Required Arguments
Entities An optional list of entities containing data to be exported in the same file.
Type List<DataReference>
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the candidate points of an optimization component.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
candidates = model.GetCandidatePoints()
model.ExportData(FileName="doe.csv", Entities=candidates)
GetCandidatePoint
Get the DataReference of a CandidatePoint entity. An exception is thrown if the entity is not found.
Type DataReference
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 115
Design Exploration
Example
The following example shows how to retrieve an existing CandidatePoint entity.
system1 = GetSystem(Name="DOP")
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
candidatePoint = model.GetCandidatePoint(Name="CandidatePoint 1")
GetCandidatePoints
Get the DataReferenceSet of all of the existing CandidatePoint entities on the model.
Type DataReferenceSet
Example
The following example shows how to retrieve the candidate points of an optimization model.
system1 = GetSystem(Name="DOP")
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
candidatePoints = model.GetCandidatePoints()
GetChart
Query to return the chart reference for a given model and chart name.
Type DataReference
Required Arguments
Type string
GetConvergenceChart
Query to return the chart reference for a given model and chart name.
Type DataReference
GetCustomCandidatePoint
Get the DataReference of a CustomCandidatePoint entity. An exception is thrown if the entity is not
found.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
116 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
Example
The following example shows how to retrieve an existing CustomCandidatePoint entity.
system1 = GetSystem(Name="DOP")
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
customCandidatePoint = model.GetCustomCandidatePoint(Name="CustomCandidatePoint 1")
GetCustomCandidatePoints
Get the DataReferenceSet of all of the existing CustomCandidatePoint entities of the model.
Type DataReferenceSet
Example
The following example shows how to retrieve the custom candidate points of an optimization model.
system1 = GetSystem(Name="DOP")
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
customCandidatePoints = model.GetCustomCandidatePoints()
GetOptimizationCriteria
Get the DataReferenceSet of all of the existing OptimizationCriterion entities of the model.
Type DataReferenceSet
Required Arguments
Type DataReference
Example
The following example shows how to retrieve the objectives of an optimization model, as a set of Optim-
izationCriterion entities.
system1 = GetSystem(Name="DOP")
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
criteria = model.GetOptimizationCriteria()
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 117
Design Exploration
GetParameter
Get the DataReference of a Parameter. An exception is thrown if the entity is not found.
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can get a parameter of a model to change one of its properties.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
inputParameter1 = dOEModel1.GetParameter(Name="P1")
inputParameter1.LowerBound = 1
GetParameterRelationship
Get the DataReference of a ParameterRelationship entity. An exception is thrown if the entity is not
found.
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can retrieve an existing ParameterRelationship entity.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
parameterRelationship = model.GetParameterRelationship(Name="ParameterRelationShip 1")
GetParameterRelationships
Get the Parameter Relationships associated to a Model. If the optional argument Enabled is not specified,
the query returns all Parameter Relationships. If it is specified and True, the query returns only enabled
Parameter Relationships. If it is False, the query returns only disabled Parameter Relationships.
Type DataReferenceSet
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
118 of ANSYS, Inc. and its subsidiaries and affiliates.
Optional Arguments
Enabled If True, the query returns only enabled Parameter Relationships. If False, the query returns only
disabled Parameter Relationships. If the argument is ommitted, the query returns all Parameter
Relationships.
Type bool
Example
The following example shows how the user can retrieve all the Parameter Relationships defined on a
model.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
allParameterRelationships = model.GetParameterRelationships()
enabledParameterRelationships = model.GetParameterRelationships(Enabled="True")
disabledParameterRelationships = model.GetParameterRelationships(Enabled="False")
GetParameters
Get the DataReferences of the InputParameter and OutputParameter of the model. If the optional argu-
ment InputParameters is not specified, the query returns all parameters. If it is specified and True, the
query returns only input parameters. If it is False, the query returns only output parameters.
Type DataReferenceSet
Optional Arguments
InputParameters If True, the query returns only input parameters. If False, the query returns only output
parameters. If the argument is ommitted, the query returns all parameters.
Type bool
Example
The following example shows how the user can get the parameters of a model.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
parameters = dOEModel1.GetParameters()
GetParametricTable
Get the DataReference of ParametricTable. An exception is thrown if the entity is not found. Names of
the tables generated internally are: "DesignPoints", "CorrelationMatrix", "CorrelationScatter", "MinDesign-
Points", "MaxDesignPoints", "ResponsePoints", "DeterminationMatrix".
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 119
Design Exploration
Required Arguments
Type string
Example
The following example shows how the user can get a ParametricTable to add a new row and set values.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
parametricTable = dOEModel1.GetParametricTable(Name="DesignPoints")
parametricTable.AddRow()
parametricTable.SetCellValue(RowIndex=9,ColumnIndex=0,Value="2.1")
SetVariationReferencePoint
Sets a point as the reference to calculate the variation of the parameters in each of the candidate and
custom candidate points of the container. The variation is calculated by the command and can be re-
trieved for each parameter of each point.
Required Arguments
Type DataReference
Optional Arguments
Type OutputSource
Example
The following example shows how to set a custom candidate point as the reference and how to retrieve
the calculated variation on the parameters of a second candidate point.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
customCandidatePoint = model.GetCustomCandidatePoint(Name="CustomCandidatePoint")
model.SetVariationReferencePoint(Point=customCandidatePoint, Source="Simulation")
bestCandidate = model.GetCandidatePoint(Name="CandidatePoint")
variationOfOutputsAsDecimals = bestCandidate.GetOutputValues(Source="Simulation", ValueType="VariationToRef
VerifyPoints
Verify the CandidatePoint entities by performing a design point update to generate Simulation output
values, so that they can be compared to the ResponseSurface output values. This command has no effect
if the optimization model is used as part of a Direct Optimization system.
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
120 of ANSYS, Inc. and its subsidiaries and affiliates.
Type List<DataReference>
Optional Arguments
PullFromCacheOnly If True, the command attempts to pull output values from the design point cache
but does not trigger any design point update.
Type bool
Example
The following example shows how the user can verify all the candidate points generated by the optimization
model and extract the existing output parameter values from the first candidate point.
system1 = GetSystem(Name="RSO")
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
candidatePoints = model.GetCandidatePoints()
model.VerifyPoints(Points=candidatePoints)
responseSurfaceValues = candidatePoints[0].GetOutputValues(Source="ResponseSurface")
verifiedValues = candidatePoints[0].GetOutputValues(Source="Simulation")
OutputParameter
Output parameter entity for DesignXplorer.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IgnoreForFiltering
Determines whether the parameter filtering is not applicable to the output parameter in the correlation
context.
Type bool
Read Only No
InheritFromModelSettings
Determines whether the Maximum Predicted Relative Error defined at the Model level is applicable to
the output parameter.
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 121
Design Exploration
LowerBound
Minimum value extracted from existing design points and/or sample sets.
Type double
MaxPredictedRelativeError
Maximum Relative Error targeted for an output parameter when refining with the Kriging algorithm.
This is the maximum predicted relative error that is acceptable for the selected output parameter.
Type double
Read Only No
PredictedRelativeError
Current value of the Predicted Relative Error when refining with the Kriging algorithm
Type double
TransformationType
Transformation Type
Type TransformationType
Read Only No
Units
Units
Type string
UpperBound
Maximum value extracted from existing design points and/or sample sets.
Type double
Methods
CreateOptimizationCriterion
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
122 of ANSYS, Inc. and its subsidiaries and affiliates.
Type DataReference
Required Arguments
Type DataReference
Example
The following example shows how to create an OptimizationCriterion entity.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
parameter1 = model.GetParameter(Name="P1")
optimizationCriterion = parameter1.CreateOptimizationCriterion()
GetOptimizationCriterion
Get the DataReference of the OptimizationCriterion associated with a Parameter. An exception is thrown
if the entity is not found.
Type DataReference
Required Arguments
Type DataReference
Example
The following example shows how the user can get a OptimizationCriterion to change one of its properties.
system1 = GetSystem(Name="RSO")
optimization1 = system1.GetContainer(ComponentName="Optimization")
optimizationModel1 = optimization1.GetModel()
parameter3 = optimizationModel1.GetParameter(Name="P3")
optimizationCriterion = parameter3.GetOptimizationCriterion()
optimizationCriterion.ObjectiveType = "eGT_MinimumPossible"
GetParameterStatistics
Type DataReference
Example
The following example shows how the user can get a ParameterStatistics entity and examine its Mean
property.
system1 = GetSystem(Name="SSA")
sixSigmaAnalysis1 = system1.GetContainer(ComponentName="Six Sigma Analysis")
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 123
Design Exploration
sixSigmaModel1 = sixSigmaAnalysis1.GetModel()
parameter4 = sixSigmaModel1.GetParameter(Name="P4")
parameterStatistics1 = parameter4.GetParameterStatistics()
mean = parameterStatistics1.Mean
ParameterRelationship
Entity which manages the calculated Statistics of a parameter for a Six-Sigma Component
Properties
Enabled
Type bool
Read Only No
ErrorMessage
Type string
LeftExpression
Type string
Read Only No
LeftExpressionQuantityName
Type string
Read Only No
LeftExpressionValue
Type string
RelationshipType
Type ParameterRelationshipType
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
124 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
RightExpression
Type string
Read Only No
RightExpressionQuantityName
Type string
Read Only No
RightExpressionValue
Type string
Methods
DuplicateParameterRelationship
Type DataReference
Optional Arguments
TargetModel The model on which the Parameter Relationship is created. If this parameter is not set, the
model of the source Parameter Relationship is used.
Type DataReference
Example
The following example shows how to duplicate a Parameter Relationship.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
pr1 = model.GetParameterRelationship(Name="ParameterRelationShip")
pr2 = pr1.DuplicateParameterRelationship()
container = system1.GetContainer(ComponentName="Optimization 1")
model2 = container.GetModel()
pr3 = pr1.DuplicateParameterRelationship(TargetModel = model2)
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 125
Design Exploration
GetChart
Type DataReference
Example
The following example shows how the user can get a ParameterRelationshipChart to export its data as
.csv file.
system1 = GetSystem(Name="RSO")
optimization1 = system1.GetContainer(ComponentName="Optimization")
optimizationModel1 = optimization1.GetModel()
parameterRelationship1 = optimizationModel1.GetParameterRelationship(Name="ParameterRelationship")
chart1 = parameterRelationship1.GetChart()
Parameters.ExportData(Data=chart1,FileName="E:/Temp/Relationship.csv")
ParameterRelationshipChart
The data entity which describes a ParameterRelationship chart. It allows you to visualize how parameter
relationship evolves during the optimization process, depending on the optimizer.
Properties
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
126 of ANSYS, Inc. and its subsidiaries and affiliates.
ScreeningOptimization
Entity which performs and manages the DesignXplorer Optimization Method Component
Properties
Converged
Convergence state
Type bool
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
MaximumNumberOfPermutations
Type int
MaxNumCandidates
Type int
Read Only No
NumberOfEvaluations
Number of Evaluations
Type int
NumberOfFailures
Number of Failures
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 127
Design Exploration
NumberOfSamples
Number of Samples
Type int
Read Only No
NumCandidates
Number of Candidates
Type int
SampleSetSize
Type int
DX Evaluation Container
This container holds data for an instance of the Evaluation.
Data Entities
CandidatePoint
The CandidatePoint data entity is a candidate point automatically generated by an optimization.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Methods
CanUpdate
Returns true if the entity can be updated to produce the specific source of output values. As an example,
the query will return false for Source=ResponseSurface if the candidate point was generated by a Direct
Optimization system.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
128 of ANSYS, Inc. and its subsidiaries and affiliates.
Return Results of the query telling if the Point entity can be updated to produce
the specified source of output values.
Type bool
Optional Arguments
Type OutputSource
Example
The following example shows how to check if a CandidatePoint entity can be updated and how to update
it to obtain the Simulation output values.
system1 = GetSystem(Name="RSO")
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
candidatePoint = model.GetCandidatePoint(Name="CandidatePoint 1")
if candidatePoint.CanUpdate(Source="Simulation"):
candidatePoint.Update(Source="Simulation")
GetInputValues
Get the values of the input parameters. Depending on the parameter definition, each value can be a
Quantity, a real, a string or an integer.
Optional Arguments
Type ParameterValueType
Example
The following example shows how to retrieve a candidate point and then extract its input parameter values.
system1 = GetSystem(Name="DOP")
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
candidatePoint = model.GetCandidatePoint(Name="CandidatePoint 1")
dictInputValues = candidatePoint.GetInputValues()
GetOutputValues
Get the values of the output parameters for the specified source of output values.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 129
Design Exploration
Optional Arguments
Type OutputSource
Type ParameterValueType
Example
The following example shows how to retrieve a candidate point and then extract its output parameter
values.
system1 = GetSystem(Name="DOP")
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
candidatePoint = model.GetCandidatePoint(Name="CandidatePoint 1")
responseSurfaceOutputValues = candidatePoint.GetOutputValues(Source="ResponseSurface")
simulationOutputValues = candidatePoint.GetOutputValues(Source="Simulation")
GetState
Returns the state of the entity for the specified source of output values. A different state is available
for each source of output values.
Type UpdatableEntityState
Optional Arguments
Type OutputSource
Example
The following example shows how to check the state of the Simulation's source of the output values of a
CandidatePoint entity.
system1 = GetSystem(Name="RSO")
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
candidatePoint = model.GetCandidatePoint(Name="CandidatePoint 1")
state = candidatePoint.GetState(Source="Simulation")
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
130 of ANSYS, Inc. and its subsidiaries and affiliates.
GetValue
Get the value for a given parameter and, if the parameter is an output parameter, a given source of
output values. Depending on the parameter definition, each value can be a Quantity, a real, a string or
an integer.
Type Object
Required Arguments
Type DataReference
Optional Arguments
Source If Parameter is an output parameter, the source of the output value to return.
Type OutputSource
Type ParameterValueType
Example
The following example shows how to retrieve a candidate point generated by the optimization model,
and then extract selected parameter values.
system1 = GetSystem(Name="DOP")
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
candidatePoint = model.GetCandidatePoint(Name="CandidatePoint 1")
inputParam1 = model.GetParameter(Name="P1")
parameterValue1 = candidatePoint.GetValue(Parameter=inputParam1)
outputParam4 = model.GetParameter(Name="P4")
parameterValue2 = candidatePoint.GetValue(Parameter=outputParam4, Source="Simulation")
print parameterValue2.Value
GetValues
Get the values of all input parameters and the values of all output parameters for the specified source
of output values. Depending on the parameter definition, each value can be a Quantity, a real, a string
or an integer.
Optional Arguments
Source For output parameters, the source of the output values to return.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 131
Design Exploration
Type OutputSource
Type ParameterValueType
Example
The following example shows how to retrieve a candidate point and then extract all of its parameter values.
system1 = GetSystem(Name="DOP")
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
candidatePoint = model.GetCandidatePoint(Name="CandidatePoint 1")
parameterValues = candidatePoint.GetValues(Source="Simulation")
Update
Updates a point entity to provide the output parameter values of the requested source. If the requested
source is ResponseSurface, the output values are generated by evaluating the response surface model,
if available. If the requested source is Simulation, the output values are generated by triggering a
DesignPoint update. This command applies to CandidatePoint and CustomCandidatePoint entities.
Optional Arguments
Source Source of output values to produce. The update method depends on this parameter.
Type OutputSource
Example
The following example shows how to update an existing candidate point to obtain Simulation output
values.
system1 = GetSystem(Name="RSO")
container = system1.GetContainer(ComponentName="Optimization")
candidate1 = container.GetCandidatePoint(Name="CandidatePoint 1")
outputValues = candidate1.Update(Source="Simulation")
CandidatesChart
The data entity which describes the Candidate Points chart. The Candidate Points chart allows you to
view different kinds of information about candidate points. It allows you specify one or more parameters
for which you want to display candidates data. Color-coding and a legend make it easy to view and
interpret samples, candidate points identified by the optimization, candidates inserted manually, and
candidates for which output values have been verified by a design point update. You can specify the
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
132 of ANSYS, Inc. and its subsidiaries and affiliates.
chart’s properties to control the visibility of each axis, feasible samples, candidates you’ve inserted
manually, and candidates with verified output values.
Properties
CandidatesColoringMethod
Type CandidatesColoringMethods
Read Only No
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Type bool
Read Only No
ShowCandidates
Type bool
Read Only No
ShowCustomCandidates
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 133
Design Exploration
ShowSamples
Type bool
Read Only No
ShowStartingPoint
Type bool
Read Only No
ShowVerifiedCandidates
Type bool
Read Only No
Methods
EnableParameters
Required Arguments
Type bool
Optional Arguments
Type List<DataReference>
Example
The following example shows how to disable two parameters, and then how to enable all parameters by
omitting the Parameters optional parameter. This example uses a Correlation Matrix chart. The method
also applies for other types of charts like LocalSensitivity, SpiderChart, etc.
container = system1.GetContainer(ComponentName="Correlation")
model = container.GetModel()
param1 = model.GetParam(Name="P1")
param4 = model.GetParam(Name="P4")
chart = model.GetChart(Name="Correlation Matrix 1")
chart.EnableParameters( Parameters=[param1;param4], IsEnabled=false )
chart.EnableParameters()
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
134 of ANSYS, Inc. and its subsidiaries and affiliates.
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
ConvergenceCriteriaChart
The data entity which describes an ConvergenceCriteria chart. It allows you to visualize how convergence
evolves during the optimization process, depending on the optimizer.
Properties
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 135
Design Exploration
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Type bool
Read Only No
Methods
EnableVariable
Enable or disable a variable in a chart. This command is currently limited to the CorrelationScatter chart,
where LinearTrendLine_Variable and QuadraticTrendLine_Variable are the two eligible variables, and
the ConvergenceCriteria chart.
Required Arguments
Type bool
Optional Arguments
Type DataReference
Example
The following example shows how to disable and enable a variable in a CorrelationScatter or Conver-
genceCriteria chart.
container = system1.GetContainer(ComponentName="Correlation")
model = container.GetModel()
chart = model.GetChart(Name="CorrelationScatter 1")
chart.EnableVariable( Variable=chart.LinearTrendLine_Variable, IsEnabled=false)
chart.EnableParameter( Variable=chart.QuadraticTrendLine_Variable )
EnableVariables
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
136 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type bool
Optional Arguments
Type List<DataReference>
Example
The following example shows how to disable two variables, and then how to enable all variables by
omitting the Parameters optional variable. This example uses a CorrelationScatter chart. The method also
applies for ConvergenceCriteria Chart.
container = system1.GetContainer(ComponentName="Correlation")
model = container.GetModel()
var1 = Graphics.GetVariableXY(Name="MyName")
chart = model.GetChart(Name="CorrelationScatter 1")
chart.EnableVariables( Variables = [var1;var2], IsEnabled=false)
chart.EnableVariable()
ConvergenceCurvesChart
The data entity which describes a Convergence Curves chart. It allows you to visualize the convergence
of an algorithm: with the steps of the convergence as X-axis and the criteria of the convergence as Y-
axis. This chart can display several curves based on the same steps of convergence.
Properties
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 137
Design Exploration
Read Only No
Methods
EnableParameters
Required Arguments
Type bool
Optional Arguments
Type List<DataReference>
Example
The following example shows how to disable two parameters, and then how to enable all parameters by
omitting the Parameters optional parameter. This example uses a Correlation Matrix chart. The method
also applies for other types of charts like LocalSensitivity, SpiderChart, etc.
container = system1.GetContainer(ComponentName="Correlation")
model = container.GetModel()
param1 = model.GetParam(Name="P1")
param4 = model.GetParam(Name="P4")
chart = model.GetChart(Name="Correlation Matrix 1")
chart.EnableParameters( Parameters=[param1;param4], IsEnabled=false )
chart.EnableParameters()
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
138 of ANSYS, Inc. and its subsidiaries and affiliates.
container = system1.GetContainer(ComponentName="Design of Experiment")
model = container.GetModel()
parametricTable = model.GetParametricTable(Name="DesignPoints")
parametricTable.ExportData(FileName="doe.csv")
chart = model.GetChart(Name="DesignPointsParallel")
chart.ExportData(FileName="doe.csv", AppendMode=True)
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
CorrelationMatrixChart
The data entity which describes a Correlation Matrix chart. This matrix allows the user to visualize how
the input and output parameters are coupled.
Properties
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 139
Design Exploration
Methods
EnableParameters
Required Arguments
Type bool
Optional Arguments
Type List<DataReference>
Example
The following example shows how to disable two parameters, and then how to enable all parameters by
omitting the Parameters optional parameter. This example uses a Correlation Matrix chart. The method
also applies for other types of charts like LocalSensitivity, SpiderChart, etc.
container = system1.GetContainer(ComponentName="Correlation")
model = container.GetModel()
param1 = model.GetParam(Name="P1")
param4 = model.GetParam(Name="P4")
chart = model.GetChart(Name="Correlation Matrix 1")
chart.EnableParameters( Parameters=[param1;param4], IsEnabled=false )
chart.EnableParameters()
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
140 of ANSYS, Inc. and its subsidiaries and affiliates.
parametricTable = model.GetParametricTable(Name="DesignPoints")
parametricTable.ExportData(FileName="doe.csv")
chart = model.GetChart(Name="DesignPointsParallel")
chart.ExportData(FileName="doe.csv", AppendMode=True)
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
CorrelationScatterChart
The data entity which describes a Correlation Scatter chart. This scatter chart allows the user to visualize
the samples used to compute the correlation for the selected parameter pair, as well as the linear and
the quadratic trend lines.
Properties
Axes
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 141
Design Exploration
IsUpToDate
Type bool
Read Only No
LinearTrendLine_Variable
Type DataReference
Read Only No
QuadraticTrendLine_Variable
Type DataReference
Read Only No
Methods
AssociateParameterToAxis
Associates a Parameter to the specified axis of the chart. The Parameter argument can be omitted which
means that the axis is not set.
Required Arguments
Type ChartAxes
Optional Arguments
Type DataReference
Example
The following example shows how to assign parameters to the axes of a DesignPointsCurves chart.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
142 of ANSYS, Inc. and its subsidiaries and affiliates.
EnableVariable
Enable or disable a variable in a chart. This command is currently limited to the CorrelationScatter chart,
where LinearTrendLine_Variable and QuadraticTrendLine_Variable are the two eligible variables, and
the ConvergenceCriteria chart.
Required Arguments
Type bool
Optional Arguments
Type DataReference
Example
The following example shows how to disable and enable a variable in a CorrelationScatter or Conver-
genceCriteria chart.
container = system1.GetContainer(ComponentName="Correlation")
model = container.GetModel()
chart = model.GetChart(Name="CorrelationScatter 1")
chart.EnableVariable( Variable=chart.LinearTrendLine_Variable, IsEnabled=false)
chart.EnableParameter( Variable=chart.QuadraticTrendLine_Variable )
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 143
Design Exploration
chart.ExportData(FileName="doe.csv", AppendMode=True)
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
CustomCandidatePoint
The CustomCandidatePoint data entity is a candidate point created and edited by the user for compar-
ison with the results of an optimization.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Methods
CanUpdate
Returns true if the entity can be updated to produce the specific source of output values. As an example,
the query will return false for Source=ResponseSurface if the candidate point was generated by a Direct
Optimization system.
Return Results of the query telling if the Point entity can be updated to produce
the specified source of output values.
Type bool
Optional Arguments
Type OutputSource
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
144 of ANSYS, Inc. and its subsidiaries and affiliates.
Example
The following example shows how to check if a CandidatePoint entity can be updated and how to update
it to obtain the Simulation output values.
system1 = GetSystem(Name="RSO")
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
candidatePoint = model.GetCandidatePoint(Name="CandidatePoint 1")
if candidatePoint.CanUpdate(Source="Simulation"):
candidatePoint.Update(Source="Simulation")
GetInputValues
Get the values of the input parameters. Depending on the parameter definition, each value can be a
Quantity, a real, a string or an integer.
Optional Arguments
Type ParameterValueType
Example
The following example shows how to retrieve a candidate point and then extract its input parameter values.
system1 = GetSystem(Name="DOP")
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
candidatePoint = model.GetCandidatePoint(Name="CandidatePoint 1")
dictInputValues = candidatePoint.GetInputValues()
GetOutputValues
Get the values of the output parameters for the specified source of output values.
Optional Arguments
Type OutputSource
Type ParameterValueType
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 145
Design Exploration
Example
The following example shows how to retrieve a candidate point and then extract its output parameter
values.
system1 = GetSystem(Name="DOP")
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
candidatePoint = model.GetCandidatePoint(Name="CandidatePoint 1")
responseSurfaceOutputValues = candidatePoint.GetOutputValues(Source="ResponseSurface")
simulationOutputValues = candidatePoint.GetOutputValues(Source="Simulation")
GetState
Returns the state of the entity for the specified source of output values. A different state is available
for each source of output values.
Type UpdatableEntityState
Optional Arguments
Type OutputSource
Example
The following example shows how to check the state of the Simulation's source of the output values of a
CandidatePoint entity.
system1 = GetSystem(Name="RSO")
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
candidatePoint = model.GetCandidatePoint(Name="CandidatePoint 1")
state = candidatePoint.GetState(Source="Simulation")
GetValue
Get the value for a given parameter and, if the parameter is an output parameter, a given source of
output values. Depending on the parameter definition, each value can be a Quantity, a real, a string or
an integer.
Type Object
Required Arguments
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
146 of ANSYS, Inc. and its subsidiaries and affiliates.
Optional Arguments
Source If Parameter is an output parameter, the source of the output value to return.
Type OutputSource
Type ParameterValueType
Example
The following example shows how to retrieve a candidate point generated by the optimization model,
and then extract selected parameter values.
system1 = GetSystem(Name="DOP")
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
candidatePoint = model.GetCandidatePoint(Name="CandidatePoint 1")
inputParam1 = model.GetParameter(Name="P1")
parameterValue1 = candidatePoint.GetValue(Parameter=inputParam1)
outputParam4 = model.GetParameter(Name="P4")
parameterValue2 = candidatePoint.GetValue(Parameter=outputParam4, Source="Simulation")
print parameterValue2.Value
GetValues
Get the values of all input parameters and the values of all output parameters for the specified source
of output values. Depending on the parameter definition, each value can be a Quantity, a real, a string
or an integer.
Optional Arguments
Source For output parameters, the source of the output values to return.
Type OutputSource
Type ParameterValueType
Example
The following example shows how to retrieve a candidate point and then extract all of its parameter values.
system1 = GetSystem(Name="DOP")
container = system1.GetContainer(ComponentName="Optimization")
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 147
Design Exploration
model = container.GetModel()
candidatePoint = model.GetCandidatePoint(Name="CandidatePoint 1")
parameterValues = candidatePoint.GetValues(Source="Simulation")
SetParameter
Required Arguments
Type Object
Type DataReference
Example
The following example shows how to set the expression for one parameter in an existing custom candidate
point.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
customCandidatePoint = model.GetCustomCandidatePoint(Name="CustomCandidatePoint 1")
inputParameter1 = model.GetParameter(Name="P1")
customCandidatePoint.SetParameter(Parameter=inputParameter1, Expression="2.01")
inputParameter2 = model.GetParameter(Name="P2")
customCandidatePoint.SetParameter(Parameter=inputParameter2, Expression="2.1 [m]")
SetParameters
Sets the expression of several parameters in a CustomCandidatePoint entity. In the context of a response
surface based optimization, the output values are updated from the response surface.
Required Arguments
Example
The following example shows how to set the expression for several parameters in an existing custom
candidate point.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
customCandidatePoint = model.GetCustomCandidatePoint(Name="CustomCandidatePoint 1")
inputParameter1 = model.GetParameter(Name="P1")
customCandidatePoint.SetParameter(Parameter=inputParameter1, Expression="2.01")
inputParameter2 = model.GetParameter(Name="P2")
customCandidatePoint.SetParameters(Expressions={inputParameter1: "2.01", inputParameter2: "15.5 [m]"})
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
148 of ANSYS, Inc. and its subsidiaries and affiliates.
Update
Updates a point entity to provide the output parameter values of the requested source. If the requested
source is ResponseSurface, the output values are generated by evaluating the response surface model,
if available. If the requested source is Simulation, the output values are generated by triggering a
DesignPoint update. This command applies to CandidatePoint and CustomCandidatePoint entities.
Optional Arguments
Source Source of output values to produce. The update method depends on this parameter.
Type OutputSource
Example
The following example shows how to update an existing candidate point to obtain Simulation output
values.
system1 = GetSystem(Name="RSO")
container = system1.GetContainer(ComponentName="Optimization")
candidate1 = container.GetCandidatePoint(Name="CandidatePoint 1")
outputValues = candidate1.Update(Source="Simulation")
DesignPointsCurvesChart
The data entity which describes a "Design Points vs. Parameters" chart. It provides a 2D chart with two
Y axes and two X axes to display Design Points versus Parameter and/or Parameter versus Parameter
curves.
Properties
Axes
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 149
Design Exploration
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Type bool
Read Only No
Methods
AssociateParameterToAxis
Associates a Parameter to the specified axis of the chart. The Parameter argument can be omitted which
means that the axis is not set.
Required Arguments
Type ChartAxes
Optional Arguments
Type DataReference
Example
The following example shows how to assign parameters to the axes of a DesignPointsCurves chart.
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
150 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
DesignPointsParallelChart
The data entity which describes a Parameters Parallel chart. It allows you to visualize the DOE matrix
using parallel Y axes to represent all of the input and output parameters on the same 2D representation,
whatever the number of parameters.
Properties
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 151
Design Exploration
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Type bool
Read Only No
Methods
EnableParameters
Required Arguments
Type bool
Optional Arguments
Type List<DataReference>
Example
The following example shows how to disable two parameters, and then how to enable all parameters by
omitting the Parameters optional parameter. This example uses a Correlation Matrix chart. The method
also applies for other types of charts like LocalSensitivity, SpiderChart, etc.
container = system1.GetContainer(ComponentName="Correlation")
model = container.GetModel()
param1 = model.GetParam(Name="P1")
param4 = model.GetParam(Name="P4")
chart = model.GetChart(Name="Correlation Matrix 1")
chart.EnableParameters( Parameters=[param1;param4], IsEnabled=false )
chart.EnableParameters()
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
152 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
DeterminationHistogramChart
The data entity which describes the Determination Histogram chart. It allows you to visualize the coef-
ficient of determination (linear or quadratic) of each input for an output parameter.
Properties
Axes
DeterminationType
Type DeterminationCoefficientChartModes
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 153
Design Exploration
Read Only No
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
FullModelR2
Type double
IsUpToDate
Type bool
Read Only No
ThresholdR2
Threshold value of R2: the chart displays only input parameters with a coefficient of determination is
greater than thus threshold.
Type double
Read Only No
Methods
AssociateParameterToAxis
Associates a Parameter to the specified axis of the chart. The Parameter argument can be omitted which
means that the axis is not set.
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
154 of ANSYS, Inc. and its subsidiaries and affiliates.
Type ChartAxes
Optional Arguments
Type DataReference
Example
The following example shows how to assign parameters to the axes of a DesignPointsCurves chart.
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 155
Design Exploration
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
DeterminationMatrixChart
The data entity which describes a Determination Matrix chart. This matrix allows you to visualize how
the input and output parameters are coupled in a quadratic regression.
Properties
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Type bool
Read Only No
Methods
EnableParameters
Required Arguments
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
156 of ANSYS, Inc. and its subsidiaries and affiliates.
Optional Arguments
Type List<DataReference>
Example
The following example shows how to disable two parameters, and then how to enable all parameters by
omitting the Parameters optional parameter. This example uses a Correlation Matrix chart. The method
also applies for other types of charts like LocalSensitivity, SpiderChart, etc.
container = system1.GetContainer(ComponentName="Correlation")
model = container.GetModel()
param1 = model.GetParam(Name="P1")
param4 = model.GetParam(Name="P4")
chart = model.GetChart(Name="Correlation Matrix 1")
chart.EnableParameters( Parameters=[param1;param4], IsEnabled=false )
chart.EnableParameters()
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 157
Design Exploration
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
DistributionChart
The entity which describes a parameter's Distribution chart. This chart is always associated with an un-
certainty parameter and allows you to visualize the statistical distribution defined or calculated for this
parameter.
Properties
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Type bool
Read Only No
Parameter
Type DataReference
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
158 of ANSYS, Inc. and its subsidiaries and affiliates.
Methods
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
GoodnessOfFit
Entity which manages the Goodness Of Fit Information of a Response Surface for an Output Parameter
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 159
Design Exploration
Properties
DiscreteExpressions
A Dictionary holding the values of all discrete input. Note: Discrete parameter values are level values,
not indices.
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Type bool
Read Only No
Methods
CreateAdvancedReport
For the standard response surface only (Full second order Polynomials), creates an Advanced Goodness
of Fit report for any direct output parameter.
Return A string which contains the generated Advanced Goodness of Fit report.
Type string
Required Arguments
Type DataReference
Optional Arguments
Type bool
Example
The following example shows how to create an Advanced Goodness of Fit report.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
160 of ANSYS, Inc. and its subsidiaries and affiliates.
container = system1.GetContainer(ComponentName="Response Surface")
model = container.GetModel()
gof1 = model.GetGoodnessOfFit(Name="GoodnessOfFit")
outputParameter1 = model.GetParameter(Name="P4")
report1 = gof1.CreateAdvancedReport(Parameter=outputParameter1)
SetDiscreteParameter
Sets the Expression of a discrete input parameter in a GoodnessOfFit and updates the associated output
parameter values. The chart entities depending on the GoodnessOfFit are updated as well.
Required Arguments
Type DataReference
Type string
Example
The following example shows how to set the expression for one discrete parameter in an existing Good-
nessOfFit.
Update
Updates the goodness of fit and the results which depend on it. If the goodness of fit is already uptodate,
nothing is done unless the Force flag is set to True.
Optional Arguments
Force Set to true if the update operation of the goodness of fit point is required even if it's already uptodate.
Type bool
Example
The following example shows how to update an existing GoodnessOfFit.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 161
Design Exploration
HistoryChart
The data entity which describes an History chart. It allows you to visualize how a parameter evolves
during the optimization process, point by point or iteration by iteration depending on the optimizer.
Defined target and constraints values are also represented.
Properties
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Type bool
Read Only No
Methods
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
162 of ANSYS, Inc. and its subsidiaries and affiliates.
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
LocalSensitivityChart
The data entity which describes a Local Sensitivity chart. It allows you to visualize the impact that
changing each input parameter independently has on the output parameters. A Local Sensitivity chart
accepts two different graphical modes -BarChart and PieChart- and supports enabling/disabling input
and/or output parameters. A Local Sensitivity depends on a Response Point which serves as a reference
point for sensitivity computation.
Properties
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 163
Design Exploration
IsUpToDate
Type bool
Read Only No
Mode
Specifies the graphical representation used to render local sensitivity data. It can be either BarChart or
PieChart.
Type SensitivityChartModes
Read Only No
Methods
EnableParameters
Required Arguments
Type bool
Optional Arguments
Type List<DataReference>
Example
The following example shows how to disable two parameters, and then how to enable all parameters by
omitting the Parameters optional parameter. This example uses a Correlation Matrix chart. The method
also applies for other types of charts like LocalSensitivity, SpiderChart, etc.
container = system1.GetContainer(ComponentName="Correlation")
model = container.GetModel()
param1 = model.GetParam(Name="P1")
param4 = model.GetParam(Name="P4")
chart = model.GetChart(Name="Correlation Matrix 1")
chart.EnableParameters( Parameters=[param1;param4], IsEnabled=false )
chart.EnableParameters()
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
164 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
LocalSensitivityCurvesChart
The data entity which describes a Local Sensitivity Curves chart. It allows you to visualize the impact
that changing each input parameter independently has on the output parameters. It allows you to
visualize one or two output parameters at the same time. A Local Sensitivity Curves chart supports en-
abling and disabling input parameters. A Local Sensitivity Curves depends on a Response Point which
serves as a reference point for computation of the sensitivity.
Properties
Axes
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 165
Design Exploration
AxesRangeMode
Axes range for output parameters controls if the range is determined from the chart's data or the min-
max of outputs.
Type AxesRangeModes
Read Only No
ChartResolution
Chart resolution.
Type int
Read Only No
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Type bool
Read Only No
Methods
AssociateParameterToAxis
Associates a Parameter to the specified axis of the chart. The Parameter argument can be omitted which
means that the axis is not set.
Required Arguments
Type ChartAxes
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
166 of ANSYS, Inc. and its subsidiaries and affiliates.
Optional Arguments
Type DataReference
Example
The following example shows how to assign parameters to the axes of a DesignPointsCurves chart.
EnableParameters
Required Arguments
Type bool
Optional Arguments
Type List<DataReference>
Example
The following example shows how to disable two parameters, and then how to enable all parameters by
omitting the Parameters optional parameter. This example uses a Correlation Matrix chart. The method
also applies for other types of charts like LocalSensitivity, SpiderChart, etc.
container = system1.GetContainer(ComponentName="Correlation")
model = container.GetModel()
param1 = model.GetParam(Name="P1")
param4 = model.GetParam(Name="P4")
chart = model.GetChart(Name="Correlation Matrix 1")
chart.EnableParameters( Parameters=[param1;param4], IsEnabled=false )
chart.EnableParameters()
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 167
Design Exploration
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
ParameterStatistics
Entity which manages the calculated Statistics of a parameter for a Six-Sigma Component
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Entropy
Type double
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
168 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
InvProbabilityTable
Type DataReference
Read Only No
IsUpToDate
Type bool
Read Only No
Kurtosis
Kurtosis value
Type double
Read Only No
Mean
Mean value
Type double
Read Only No
Parameter
DataReference of the input or output parameter associated with this statistics entity.
Type DataReference
Read Only No
ProbabilityTable
Type DataReference
Read Only No
SigmaMaximum
Type double
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 169
Design Exploration
Read Only No
SigmaMinimum
Type double
Read Only No
SignalNoiseLarge
Type double
Read Only No
SignalNoiseNominal
Type double
Read Only No
SignalNoiseSmall
Type double
Read Only No
Skewness
Skewness value
Type double
Read Only No
StandardDeviation
Type double
Read Only No
StatisticsChart
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
170 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
TableType
Type SixSigmaTableTypes
Read Only No
ParametricTable
ParametricTable entity used to encapsulate most of the evaluation results in a convenient 2D matrix
format.
Properties
DimCol
Number of columns.
Type int
DimRow
Number of rows.
Type int
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Methods
AddRow
Optional Arguments
Type List<string>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 171
Design Exploration
Example
The following example shows how to make a DOE editable, to retrieve the table of design points and add
a new row to it.
DeleteRows
Required Arguments
Type List<int>
Example
The following example shows how to delete rows from the DOEmatrix in a custom DOE context.
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
172 of ANSYS, Inc. and its subsidiaries and affiliates.
chart.ExportData(FileName="doe.csv", AppendMode=True)
GetCellValue
Get the Value of a ParametricTable's cell. An exception is thrown if the entity is not found.
Type string
Required Arguments
Type int
Type int
Example
The following example shows how the user can get the value of the ParametricTable's cell [0,3].
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
parametricTable = dOEModel1.GetParametricTable(Name="DesignPoints")
cellValue = parametricTable.GetCellValue(RowIndex=0,ColumnIndex=3)
GetRowUpdateOrder
Get the Update Order value of a row in a ParametricTable. An exception is thrown if the entity is not
found.
Type double
Required Arguments
Type int
Example
The following example shows how to get the Update Order value of row [3] in the ParametricTable.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
parametricTable = dOEModel1.GetParametricTable(Name="DesignPoints")
updateOrderValue = parametricTable.GetRowUpdateOrder(RowIndex=3)
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 173
Design Exploration
GetRowValues
Get the Values of a ParametricTable's row. An exception is thrown if the entity is not found.
Type List<string>
Required Arguments
Type int
Example
The following example shows how the user can get the values of the 4th ParametricTable's row.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
parametricTable = dOEModel1.GetParametricTable(Name="DesignPoints")
rowValues = parametricTable.GetRowValues(RowIndex=3)
OptimizeUpdateOrder
Optimizes the Update Order of Design Points to minimize the number of modifications between two
consecutive Design Points. This command applies to the "DesignPoints" ParametricTable of a Design
of Experiments model or of a Response Surface in a manual refinement context. It also applies to the
"VerificationPoints" ParametricTable of a Response Surface model.
Example
The following example shows how to optimize the update order of the DesignPoints table in a Design of
Experiments model.
SetCellValue
Sets the value of a ParametricTable cell. If the table is read-only, the command has no effect.
Required Arguments
Type int
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
174 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Example
The following example shows how to set the value of the DesignPoints table in a custom DOE context.
SetOutputValuesEditable
Sets the values of the output parameters as Editable (Editable=True) or Calculated (Editable=False) for
the complete table, or a set of rows specified by the RowIndices argument. This command is applicable
to the "DesignPoints" ParametricTable of a Design of Experiments model in a custom context (DOEType
is "eDOETYPE_USER" or "eDOETYPE_CUSTOM_OSFD") or of a Response Surface model in a manual re-
finement context. It also applies to the "VerificationPoints" ParametricTable of a Response Surface
model.
Required Arguments
Editable True to define output values as Editable, or False to mark output values as calculated.
Type bool
Optional Arguments
RowIndices Optional list of row zero-based indices. If this argument is not specified, the command applies
to the complete ParametricTable.
Type List<int>
Example
The following example shows how to switch a DOE model to the custom mode and then set the output
values as editable for the first three design points of the DOE matrix.
SetRowUpdateOrder
Sets the Update Order value for a row in a ParametricTable. If the table doesn't support Update Order
functionality, the command has no effect.
Required Arguments
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 175
Design Exploration
Type double
Example
The following example shows how to set the Update Order value of the DesignPoints table in a Design of
Experiments model.
SetRowValues
Sets the values of a ParametricTable's row. If the table is read-only, the command has no effect.
Required Arguments
Type int
Type List<string>
Example
The following example shows how to set the values of the DesignPoints table in a custom DOE context.
SetUpdateOrderByRow
Sets a value for the UpdateOrder property of all Design Points using sorting settings. This command
applies to the "DesignPoints" ParametricTable of a Design of Experiments model or of a Response Surface
in a manual refinement context. It also applies to the "VerificationPoints" ParametricTable of a Response
Surface model.
Optional Arguments
Type List<string>
Example
The following example shows how to set the update order of the DesignPoints table in a Design of Exper-
iments model. The Design Points are sorted first by their values for the parameter P3 (in ascending order),
and then by their values for the parameter P1 (in descending order).
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
176 of ANSYS, Inc. and its subsidiaries and affiliates.
container = system1.GetContainer(ComponentName="Design of Experiment")
model = container.GetModel()
DOEMatrix = model.GetParametricTable(Name="DesignPoints")
DOEMatrix.SetUpdateOrderByRow(SortBy=["P3:+", "P1:-"])
UpdateRows
Updates the design points held in rows from a ParametricTable entity and the results which depend
on it.
Required Arguments
Type List<int>
Example
The following example shows how to update the design points from the VerificationPoints Table.
PredictedvsObservedScatterChart
The data entity which describes a PredictedvsObserved Scatter chart. This scatter chart allows the user
to visualize the predicted output values versus observed output values for all design points used to
compute the response surface.
Properties
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 177
Design Exploration
Type bool
Read Only No
ShowDesignPoints
Type bool
Read Only No
ShowVerificationPoints
Type bool
Read Only No
Methods
EnableParameters
Required Arguments
Type bool
Optional Arguments
Type List<DataReference>
Example
The following example shows how to disable two parameters, and then how to enable all parameters by
omitting the Parameters optional parameter. This example uses a Correlation Matrix chart. The method
also applies for other types of charts like LocalSensitivity, SpiderChart, etc.
container = system1.GetContainer(ComponentName="Correlation")
model = container.GetModel()
param1 = model.GetParam(Name="P1")
param4 = model.GetParam(Name="P4")
chart = model.GetChart(Name="Correlation Matrix 1")
chart.EnableParameters( Parameters=[param1;param4], IsEnabled=false )
chart.EnableParameters()
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
178 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
ResponseChart
The data entity which describes a Response chart. It allows you to visualize the impact that changing
each input parameter has on the selected output parameter. It has three Modes - 2D, 3D and 2DSlices
- allowing you to vary one or two input parameters at the same time. A Response depends on a Response
Point which serves as a reference point for non-varying input parameters.
Properties
Axes
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 179
Design Exploration
ChartResolutionAlongX
Type int
Read Only No
ChartResolutionAlongY
Type int
Read Only No
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Type bool
Read Only No
Mode
Type ResponseChartModes
Read Only No
NumberOfSlices
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
180 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
ShowDesignPoints
Option to display the design points of the DOE and the refinement points.
Type bool
Read Only No
Methods
AssociateParameterToAxis
Associates a Parameter to the specified axis of the chart. The Parameter argument can be omitted which
means that the axis is not set.
Required Arguments
Type ChartAxes
Optional Arguments
Type DataReference
Example
The following example shows how to assign parameters to the axes of a DesignPointsCurves chart.
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 181
Design Exploration
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
ResponsePoint
The ResponsePoint data entity: a design point for which output values are computed from a Response
Surface.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Expressions
A Dictionary of the input parameter values defining the response point and the corresponding output
parameter values predicted from the response surface. Note that for discrete parameters and continuous
parameters using manufacturable values, the Dictionary contains the value of the level rather than its
index.
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
182 of ANSYS, Inc. and its subsidiaries and affiliates.
Note
Type string
Read Only No
Methods
CreateChart
Creates a Chart entity attached to the Response Point. This chart is updated automatically when the
parameter values of the ResponsePoint change. It is deleted automatically when the ResponsePoint is
deleted. The chart must be updated once after its creation by invoking its Update method. Then changes
to its properties or its parent ResponsePoint will update the chart automatically.
Type DataReference
Required Arguments
ChartType Type of chart to be created. The possible values are "eChartLocalSensitivity", "eChartLocalSens-
itivityCurves", "eChartResponse" and "eChartSpiderResponses"
Type ChartType
Optional Arguments
DisplayText DisplayText of the chart. If not specified, a default name is applied, depending on the value
of ChartType.
Type string
Example
The following example shows how to create a ResponsePoint chart.
DuplicateChart
Duplicates a Chart entity attached to a Response Point. The chart must be updated once after its creation
by invoking its Update method. Then changes to its properties will update the chart automatically.
Type DataReference
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 183
Design Exploration
Type DataReference
Optional Arguments
DisplayText Displayed name of the chart. If not specified, a default name is applied, depending
on the value of ChartType.
Type string
TargetResponsePoint ResponsePoint on which the duplicated chart is created. If this parameter is not
set, the response point of the source chart is used.
Type DataReference
Example
The following example shows how to duplicate a chart.
GetChart
Get the DataReference of a Chart from a ResponsePoint. An exception is thrown if the entity is not
found.
Type DataReference
Required Arguments
Type string
Example
The following example shows how to retrieve an existing Chart from a ResponsePoint.
GetCharts
Type DataReferenceSet
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
184 of ANSYS, Inc. and its subsidiaries and affiliates.
Example
The following example shows how to retrieve all the charts defined for a ResponsePoint.
SetDiscreteParameters
Sets the Expression of several discrete input parameters in a GoodnessOfFit and updates the associated
output parameter values. The chart depending on the GoodnessOfFit is updated as well.
Required Arguments
Expressions Dictionary of the discrete input parameters and their assigned expressions.
Example
The following example shows how to set the expression for several discrete input parameters in an existing
GoodnessOfFit.
SetParameter
Sets the Expression of an input parameter in a ResponsePoint and updates the associated output
parameter values. If there are chart entities depending on the ResponsePoint, they are updated as well.
Required Arguments
Type string
Type DataReference
Example
The following example shows how to set the expression for one parameter in an existing ResponsePoint.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 185
Design Exploration
SetParameters
Sets the Expression of several input parameters in a ResponsePoint and updates the associated output
parameter values. If there are chart entities depending on the ResponsePoint, they are updated as well.
Required Arguments
Example
The following example shows how to set the expression for several input parameters in an existing Respon-
sePoint.
Update
Updates the response point and the results which depend on it. If the reponse point is already uptodate,
nothing is done unless the Force flag is set to True.
Optional Arguments
Force Set to true if the update operation of the response point is required even if it's already uptodate.
Type bool
Example
The following example shows how to update an existing ResponsePoint.
SamplesChart
The data entity which describes the Samples chart. It allows you to explore the samples generated for
an Optimization study by using parallel Y axes to represent all of the input and output parameters on
the same 2D representation, whatever the number of parameters. It can filter the number of visible
Pareto Fronts and supports two Modes: Candidates or Pareto Fronts.
Properties
ColoringMethod
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
186 of ANSYS, Inc. and its subsidiaries and affiliates.
Type ChartColoringMethods
Read Only No
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Type bool
Read Only No
Mode
Type SamplesChartModes
Read Only No
NumberOfParetoFront
Number of Pareto fronts to display. This is used as a filter to display only the most interesting fronts,
given an optimization study.
Type uint
Read Only No
ShowInfeasiblePoints
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 187
Design Exploration
Methods
EnableParameters
Required Arguments
Type bool
Optional Arguments
Type List<DataReference>
Example
The following example shows how to disable two parameters, and then how to enable all parameters by
omitting the Parameters optional parameter. This example uses a Correlation Matrix chart. The method
also applies for other types of charts like LocalSensitivity, SpiderChart, etc.
container = system1.GetContainer(ComponentName="Correlation")
model = container.GetModel()
param1 = model.GetParam(Name="P1")
param4 = model.GetParam(Name="P4")
chart = model.GetChart(Name="Correlation Matrix 1")
chart.EnableParameters( Parameters=[param1;param4], IsEnabled=false )
chart.EnableParameters()
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
188 of ANSYS, Inc. and its subsidiaries and affiliates.
parametricTable = model.GetParametricTable(Name="DesignPoints")
parametricTable.ExportData(FileName="doe.csv")
chart = model.GetChart(Name="DesignPointsParallel")
chart.ExportData(FileName="doe.csv", AppendMode=True)
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
SensitivitiesChart
The data entity which describes a Sensitivities chart. It allows you to visualize the global sensitivities of
each output with respect to the input parameters. A Sensitivities chart has two different graphical modes
-BarChart and PieChart- and supports enabling/disabling input and/or output parameters.
Properties
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 189
Design Exploration
Mode
Specifies the graphical representation used to render local sensitivity data. It can be either BarChart or
PieChart.
Type SensitivityChartModes
Read Only No
Methods
EnableParameters
Required Arguments
Type bool
Optional Arguments
Type List<DataReference>
Example
The following example shows how to disable two parameters, and then how to enable all parameters by
omitting the Parameters optional parameter. This example uses a Correlation Matrix chart. The method
also applies for other types of charts like LocalSensitivity, SpiderChart, etc.
container = system1.GetContainer(ComponentName="Correlation")
model = container.GetModel()
param1 = model.GetParam(Name="P1")
param4 = model.GetParam(Name="P4")
chart = model.GetChart(Name="Correlation Matrix 1")
chart.EnableParameters( Parameters=[param1;param4], IsEnabled=false )
chart.EnableParameters()
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
190 of ANSYS, Inc. and its subsidiaries and affiliates.
Default Value False
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
SpiderChart
The data entity which describes a Spider chart. It allows you to visualize the impact that changing the
input parameters has on all output parameters simultaneously. A Spider chart depends on a Response
Point and shows the same values as its parent Response Point.
Properties
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 191
Design Exploration
IsUpToDate
Type bool
Read Only No
Methods
EnableParameters
Required Arguments
Type bool
Optional Arguments
Type List<DataReference>
Example
The following example shows how to disable two parameters, and then how to enable all parameters by
omitting the Parameters optional parameter. This example uses a Correlation Matrix chart. The method
also applies for other types of charts like LocalSensitivity, SpiderChart, etc.
container = system1.GetContainer(ComponentName="Correlation")
model = container.GetModel()
param1 = model.GetParam(Name="P1")
param4 = model.GetParam(Name="P4")
chart = model.GetChart(Name="Correlation Matrix 1")
chart.EnableParameters( Parameters=[param1;param4], IsEnabled=false )
chart.EnableParameters()
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
192 of ANSYS, Inc. and its subsidiaries and affiliates.
Default Value False
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
StatisticsChart
The StatisticsChart shows the Probability Distribution Function and Cumulative Distribution Function
results of a Six Sigma analysis
Properties
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 193
Design Exploration
Type bool
Read Only No
Methods
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
TradeoffChart
The data entity which describes the Tradeoff chart. It allows you to visualize the samples used in an
optimization study and the Pareto fronts associated with them, if any. It supports the exploration of
the generated samples in a 2D or 3D Mode, and can filter the number of visible Pareto Fronts.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
194 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
Axes
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Type bool
Read Only No
Mode
Type TradeoffChartModes
Read Only No
NumberOfParetoFront
Number of Pareto front to display. This is used as a filter to display only the most interesting fronts,
given an optimization study.
Type uint
Read Only No
ShowInfeasiblePoints
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 195
Design Exploration
Type bool
Read Only No
Methods
AssociateParameterToAxis
Associates a Parameter to the specified axis of the chart. The Parameter argument can be omitted which
means that the axis is not set.
Required Arguments
Type ChartAxes
Optional Arguments
Type DataReference
Example
The following example shows how to assign parameters to the axes of a DesignPointsCurves chart.
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
196 of ANSYS, Inc. and its subsidiaries and affiliates.
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
Methods
GetModel
Get the DataReference of the Model. An exception is thrown if the entity is not found.
Type DataReference
Example
The following example shows how the user can get a Model to change one of its properties.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
dOEModel1.DOEType = "eDOETYPE_OSFD"
Data Entities
BBDMethod
Entity which performs and manages the DesignXplorer Sampling Method Component
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 197
Design Exploration
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
CCDMethod
Entity which performs and manages the DesignXplorer Sampling Method Component
Properties
CCDTemplateType
Type CCDTemplateType
Read Only No
CCDType
Type CentralCompositeDesignType
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
CustomDOEMethod
Entity which performs and manages the DesignXplorer Sampling Method Component
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
198 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
CustomDOEPlusSampling
Entity which performs and manages the DesignXplorer Sampling Method Component
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
DiscreteLevel
The data entity which describes a Discrete Level of an Input Parameter.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Index
Zero-based Index of the discrete level in the list of levels of the owning parameter.
Type int
Read Only No
Value
Type Object
Read Only No
Methods
SetValue
Sets the value of a discrete level entity. A discrete level can have an integer value (e.g. a number if
holes, a number of turns, etc) or a string value (e.g. a material name or a geometry file name).
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 199
Design Exploration
Required Arguments
Type Object
Example
The following example shows how to retrieve a discrete level from an input parameter and then change
its value.
DistributionChart
The entity which describes a parameter's Distribution chart. This chart is always associated with an un-
certainty parameter and allows you to visualize the statistical distribution defined or calculated for this
parameter.
Properties
DisplayParameterFullName
If True, the legend of the chart contains the full name of the parameters. Otherwise it contains the short
name such as "P1".
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Type bool
Read Only No
Parameter
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
200 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
Methods
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
Update
Updates the chart by generating all results or data required to plot it. If the chart is already up-to-date,
nothing is done by default.
Example
The following example shows how to update a Tradeoff chart. The same code applies to all other types of
charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart = model.GetChart(Name="TradeoffChart 1")
chart.Update()
DOEModel
Entity which performs and manages the DesignXplorer Design Of Experiments Component
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 201
Design Exploration
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
ExportDesignPoints
If True and PreserveDesignPoints is True as well, export project for each preserved Design Point.
Type bool
Read Only No
Method
Optimization Method
Type DataReference
Read Only No
NumberOfRetries
Indicates the number of times DX will try to update the failed design points.
Type int
Read Only No
PreserveDesignPoints
If True, preserve the Design Points at the project level after the component Update.
Type bool
Read Only No
RetainDesignPoints
If True and PreserveDesignPoints is True as well, retain data for each preserved Design Point.
Type bool
Read Only No
RetryDelay
Indicates how much time will elapse between tries. This option is only applicable when NumberOfRetries
is greater than 0, otherwise it has no effect.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
202 of ANSYS, Inc. and its subsidiaries and affiliates.
Type Quantity
Read Only No
Methods
CreateChart
Creates a Chart entity. The chart must be updated once after its creation by invoking its Update method.
Then changes to its properties will update the chart automatically.
Type DataReference
Required Arguments
ChartType Type of chart to be created. The possible values depend on the type of Model. For instance, a
ResponseSurface model accepts Spider, LocalSensitivity and Response chart while a Correla-
tionModel accepts CorrelationMatrix, DeterminationMatrix and CorrelationScatter charts.
Type ChartType
Optional Arguments
DisplayText Displayed name of the chart. If not specified, a default name is applied, depending on the
value of ChartType.
Type string
Example
The following example shows how to create a chart.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
TradeoffChart = model.CreateChart(ChartType="eChartTradeoff")
TradeoffChart.Update()
DeleteCharts
Required Arguments
Type List<DataReference>
Example
The following example shows how to delete existing charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart1 = model.GetChart(Name="TradeoffChart 1")
chart2 = model.GetChart(Name="SamplesChart 1")
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 203
Design Exploration
model.DeleteCharts(Charts=[chart1, chart2])
DuplicateChart
Duplicates a Chart entity. The chart must be updated once after its creation by invoking its Update
method. Then changes to its properties will update the chart automatically.
Type DataReference
Required Arguments
Type DataReference
Optional Arguments
DisplayText Displayed name of the chart. If not specified, a default name is applied, depending
on the value of ChartType.
Type string
TargetModel The model on which the duplicated chart is created. If this parameter is not set,
the model of the source chart is used.
Type DataReference
TargetResponsePoint Parent TargetResponsePoint of the chart. If this parameter is not set, the response
point of the source chart is used if applicable.
Type DataReference
Example
The following example shows how to duplicate a chart.
GetChart
Query to return the chart reference for a given model and chart name.
Type DataReference
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
204 of ANSYS, Inc. and its subsidiaries and affiliates.
GetParameter
Get the DataReference of a Parameter. An exception is thrown if the entity is not found.
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can get a parameter of a model to change one of its properties.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
inputParameter1 = dOEModel1.GetParameter(Name="P1")
inputParameter1.LowerBound = 1
GetParameters
Get the DataReferences of the InputParameter and OutputParameter of the model. If the optional argu-
ment InputParameters is not specified, the query returns all parameters. If it is specified and True, the
query returns only input parameters. If it is False, the query returns only output parameters.
Type DataReferenceSet
Optional Arguments
InputParameters If True, the query returns only input parameters. If False, the query returns only output
parameters. If the argument is ommitted, the query returns all parameters.
Type bool
Example
The following example shows how the user can get the parameters of a model.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
parameters = dOEModel1.GetParameters()
GetParametricTable
Get the DataReference of ParametricTable. An exception is thrown if the entity is not found. Names of
the tables generated internally are: "DesignPoints", "CorrelationMatrix", "CorrelationScatter", "MinDesign-
Points", "MaxDesignPoints", "ResponsePoints", "DeterminationMatrix".
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 205
Design Exploration
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can get a ParametricTable to add a new row and set values.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
parametricTable = dOEModel1.GetParametricTable(Name="DesignPoints")
parametricTable.AddRow()
parametricTable.SetCellValue(RowIndex=9,ColumnIndex=0,Value="2.1")
ImportDesignPoints
Import existing Design Point entities in a custom Design of Experiments model. If a Design Point is
solved, the output parameter values are also imported.
Optional Arguments
DesignPoints List of the existing Design Point entities to import. If not specified, all the Design Point
entities found in the Parametric container are imported.
Type List<DataReference>
ExpandRanges If true, the command expands the range of variation of the input parameters based on the
imported design points. This is done by modifying automatically the upper and lower
bounds of the input parameters. If false, the design points which are not contained in the
actual variation ranges are not imported.
Type bool
Example
The following example shows how the user can import all design points or a list of design points into a
Design of Experiments model.
ImportDesignPointsFromFile
Import Design Point values in a custom Design of Experiments model from a csv file.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
206 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
Optional Arguments
ExpandRanges If true, the command expands the range of variation of the input parameters based on the
imported design points. This is done by modifying automatically the upper and lower
bounds of the input parameters. If false, the design points which are not contained in the
actual variation ranges are not imported. This option is not supported in the context of a
DOE for a Six Sigma Analysis.
Type bool
Example
The following example shows how the user can import design points from a valid csv file.
PreviewDesignPoints
Previews the Design Points of a model, without actually updating them, so that the user can adjust
settings before launching a long update operation. This command applies to a Design of Experiments
model, or the Refinement Points of a Kriging Response Surface, or a Parameters Correlation model. The
command returns the table of the generated points.
Type DataReference
Example
The following example shows how to preview a DOE model.
InputParameter
The data entity which describes an Input Parameter in DesignXplorer.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 207
Design Exploration
Properties
Attribute1
First editable attribute of the distribution for an uncertainty parameter. The nature of the attribute de-
pends on the distribution type. For instance, the first attribute of a Normal distribution is the Mean
value.
Type double
Read Only No
Attribute2
Second editable attribute of the distribution for an uncertainty parameter. The nature of the attribute
depends on the distribution type. For instance, the second attribute of a Normal distribution is the
Standard Deviation value. Some distribution type do not have a second attribute.
Type double
Read Only No
ConstantValue
Type Object
Read Only No
CustomDefinitionList
Type List<DataReference>
Read Only No
DiscreteLevels
Type List<DataReference>
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
208 of ANSYS, Inc. and its subsidiaries and affiliates.
DistributionLowerBound
Type double
Read Only No
DistributionType
Type DistributionType
Read Only No
DistributionUpperBound
Type double
Read Only No
Enabled
Type bool
Read Only No
Kurtosis
Type double
LowerBound
Type double
Read Only No
Mean
Type double
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 209
Design Exploration
Nature
Type ParameterNature
Read Only No
NumberOfLevels
Number of levels if the parameter nature is Discrete, or the parameter nature is Continuous and the
UseManufacturableValues property is set to True.
Type int
Skewness
Type double
StandardDeviation
Type double
Type
Type SimulationType
Units
Units
Type string
UpperBound
Type double
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
210 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
UseManufacturableValues
Type bool
Read Only No
Methods
AddDiscreteLevel
Adds a Discrete Level entity on a discrete input parameter. A discrete level can have an integer value
(e.g. a number of holes, a number of turns, etc) or a string value (e.g. a material name or a geometry
file name). The command has optional arguments to specify the Name of the level and its Index in the
list of levels of the parameter. By default, the new level is added to the end of the list. The various discrete
levels of an input parameter represent independent configurations of the project, processed in the order
of their creation.
Type DataReference
Required Arguments
Value The value of the discrete level. Value can be an integer or a string.
Type Object
Optional Arguments
DisplayText DisplayText of the created entity. If not specified, a default name of the form "Level [#]" is
used.
Type string
Index The position of the new level in the list of discrete levels of the parameter. Index is zero-
based. If it is not specified, the new level is appended to the list.
Type int
Default Value -1
Example
The following example shows how to add new discrete levels on a discrete input parameter. The third
level is inserted between the two others.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 211
Design Exploration
AddLevels
Adds a list of levels to a continuous input parameter. Each level is a quantity or a real number corres-
ponding to a manufacturable value. The list of levels forms a restriction filter used when post-processing
the input parameter. If levels are added outside of the variation range, the lower and upper bounds
are adjusted accordingly.
Required Arguments
Type List<string>
Optional Arguments
Type bool
Example
The following example shows how to overwrite the manufacturable values of an input parameter and how
to define an additional value later.
CreateOptimizationCriterion
Type DataReference
Required Arguments
Type DataReference
Example
The following example shows how to create an OptimizationCriterion entity.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
parameter1 = model.GetParameter(Name="P1")
optimizationCriterion = parameter1.CreateOptimizationCriterion()
DeleteDiscreteLevels
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
212 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type List<DataReference>
Example
The following example shows how to add and then delete one or more levels from a discrete input para-
meter.
DeleteLevels
Required Arguments
Type List<int>
Example
The following example shows how to add and then delete one or more levels from a continuous input
parameter for which the UseManufacturableValues property is set to True.
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 213
Design Exploration
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
GetCustomParameterDefinition
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can get a CustomParameterProperties.
system1 = GetSystem(Name="DOP")
optimization1 = system1.GetContainer(ComponentName="Optimization")
optimizationModel1 = optimization1.GetModel()
inputParameter1 = optimizationModel1.GetParameter(Name="P1")
customParameterDefinition1 = inputParameter1.GetCustomParameterDefinition(ExtensionName="UncertaintyParamet
customParameterDefinition1.Distribution = "Triangular"
GetDiscreteLevel
Get a discrete level by name from an input parameter. The parameter's full and ordered list of discrete
levels is available as its "DiscreteLevels" property.
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can retrieve a discrete level of a discrete input parameter by
its name.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
214 of ANSYS, Inc. and its subsidiaries and affiliates.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
DiscreteInputParameter1 = dOEModel1.GetParameter(Name="P1")
level = DiscreteInputParameter1.GetDiscreteLevel(Name="Level 1")
GetOptimizationCriterion
Get the DataReference of the OptimizationCriterion associated with a Parameter. An exception is thrown
if the entity is not found.
Type DataReference
Required Arguments
Type DataReference
Example
The following example shows how the user can get a OptimizationCriterion to change one of its properties.
system1 = GetSystem(Name="RSO")
optimization1 = system1.GetContainer(ComponentName="Optimization")
optimizationModel1 = optimization1.GetModel()
parameter3 = optimizationModel1.GetParameter(Name="P3")
optimizationCriterion = parameter3.GetOptimizationCriterion()
optimizationCriterion.ObjectiveType = "eGT_MinimumPossible"
GetParameterStatistics
Type DataReference
Example
The following example shows how the user can get a ParameterStatistics entity and examine its Mean
property.
system1 = GetSystem(Name="SSA")
sixSigmaAnalysis1 = system1.GetContainer(ComponentName="Six Sigma Analysis")
sixSigmaModel1 = sixSigmaAnalysis1.GetModel()
parameter4 = sixSigmaModel1.GetParameter(Name="P4")
parameterStatistics1 = parameter4.GetParameterStatistics()
mean = parameterStatistics1.Mean
LHSDMethod
Entity which performs and manages the DesignXplorer Sampling Method Component
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 215
Design Exploration
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
NumSamp
Type int
Read Only No
RandomGeneratorSeed
Type int
Read Only No
SampType
Type NumSampType
Read Only No
OSFDMethod
Entity which performs and manages the DesignXplorer Optimization Method Component
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
MaxNumCycles
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
216 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
NumSamp
Type int
Read Only No
OSFDType
Type OptimalSpaceFillingType
Read Only No
RandomGeneratorSeed
Type int
Read Only No
SampType
Type NumSampType
Read Only No
OutputParameter
Output parameter entity for DesignXplorer.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IgnoreForFiltering
Determines whether the parameter filtering is not applicable to the output parameter in the correlation
context.
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 217
Design Exploration
Read Only No
InheritFromModelSettings
Determines whether the Maximum Predicted Relative Error defined at the Model level is applicable to
the output parameter.
Type bool
Read Only No
LowerBound
Minimum value extracted from existing design points and/or sample sets.
Type double
MaxPredictedRelativeError
Maximum Relative Error targeted for an output parameter when refining with the Kriging algorithm.
This is the maximum predicted relative error that is acceptable for the selected output parameter.
Type double
Read Only No
PredictedRelativeError
Current value of the Predicted Relative Error when refining with the Kriging algorithm
Type double
TransformationType
Transformation Type
Type TransformationType
Read Only No
Units
Units
Type string
UpperBound
Maximum value extracted from existing design points and/or sample sets.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
218 of ANSYS, Inc. and its subsidiaries and affiliates.
Type double
Methods
CreateOptimizationCriterion
Type DataReference
Required Arguments
Type DataReference
Example
The following example shows how to create an OptimizationCriterion entity.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
parameter1 = model.GetParameter(Name="P1")
optimizationCriterion = parameter1.CreateOptimizationCriterion()
GetOptimizationCriterion
Get the DataReference of the OptimizationCriterion associated with a Parameter. An exception is thrown
if the entity is not found.
Type DataReference
Required Arguments
Type DataReference
Example
The following example shows how the user can get a OptimizationCriterion to change one of its properties.
system1 = GetSystem(Name="RSO")
optimization1 = system1.GetContainer(ComponentName="Optimization")
optimizationModel1 = optimization1.GetModel()
parameter3 = optimizationModel1.GetParameter(Name="P3")
optimizationCriterion = parameter3.GetOptimizationCriterion()
optimizationCriterion.ObjectiveType = "eGT_MinimumPossible"
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 219
Design Exploration
GetParameterStatistics
Type DataReference
Example
The following example shows how the user can get a ParameterStatistics entity and examine its Mean
property.
system1 = GetSystem(Name="SSA")
sixSigmaAnalysis1 = system1.GetContainer(ComponentName="Six Sigma Analysis")
sixSigmaModel1 = sixSigmaAnalysis1.GetModel()
parameter4 = sixSigmaModel1.GetParameter(Name="P4")
parameterStatistics1 = parameter4.GetParameterStatistics()
mean = parameterStatistics1.Mean
SamplingMethod
Entity which wraps and manages the external Sampling Method for the Design of Experiments component
Properties
No Properties.
SPGDMethod
Entity which performs and manages the DesignXplorer Sampling Method Component
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Methods
GetModel
Get the DataReference of the Model. An exception is thrown if the entity is not found.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
220 of ANSYS, Inc. and its subsidiaries and affiliates.
Type DataReference
Example
The following example shows how the user can get a Model to change one of its properties.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
dOEModel1.DOEType = "eDOETYPE_OSFD"
Data Entities
GoodnessOfFit
Entity which manages the Goodness Of Fit Information of a Response Surface for an Output Parameter
Properties
DiscreteExpressions
A Dictionary holding the values of all discrete input. Note: Discrete parameter values are level values,
not indices.
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsUpToDate
Type bool
Read Only No
Methods
CreateAdvancedReport
For the standard response surface only (Full second order Polynomials), creates an Advanced Goodness
of Fit report for any direct output parameter.
Return A string which contains the generated Advanced Goodness of Fit report.
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 221
Design Exploration
Required Arguments
Type DataReference
Optional Arguments
Type bool
Example
The following example shows how to create an Advanced Goodness of Fit report.
SetDiscreteParameter
Sets the Expression of a discrete input parameter in a GoodnessOfFit and updates the associated output
parameter values. The chart entities depending on the GoodnessOfFit are updated as well.
Required Arguments
Type DataReference
Type string
Example
The following example shows how to set the expression for one discrete parameter in an existing Good-
nessOfFit.
Update
Updates the goodness of fit and the results which depend on it. If the goodness of fit is already uptodate,
nothing is done unless the Force flag is set to True.
Optional Arguments
Force Set to true if the update operation of the goodness of fit point is required even if it's already uptodate.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
222 of ANSYS, Inc. and its subsidiaries and affiliates.
Type bool
Example
The following example shows how to update an existing GoodnessOfFit.
InputParameter
The data entity which describes an Input Parameter in DesignXplorer.
Properties
Attribute1
First editable attribute of the distribution for an uncertainty parameter. The nature of the attribute de-
pends on the distribution type. For instance, the first attribute of a Normal distribution is the Mean
value.
Type double
Read Only No
Attribute2
Second editable attribute of the distribution for an uncertainty parameter. The nature of the attribute
depends on the distribution type. For instance, the second attribute of a Normal distribution is the
Standard Deviation value. Some distribution type do not have a second attribute.
Type double
Read Only No
ConstantValue
Type Object
Read Only No
CustomDefinitionList
Type List<DataReference>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 223
Design Exploration
DiscreteLevels
Type List<DataReference>
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
DistributionLowerBound
Type double
Read Only No
DistributionType
Type DistributionType
Read Only No
DistributionUpperBound
Type double
Read Only No
Enabled
Type bool
Read Only No
Kurtosis
Type double
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
224 of ANSYS, Inc. and its subsidiaries and affiliates.
LowerBound
Type double
Read Only No
Mean
Type double
Nature
Type ParameterNature
Read Only No
NumberOfLevels
Number of levels if the parameter nature is Discrete, or the parameter nature is Continuous and the
UseManufacturableValues property is set to True.
Type int
Skewness
Type double
StandardDeviation
Type double
Type
Type SimulationType
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 225
Design Exploration
Units
Units
Type string
UpperBound
Type double
Read Only No
UseManufacturableValues
Type bool
Read Only No
Methods
AddDiscreteLevel
Adds a Discrete Level entity on a discrete input parameter. A discrete level can have an integer value
(e.g. a number of holes, a number of turns, etc) or a string value (e.g. a material name or a geometry
file name). The command has optional arguments to specify the Name of the level and its Index in the
list of levels of the parameter. By default, the new level is added to the end of the list. The various discrete
levels of an input parameter represent independent configurations of the project, processed in the order
of their creation.
Type DataReference
Required Arguments
Value The value of the discrete level. Value can be an integer or a string.
Type Object
Optional Arguments
DisplayText DisplayText of the created entity. If not specified, a default name of the form "Level [#]" is
used.
Type string
Index The position of the new level in the list of discrete levels of the parameter. Index is zero-
based. If it is not specified, the new level is appended to the list.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
226 of ANSYS, Inc. and its subsidiaries and affiliates.
Type int
Default Value -1
Example
The following example shows how to add new discrete levels on a discrete input parameter. The third
level is inserted between the two others.
AddLevels
Adds a list of levels to a continuous input parameter. Each level is a quantity or a real number corres-
ponding to a manufacturable value. The list of levels forms a restriction filter used when post-processing
the input parameter. If levels are added outside of the variation range, the lower and upper bounds
are adjusted accordingly.
Required Arguments
Type List<string>
Optional Arguments
Type bool
Example
The following example shows how to overwrite the manufacturable values of an input parameter and how
to define an additional value later.
CreateOptimizationCriterion
Type DataReference
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 227
Design Exploration
Type DataReference
Example
The following example shows how to create an OptimizationCriterion entity.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
parameter1 = model.GetParameter(Name="P1")
optimizationCriterion = parameter1.CreateOptimizationCriterion()
DeleteDiscreteLevels
Required Arguments
Type List<DataReference>
Example
The following example shows how to add and then delete one or more levels from a discrete input para-
meter.
DeleteLevels
Required Arguments
Type List<int>
Example
The following example shows how to add and then delete one or more levels from a continuous input
parameter for which the UseManufacturableValues property is set to True.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
228 of ANSYS, Inc. and its subsidiaries and affiliates.
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
GetCustomParameterDefinition
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can get a CustomParameterProperties.
system1 = GetSystem(Name="DOP")
optimization1 = system1.GetContainer(ComponentName="Optimization")
optimizationModel1 = optimization1.GetModel()
inputParameter1 = optimizationModel1.GetParameter(Name="P1")
customParameterDefinition1 = inputParameter1.GetCustomParameterDefinition(ExtensionName="UncertaintyParamet
customParameterDefinition1.Distribution = "Triangular"
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 229
Design Exploration
GetDiscreteLevel
Get a discrete level by name from an input parameter. The parameter's full and ordered list of discrete
levels is available as its "DiscreteLevels" property.
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can retrieve a discrete level of a discrete input parameter by
its name.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
DiscreteInputParameter1 = dOEModel1.GetParameter(Name="P1")
level = DiscreteInputParameter1.GetDiscreteLevel(Name="Level 1")
GetOptimizationCriterion
Get the DataReference of the OptimizationCriterion associated with a Parameter. An exception is thrown
if the entity is not found.
Type DataReference
Required Arguments
Type DataReference
Example
The following example shows how the user can get a OptimizationCriterion to change one of its properties.
system1 = GetSystem(Name="RSO")
optimization1 = system1.GetContainer(ComponentName="Optimization")
optimizationModel1 = optimization1.GetModel()
parameter3 = optimizationModel1.GetParameter(Name="P3")
optimizationCriterion = parameter3.GetOptimizationCriterion()
optimizationCriterion.ObjectiveType = "eGT_MinimumPossible"
GetParameterStatistics
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
230 of ANSYS, Inc. and its subsidiaries and affiliates.
Type DataReference
Example
The following example shows how the user can get a ParameterStatistics entity and examine its Mean
property.
system1 = GetSystem(Name="SSA")
sixSigmaAnalysis1 = system1.GetContainer(ComponentName="Six Sigma Analysis")
sixSigmaModel1 = sixSigmaAnalysis1.GetModel()
parameter4 = sixSigmaModel1.GetParameter(Name="P4")
parameterStatistics1 = parameter4.GetParameterStatistics()
mean = parameterStatistics1.Mean
MinMaxSearch
The data entity which described the MinMax Search option of a Response Surface Component.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Enabled
If True, performs a min-max search performed when the response surface is built.
Type bool
Read Only No
IsUpToDate
Type bool
Read Only No
NumberInitialPoints
Type int
Read Only No
NumberStartPoints
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 231
Design Exploration
Type int
Read Only No
OutputParameter
Output parameter entity for DesignXplorer.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IgnoreForFiltering
Determines whether the parameter filtering is not applicable to the output parameter in the correlation
context.
Type bool
Read Only No
InheritFromModelSettings
Determines whether the Maximum Predicted Relative Error defined at the Model level is applicable to
the output parameter.
Type bool
Read Only No
LowerBound
Minimum value extracted from existing design points and/or sample sets.
Type double
MaxPredictedRelativeError
Maximum Relative Error targeted for an output parameter when refining with the Kriging algorithm.
This is the maximum predicted relative error that is acceptable for the selected output parameter.
Type double
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
232 of ANSYS, Inc. and its subsidiaries and affiliates.
PredictedRelativeError
Current value of the Predicted Relative Error when refining with the Kriging algorithm
Type double
TransformationType
Transformation Type
Type TransformationType
Read Only No
Units
Units
Type string
UpperBound
Maximum value extracted from existing design points and/or sample sets.
Type double
Methods
CreateOptimizationCriterion
Type DataReference
Required Arguments
Type DataReference
Example
The following example shows how to create an OptimizationCriterion entity.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
parameter1 = model.GetParameter(Name="P1")
optimizationCriterion = parameter1.CreateOptimizationCriterion()
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 233
Design Exploration
GetOptimizationCriterion
Get the DataReference of the OptimizationCriterion associated with a Parameter. An exception is thrown
if the entity is not found.
Type DataReference
Required Arguments
Type DataReference
Example
The following example shows how the user can get a OptimizationCriterion to change one of its properties.
system1 = GetSystem(Name="RSO")
optimization1 = system1.GetContainer(ComponentName="Optimization")
optimizationModel1 = optimization1.GetModel()
parameter3 = optimizationModel1.GetParameter(Name="P3")
optimizationCriterion = parameter3.GetOptimizationCriterion()
optimizationCriterion.ObjectiveType = "eGT_MinimumPossible"
GetParameterStatistics
Type DataReference
Example
The following example shows how the user can get a ParameterStatistics entity and examine its Mean
property.
system1 = GetSystem(Name="SSA")
sixSigmaAnalysis1 = system1.GetContainer(ComponentName="Six Sigma Analysis")
sixSigmaModel1 = sixSigmaAnalysis1.GetModel()
parameter4 = sixSigmaModel1.GetParameter(Name="P4")
parameterStatistics1 = parameter4.GetParameterStatistics()
mean = parameterStatistics1.Mean
ParametricTable
ParametricTable entity used to encapsulate most of the evaluation results in a convenient 2D matrix
format.
Properties
DimCol
Number of columns.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
234 of ANSYS, Inc. and its subsidiaries and affiliates.
Type int
DimRow
Number of rows.
Type int
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Methods
AddRow
Optional Arguments
Type List<string>
Example
The following example shows how to make a DOE editable, to retrieve the table of design points and add
a new row to it.
DeleteRows
Required Arguments
Type List<int>
Example
The following example shows how to delete rows from the DOEmatrix in a custom DOE context.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 235
Design Exploration
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
GetCellValue
Get the Value of a ParametricTable's cell. An exception is thrown if the entity is not found.
Type string
Required Arguments
Type int
Type int
Example
The following example shows how the user can get the value of the ParametricTable's cell [0,3].
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
236 of ANSYS, Inc. and its subsidiaries and affiliates.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
parametricTable = dOEModel1.GetParametricTable(Name="DesignPoints")
cellValue = parametricTable.GetCellValue(RowIndex=0,ColumnIndex=3)
GetRowUpdateOrder
Get the Update Order value of a row in a ParametricTable. An exception is thrown if the entity is not
found.
Type double
Required Arguments
Type int
Example
The following example shows how to get the Update Order value of row [3] in the ParametricTable.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
parametricTable = dOEModel1.GetParametricTable(Name="DesignPoints")
updateOrderValue = parametricTable.GetRowUpdateOrder(RowIndex=3)
GetRowValues
Get the Values of a ParametricTable's row. An exception is thrown if the entity is not found.
Type List<string>
Required Arguments
Type int
Example
The following example shows how the user can get the values of the 4th ParametricTable's row.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
parametricTable = dOEModel1.GetParametricTable(Name="DesignPoints")
rowValues = parametricTable.GetRowValues(RowIndex=3)
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 237
Design Exploration
OptimizeUpdateOrder
Optimizes the Update Order of Design Points to minimize the number of modifications between two
consecutive Design Points. This command applies to the "DesignPoints" ParametricTable of a Design
of Experiments model or of a Response Surface in a manual refinement context. It also applies to the
"VerificationPoints" ParametricTable of a Response Surface model.
Example
The following example shows how to optimize the update order of the DesignPoints table in a Design of
Experiments model.
SetCellValue
Sets the value of a ParametricTable cell. If the table is read-only, the command has no effect.
Required Arguments
Type int
Type int
Type string
Example
The following example shows how to set the value of the DesignPoints table in a custom DOE context.
SetOutputValuesEditable
Sets the values of the output parameters as Editable (Editable=True) or Calculated (Editable=False) for
the complete table, or a set of rows specified by the RowIndices argument. This command is applicable
to the "DesignPoints" ParametricTable of a Design of Experiments model in a custom context (DOEType
is "eDOETYPE_USER" or "eDOETYPE_CUSTOM_OSFD") or of a Response Surface model in a manual re-
finement context. It also applies to the "VerificationPoints" ParametricTable of a Response Surface
model.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
238 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Editable True to define output values as Editable, or False to mark output values as calculated.
Type bool
Optional Arguments
RowIndices Optional list of row zero-based indices. If this argument is not specified, the command applies
to the complete ParametricTable.
Type List<int>
Example
The following example shows how to switch a DOE model to the custom mode and then set the output
values as editable for the first three design points of the DOE matrix.
SetRowUpdateOrder
Sets the Update Order value for a row in a ParametricTable. If the table doesn't support Update Order
functionality, the command has no effect.
Required Arguments
Type int
Type double
Example
The following example shows how to set the Update Order value of the DesignPoints table in a Design of
Experiments model.
SetRowValues
Sets the values of a ParametricTable's row. If the table is read-only, the command has no effect.
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 239
Design Exploration
Type int
Type List<string>
Example
The following example shows how to set the values of the DesignPoints table in a custom DOE context.
SetUpdateOrderByRow
Sets a value for the UpdateOrder property of all Design Points using sorting settings. This command
applies to the "DesignPoints" ParametricTable of a Design of Experiments model or of a Response Surface
in a manual refinement context. It also applies to the "VerificationPoints" ParametricTable of a Response
Surface model.
Optional Arguments
Type List<string>
Example
The following example shows how to set the update order of the DesignPoints table in a Design of Exper-
iments model. The Design Points are sorted first by their values for the parameter P3 (in ascending order),
and then by their values for the parameter P1 (in descending order).
UpdateRows
Updates the design points held in rows from a ParametricTable entity and the results which depend
on it.
Required Arguments
Type List<int>
Example
The following example shows how to update the design points from the VerificationPoints Table.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
240 of ANSYS, Inc. and its subsidiaries and affiliates.
parametricTable1 = responseSurfaceModel1.GetParametricTable(Name="VerificationPoints")
parametricTable1.UpdateRows(Indices=[0,1])
ResponseSurfaceModel
Entity which performs and manages the DesignXplorer Response Surface Component
Properties
Converged
Convergence state
Type bool
CrowdingDistSeparationPercentage
Crowding Distance Separation Percentage when refining with the Kriging algorithm
Type double
Read Only No
CurrentRelativeError
Type double
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
ExportDesignPoints
If True and PreserveDesignPoints is True as well, export project for each preserved Design Point.
Type bool
Read Only No
FittingType
Type FittingType
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 241
Design Exploration
Read Only No
GenerateVerificationPoints
Type bool
Read Only No
KernelVariationType
Type KernelVariationType
Read Only No
MaximumDepth
Maximum Depth limit when refining with the Sparse Grid response surface
Type int
Read Only No
MaximumRelativeErrorSparseGrid
Maximum Relative Error targeted when refining with the Sparse Grid response surface
Type double
Read Only No
MaxNumberRefinementPointsKriging
Maximum Number Of Refinement Points that can be generated for refinement with the Kriging algorithm.
Type int
Read Only No
MaxNumberRefinementPointsSparseGrid
Maximum Number Of Refinement Points that can be generated for refinement with the Sparse Grid
response surface
Type int
Read Only No
MaxPredictedRelativeError
Maximum Relative Error targeted for all input parameters when refining with the Kriging algorithm.
This is the maximum predicted relative error that is acceptable for all parameters.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
242 of ANSYS, Inc. and its subsidiaries and affiliates.
Type double
Read Only No
NumberOfCells
Type int
Read Only No
NumberOfRetries
Indicates the number of times DX will try to update the failed design points.
Type int
Read Only No
NumberRefinementPoints
Type int
NumberVerificationPoints
Type int
Read Only No
OutputVarCombinations
Output Variable Combinations when refining with the Kriging algorithm. Controls how output variables
are considered in terms of Predicated Relative Error and determines the number of refinement points
generated per iteration.
Type AdaptKrigOutType
Read Only No
PredictedRelativeError
Current value of the Predicted Relative Error when refining with the Kriging algorithm
Type double
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 243
Design Exploration
PreserveDesignPoints
If True, preserve the Design Points at the project level after the component Update.
Type bool
Read Only No
RefinementType
Refinement Type
Type ResponseSurfaceRefinementType
Read Only No
RetainDesignPoints
If True and PreserveDesignPoints is True as well, retain data for each preserved Design Point.
Type bool
Read Only No
RetryDelay
Indicates how much time will elapse between tries. This option is only applicable when NumberOfRetries
is greater than 0, otherwise it has no effect.
Type Quantity
Read Only No
Methods
CreateChart
Creates a Chart entity. The chart must be updated once after its creation by invoking its Update method.
Then changes to its properties will update the chart automatically.
Type DataReference
Required Arguments
ChartType Type of chart to be created. The possible values depend on the type of Model. For instance, a
ResponseSurface model accepts Spider, LocalSensitivity and Response chart while a Correla-
tionModel accepts CorrelationMatrix, DeterminationMatrix and CorrelationScatter charts.
Type ChartType
Optional Arguments
DisplayText Displayed name of the chart. If not specified, a default name is applied, depending on the
value of ChartType.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
244 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Example
The following example shows how to create a chart.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
TradeoffChart = model.CreateChart(ChartType="eChartTradeoff")
TradeoffChart.Update()
CreateGoodnessOfFit
Creates a GoodnessOfFit. The ParameterValues dictionary can be used to specify a value for some or
all of the discrete input parameters.
Type DataReference
Optional Arguments
DisplayText DisplayText of the created entity. If not specified, a default name of the form "Goodness
Of Fit [#]" is used.
Type string
ParameterValues The values for each discrete input parameter. If not specified, each parameter is initial-
ized to the current level.
Example
The following example shows how to create a GoodnessOfFit from an existing ResponseSurface model.
The code retrieves the parameters P1 and P2 and then creates the response point by assigning a value to
each of these parameters.
CreateResponsePoint
Creates a ResponsePoint. The ParameterValues dictionary can be used to specify a value or a quantity
for some or all of the input parameters. The output parameter values cannot be specified. They are
evaluated automatically from the ResponseSurface model once it is updated. Several types of charts
can only be created as children of a ResponsePoint. These charts depend on the ResponsePoint and
use the same parameter values.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 245
Design Exploration
Optional Arguments
DisplayText DisplayText of the created entity. If not specified, a default name of the form "Response
Point [#]" is used.
Type string
ParameterValues The values for each input parameter. If not specified, each parameter is initialized to
the middle of its variation range.
Example
The following example shows how to create a ResponsePoint from an existing ResponseSurface model.
The code retrieves the parameters P1 and P2 and then creates the response point by assigning a value to
each of these parameters.
DeleteCharts
Required Arguments
Type List<DataReference>
Example
The following example shows how to delete existing charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart1 = model.GetChart(Name="TradeoffChart 1")
chart2 = model.GetChart(Name="SamplesChart 1")
model.DeleteCharts(Charts=[chart1, chart2])
DeleteGoodnessOfFit
Deletes a list of GoodnessOfFit entities and all the depending Chart entities.
Required Arguments
Type List<DataReference>
Example
The following example shows how to delete existing GoodnessOfFit.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
246 of ANSYS, Inc. and its subsidiaries and affiliates.
container = system1.GetContainer(ComponentName="Response Surface")
model = container.GetModel()
gof1 = model.GetGoodnessOfFit(Name="GOF 1")
gof5 = model.GetGoodnessOfFit(Name="GOF 5")
gof6 = model.GetGoodnessOfFit(Name="GOF 6")
model.DeleteGoodnessOfFit(GoodnessOfFit=[gof1, gof5, gof6])
DeleteResponsePoints
Deletes a list of ResponsePoint entities and all the depending Chart entities.
Required Arguments
Type List<DataReference>
Example
The following example shows how to delete existing ResponsePoints.
DuplicateChart
Duplicates a Chart entity. The chart must be updated once after its creation by invoking its Update
method. Then changes to its properties will update the chart automatically.
Type DataReference
Required Arguments
Type DataReference
Optional Arguments
DisplayText Displayed name of the chart. If not specified, a default name is applied, depending
on the value of ChartType.
Type string
TargetModel The model on which the duplicated chart is created. If this parameter is not set,
the model of the source chart is used.
Type DataReference
TargetResponsePoint Parent TargetResponsePoint of the chart. If this parameter is not set, the response
point of the source chart is used if applicable.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 247
Design Exploration
Type DataReference
Example
The following example shows how to duplicate a chart.
DuplicateGoodnessOfFit
Duplicates a GoodnessOfFit.
Type DataReference
Required Arguments
Type DataReference
Optional Arguments
DisplayText DisplayText of the created entity. If not specified, a default name of the form "Goodness Of
Fit [#]" is used.
Type string
TargetModel The ResponseSurface model on which the goodness of fit is created. If this parameter is not
set, the model of the source goodness of fit is used.
Type DataReference
Example
The following example shows how to duplicate a GoodnessOfFit from an existing ResponseSurface model.
The code retrieves the parameters P1 and P2 and then creates the response point by assigning a value to
each of these parameters.
DuplicateResponsePoint
Duplicates a ReponsePoint entity. The response point must be updated once after its creation by invoking
its Update method. Then changes to its properties will update the response point automatically.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
248 of ANSYS, Inc. and its subsidiaries and affiliates.
Type DataReference
Required Arguments
Type DataReference
Optional Arguments
DisplayText DisplayText of the created entity. If not specified, a default name of the form "Response
Point [#]" is used.
Type string
Type bool
TargetModel The model on which the duplicated response point is created. If this parameter is not
set, the model of the source response point is used.
Type DataReference
Example
The following example shows how to duplicate a response point and all its charts.
GetChart
Query to return the chart reference for a given model and chart name.
Type DataReference
Required Arguments
Type string
GetGoodnessOfFit
Get the DataReference of a GoodnessOfFit entity associated with a Model. An exception is thrown if
the entity is not found.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 249
Design Exploration
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can get a GoodnessOfFit.
system1 = GetSystem(Name="RSO")
responseSurface1 = system1.GetContainer(ComponentName="Response Surface")
responseSurfaceModel1 = responseSurface1.GetModel()
gof = responseSurfaceModel1.GetGoodnessOfFit(Name="GoodnessOfFit")
GetGoodnessOfFits
Type DataReferenceSet
Example
The following example shows how to retrieve the GoodnessOfFit entities of a response surface model.
system1 = GetSystem(Name="RSO")
responseSurface1 = system1.GetContainer(ComponentName="Response Surface")
responseSurfaceModel1 = responseSurface1.GetModel()
gof = responseSurfaceModel1.GetGoodnessOfFits()
GetMinMaxSearch
Get the DataReference of the MinMaxSearch entity associated with a Response Surface model. An ex-
ception is thrown if the entity is not found.
Type DataReference
Example
The following example shows how the user can get the MinMaxSearch of a ResponseSurfaceModel to
change one of its properties.
GetParameter
Get the DataReference of a Parameter. An exception is thrown if the entity is not found.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
250 of ANSYS, Inc. and its subsidiaries and affiliates.
Return The DataReference of the Parameter.
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can get a parameter of a model to change one of its properties.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
inputParameter1 = dOEModel1.GetParameter(Name="P1")
inputParameter1.LowerBound = 1
GetParameters
Get the DataReferences of the InputParameter and OutputParameter of the model. If the optional argu-
ment InputParameters is not specified, the query returns all parameters. If it is specified and True, the
query returns only input parameters. If it is False, the query returns only output parameters.
Type DataReferenceSet
Optional Arguments
InputParameters If True, the query returns only input parameters. If False, the query returns only output
parameters. If the argument is ommitted, the query returns all parameters.
Type bool
Example
The following example shows how the user can get the parameters of a model.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
parameters = dOEModel1.GetParameters()
GetParametricTable
Get the DataReference of ParametricTable. An exception is thrown if the entity is not found. Names of
the tables generated internally are: "DesignPoints", "CorrelationMatrix", "CorrelationScatter", "MinDesign-
Points", "MaxDesignPoints", "ResponsePoints", "DeterminationMatrix".
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 251
Design Exploration
Required Arguments
Type string
Example
The following example shows how the user can get a ParametricTable to add a new row and set values.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
parametricTable = dOEModel1.GetParametricTable(Name="DesignPoints")
parametricTable.AddRow()
parametricTable.SetCellValue(RowIndex=9,ColumnIndex=0,Value="2.1")
GetResponsePoint
Get the DataReference of a ResponsePoint. An exception is thrown if the entity is not found.
Type DataReference
Required Arguments
Name Name
Type string
Example
The following example shows how to retrieve an existing ResponsePoint.
GetResponsePoints
Type DataReferenceSet
Example
The following example shows how to retrieve the response points of a response surface model.
system1 = GetSystem(Name="RSO")
container = system1.GetContainer(ComponentName="Response Surface")
model = container.GetModel()
responsePoints = model.GetResponsePoints()
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
252 of ANSYS, Inc. and its subsidiaries and affiliates.
ImportRefinementPointsFromFile
Import Refinement Point values in the manual refinement table of a Response Surface model from a
csv file.
Required Arguments
Type string
Example
The following example shows how the user can import refinement points from a valid csv file.
ImportVerificationPointsFromFile
Import Verification Point values in the verification table of a Response Surface model from a csv file.
Required Arguments
Type string
Example
The following example shows how the user can import verification points from a valid csv file.
PreviewDesignPoints
Previews the Design Points of a model, without actually updating them, so that the user can adjust
settings before launching a long update operation. This command applies to a Design of Experiments
model, or the Refinement Points of a Kriging Response Surface, or a Parameters Correlation model. The
command returns the table of the generated points.
Type DataReference
Example
The following example shows how to preview a DOE model.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 253
Design Exploration
DX Parameters Correlation
This container holds data for a Parameter Correlation.
Methods
GetModel
Get the DataReference of the Model. An exception is thrown if the entity is not found.
Type DataReference
Example
The following example shows how the user can get a Model to change one of its properties.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
dOEModel1.DOEType = "eDOETYPE_OSFD"
Data Entities
CorrelationModel
Entity which performs and manages the DesignXplorer Parameters Correlation Component
Properties
AutoStopType
Type CorrelationAutoStopType
Read Only No
Converged
Convergence state
Type bool
ConvergenceCheckFrequency
Type int
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
254 of ANSYS, Inc. and its subsidiaries and affiliates.
CorrelationFiltering
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
ExportDesignPoints
If True and PreserveDesignPoints is True as well, export project for each preserved Design Point.
Type bool
Read Only No
LinearCorrelationType
Correlation Type
Type LinearCorrelationType
Read Only No
MaximumNumberMajorInputs
Type int
Read Only No
MeanValueAccuracy
Type double
Read Only No
NumberOfRetries
Indicates the number of times DX will try to update the failed design points.
Type int
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 255
Design Exploration
NumberSamples
Number of Samples
Type int
Read Only No
PreserveDesignPoints
If True, preserve the Design Points at the project level after the component Update.
Type bool
Read Only No
R2ContributionFiltering
Type bool
Read Only No
RelevanceThreshold
Type double
Read Only No
RestartMode
Type bool
Read Only No
RetainDesignPoints
If True and PreserveDesignPoints is True as well, retain data for each preserved Design Point.
Type bool
Read Only No
RetryDelay
Indicates how much time will elapse between tries. This option is only applicable when NumberOfRetries
is greater than 0, otherwise it has no effect.
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
256 of ANSYS, Inc. and its subsidiaries and affiliates.
SampleSetSize
Type int
StandardDeviationAccuracy
Type double
Read Only No
Methods
CreateChart
Creates a Chart entity. The chart must be updated once after its creation by invoking its Update method.
Then changes to its properties will update the chart automatically.
Type DataReference
Required Arguments
ChartType Type of chart to be created. The possible values depend on the type of Model. For instance, a
ResponseSurface model accepts Spider, LocalSensitivity and Response chart while a Correla-
tionModel accepts CorrelationMatrix, DeterminationMatrix and CorrelationScatter charts.
Type ChartType
Optional Arguments
DisplayText Displayed name of the chart. If not specified, a default name is applied, depending on the
value of ChartType.
Type string
Example
The following example shows how to create a chart.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
TradeoffChart = model.CreateChart(ChartType="eChartTradeoff")
TradeoffChart.Update()
DeleteCharts
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 257
Design Exploration
Required Arguments
Type List<DataReference>
Example
The following example shows how to delete existing charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart1 = model.GetChart(Name="TradeoffChart 1")
chart2 = model.GetChart(Name="SamplesChart 1")
model.DeleteCharts(Charts=[chart1, chart2])
DuplicateChart
Duplicates a Chart entity. The chart must be updated once after its creation by invoking its Update
method. Then changes to its properties will update the chart automatically.
Type DataReference
Required Arguments
Type DataReference
Optional Arguments
DisplayText Displayed name of the chart. If not specified, a default name is applied, depending
on the value of ChartType.
Type string
TargetModel The model on which the duplicated chart is created. If this parameter is not set,
the model of the source chart is used.
Type DataReference
TargetResponsePoint Parent TargetResponsePoint of the chart. If this parameter is not set, the response
point of the source chart is used if applicable.
Type DataReference
Example
The following example shows how to duplicate a chart.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
258 of ANSYS, Inc. and its subsidiaries and affiliates.
GetChart
Query to return the chart reference for a given model and chart name.
Type DataReference
Required Arguments
Type string
GetParameter
Get the DataReference of a Parameter. An exception is thrown if the entity is not found.
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can get a parameter of a model to change one of its properties.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
inputParameter1 = dOEModel1.GetParameter(Name="P1")
inputParameter1.LowerBound = 1
GetParameters
Get the DataReferences of the InputParameter and OutputParameter of the model. If the optional argu-
ment InputParameters is not specified, the query returns all parameters. If it is specified and True, the
query returns only input parameters. If it is False, the query returns only output parameters.
Type DataReferenceSet
Optional Arguments
InputParameters If True, the query returns only input parameters. If False, the query returns only output
parameters. If the argument is ommitted, the query returns all parameters.
Type bool
Example
The following example shows how the user can get the parameters of a model.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 259
Design Exploration
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
parameters = dOEModel1.GetParameters()
GetParametricTable
Get the DataReference of ParametricTable. An exception is thrown if the entity is not found. Names of
the tables generated internally are: "DesignPoints", "CorrelationMatrix", "CorrelationScatter", "MinDesign-
Points", "MaxDesignPoints", "ResponsePoints", "DeterminationMatrix".
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can get a ParametricTable to add a new row and set values.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
parametricTable = dOEModel1.GetParametricTable(Name="DesignPoints")
parametricTable.AddRow()
parametricTable.SetCellValue(RowIndex=9,ColumnIndex=0,Value="2.1")
PreviewDesignPoints
Previews the Design Points of a model, without actually updating them, so that the user can adjust
settings before launching a long update operation. This command applies to a Design of Experiments
model, or the Refinement Points of a Kriging Response Surface, or a Parameters Correlation model. The
command returns the table of the generated points.
Type DataReference
Example
The following example shows how to preview a DOE model.
InputParameter
The data entity which describes an Input Parameter in DesignXplorer.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
260 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
Attribute1
First editable attribute of the distribution for an uncertainty parameter. The nature of the attribute de-
pends on the distribution type. For instance, the first attribute of a Normal distribution is the Mean
value.
Type double
Read Only No
Attribute2
Second editable attribute of the distribution for an uncertainty parameter. The nature of the attribute
depends on the distribution type. For instance, the second attribute of a Normal distribution is the
Standard Deviation value. Some distribution type do not have a second attribute.
Type double
Read Only No
ConstantValue
Type Object
Read Only No
CustomDefinitionList
Type List<DataReference>
Read Only No
DiscreteLevels
Type List<DataReference>
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 261
Design Exploration
DistributionLowerBound
Type double
Read Only No
DistributionType
Type DistributionType
Read Only No
DistributionUpperBound
Type double
Read Only No
Enabled
Type bool
Read Only No
Kurtosis
Type double
LowerBound
Type double
Read Only No
Mean
Type double
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
262 of ANSYS, Inc. and its subsidiaries and affiliates.
Nature
Type ParameterNature
Read Only No
NumberOfLevels
Number of levels if the parameter nature is Discrete, or the parameter nature is Continuous and the
UseManufacturableValues property is set to True.
Type int
Skewness
Type double
StandardDeviation
Type double
Type
Type SimulationType
Units
Units
Type string
UpperBound
Type double
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 263
Design Exploration
Read Only No
UseManufacturableValues
Type bool
Read Only No
Methods
AddDiscreteLevel
Adds a Discrete Level entity on a discrete input parameter. A discrete level can have an integer value
(e.g. a number of holes, a number of turns, etc) or a string value (e.g. a material name or a geometry
file name). The command has optional arguments to specify the Name of the level and its Index in the
list of levels of the parameter. By default, the new level is added to the end of the list. The various discrete
levels of an input parameter represent independent configurations of the project, processed in the order
of their creation.
Type DataReference
Required Arguments
Value The value of the discrete level. Value can be an integer or a string.
Type Object
Optional Arguments
DisplayText DisplayText of the created entity. If not specified, a default name of the form "Level [#]" is
used.
Type string
Index The position of the new level in the list of discrete levels of the parameter. Index is zero-
based. If it is not specified, the new level is appended to the list.
Type int
Default Value -1
Example
The following example shows how to add new discrete levels on a discrete input parameter. The third
level is inserted between the two others.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
264 of ANSYS, Inc. and its subsidiaries and affiliates.
AddLevels
Adds a list of levels to a continuous input parameter. Each level is a quantity or a real number corres-
ponding to a manufacturable value. The list of levels forms a restriction filter used when post-processing
the input parameter. If levels are added outside of the variation range, the lower and upper bounds
are adjusted accordingly.
Required Arguments
Type List<string>
Optional Arguments
Type bool
Example
The following example shows how to overwrite the manufacturable values of an input parameter and how
to define an additional value later.
CreateOptimizationCriterion
Type DataReference
Required Arguments
Type DataReference
Example
The following example shows how to create an OptimizationCriterion entity.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
parameter1 = model.GetParameter(Name="P1")
optimizationCriterion = parameter1.CreateOptimizationCriterion()
DeleteDiscreteLevels
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 265
Design Exploration
Required Arguments
Type List<DataReference>
Example
The following example shows how to add and then delete one or more levels from a discrete input para-
meter.
DeleteLevels
Required Arguments
Type List<int>
Example
The following example shows how to add and then delete one or more levels from a continuous input
parameter for which the UseManufacturableValues property is set to True.
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Optional Arguments
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
266 of ANSYS, Inc. and its subsidiaries and affiliates.
Default Value False
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
GetCustomParameterDefinition
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can get a CustomParameterProperties.
system1 = GetSystem(Name="DOP")
optimization1 = system1.GetContainer(ComponentName="Optimization")
optimizationModel1 = optimization1.GetModel()
inputParameter1 = optimizationModel1.GetParameter(Name="P1")
customParameterDefinition1 = inputParameter1.GetCustomParameterDefinition(ExtensionName="UncertaintyParamet
customParameterDefinition1.Distribution = "Triangular"
GetDiscreteLevel
Get a discrete level by name from an input parameter. The parameter's full and ordered list of discrete
levels is available as its "DiscreteLevels" property.
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can retrieve a discrete level of a discrete input parameter by
its name.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 267
Design Exploration
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
DiscreteInputParameter1 = dOEModel1.GetParameter(Name="P1")
level = DiscreteInputParameter1.GetDiscreteLevel(Name="Level 1")
GetOptimizationCriterion
Get the DataReference of the OptimizationCriterion associated with a Parameter. An exception is thrown
if the entity is not found.
Type DataReference
Required Arguments
Type DataReference
Example
The following example shows how the user can get a OptimizationCriterion to change one of its properties.
system1 = GetSystem(Name="RSO")
optimization1 = system1.GetContainer(ComponentName="Optimization")
optimizationModel1 = optimization1.GetModel()
parameter3 = optimizationModel1.GetParameter(Name="P3")
optimizationCriterion = parameter3.GetOptimizationCriterion()
optimizationCriterion.ObjectiveType = "eGT_MinimumPossible"
GetParameterStatistics
Type DataReference
Example
The following example shows how the user can get a ParameterStatistics entity and examine its Mean
property.
system1 = GetSystem(Name="SSA")
sixSigmaAnalysis1 = system1.GetContainer(ComponentName="Six Sigma Analysis")
sixSigmaModel1 = sixSigmaAnalysis1.GetModel()
parameter4 = sixSigmaModel1.GetParameter(Name="P4")
parameterStatistics1 = parameter4.GetParameterStatistics()
mean = parameterStatistics1.Mean
OutputParameter
Output parameter entity for DesignXplorer.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
268 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IgnoreForFiltering
Determines whether the parameter filtering is not applicable to the output parameter in the correlation
context.
Type bool
Read Only No
InheritFromModelSettings
Determines whether the Maximum Predicted Relative Error defined at the Model level is applicable to
the output parameter.
Type bool
Read Only No
LowerBound
Minimum value extracted from existing design points and/or sample sets.
Type double
MaxPredictedRelativeError
Maximum Relative Error targeted for an output parameter when refining with the Kriging algorithm.
This is the maximum predicted relative error that is acceptable for the selected output parameter.
Type double
Read Only No
PredictedRelativeError
Current value of the Predicted Relative Error when refining with the Kriging algorithm
Type double
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 269
Design Exploration
TransformationType
Transformation Type
Type TransformationType
Read Only No
Units
Units
Type string
UpperBound
Maximum value extracted from existing design points and/or sample sets.
Type double
Methods
CreateOptimizationCriterion
Type DataReference
Required Arguments
Type DataReference
Example
The following example shows how to create an OptimizationCriterion entity.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
parameter1 = model.GetParameter(Name="P1")
optimizationCriterion = parameter1.CreateOptimizationCriterion()
GetOptimizationCriterion
Get the DataReference of the OptimizationCriterion associated with a Parameter. An exception is thrown
if the entity is not found.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
270 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type DataReference
Example
The following example shows how the user can get a OptimizationCriterion to change one of its properties.
system1 = GetSystem(Name="RSO")
optimization1 = system1.GetContainer(ComponentName="Optimization")
optimizationModel1 = optimization1.GetModel()
parameter3 = optimizationModel1.GetParameter(Name="P3")
optimizationCriterion = parameter3.GetOptimizationCriterion()
optimizationCriterion.ObjectiveType = "eGT_MinimumPossible"
GetParameterStatistics
Type DataReference
Example
The following example shows how the user can get a ParameterStatistics entity and examine its Mean
property.
system1 = GetSystem(Name="SSA")
sixSigmaAnalysis1 = system1.GetContainer(ComponentName="Six Sigma Analysis")
sixSigmaModel1 = sixSigmaAnalysis1.GetModel()
parameter4 = sixSigmaModel1.GetParameter(Name="P4")
parameterStatistics1 = parameter4.GetParameterStatistics()
mean = parameterStatistics1.Mean
Methods
GetModel
Get the DataReference of the Model. An exception is thrown if the entity is not found.
Type DataReference
Example
The following example shows how the user can get a Model to change one of its properties.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 271
Design Exploration
dOEModel1 = designofExperiment1.GetModel()
dOEModel1.DOEType = "eDOETYPE_OSFD"
Data Entities
InputParameter
The data entity which describes an Input Parameter in DesignXplorer.
Properties
Attribute1
First editable attribute of the distribution for an uncertainty parameter. The nature of the attribute de-
pends on the distribution type. For instance, the first attribute of a Normal distribution is the Mean
value.
Type double
Read Only No
Attribute2
Second editable attribute of the distribution for an uncertainty parameter. The nature of the attribute
depends on the distribution type. For instance, the second attribute of a Normal distribution is the
Standard Deviation value. Some distribution type do not have a second attribute.
Type double
Read Only No
ConstantValue
Type Object
Read Only No
CustomDefinitionList
Type List<DataReference>
Read Only No
DiscreteLevels
Type List<DataReference>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
272 of ANSYS, Inc. and its subsidiaries and affiliates.
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
DistributionLowerBound
Type double
Read Only No
DistributionType
Type DistributionType
Read Only No
DistributionUpperBound
Type double
Read Only No
Enabled
Type bool
Read Only No
Kurtosis
Type double
LowerBound
Type double
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 273
Design Exploration
Mean
Type double
Nature
Type ParameterNature
Read Only No
NumberOfLevels
Number of levels if the parameter nature is Discrete, or the parameter nature is Continuous and the
UseManufacturableValues property is set to True.
Type int
Skewness
Type double
StandardDeviation
Type double
Type
Type SimulationType
Units
Units
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
274 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only Yes
UpperBound
Type double
Read Only No
UseManufacturableValues
Type bool
Read Only No
Methods
AddDiscreteLevel
Adds a Discrete Level entity on a discrete input parameter. A discrete level can have an integer value
(e.g. a number of holes, a number of turns, etc) or a string value (e.g. a material name or a geometry
file name). The command has optional arguments to specify the Name of the level and its Index in the
list of levels of the parameter. By default, the new level is added to the end of the list. The various discrete
levels of an input parameter represent independent configurations of the project, processed in the order
of their creation.
Type DataReference
Required Arguments
Value The value of the discrete level. Value can be an integer or a string.
Type Object
Optional Arguments
DisplayText DisplayText of the created entity. If not specified, a default name of the form "Level [#]" is
used.
Type string
Index The position of the new level in the list of discrete levels of the parameter. Index is zero-
based. If it is not specified, the new level is appended to the list.
Type int
Default Value -1
Example
The following example shows how to add new discrete levels on a discrete input parameter. The third
level is inserted between the two others.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 275
Design Exploration
AddLevels
Adds a list of levels to a continuous input parameter. Each level is a quantity or a real number corres-
ponding to a manufacturable value. The list of levels forms a restriction filter used when post-processing
the input parameter. If levels are added outside of the variation range, the lower and upper bounds
are adjusted accordingly.
Required Arguments
Type List<string>
Optional Arguments
Type bool
Example
The following example shows how to overwrite the manufacturable values of an input parameter and how
to define an additional value later.
CreateOptimizationCriterion
Type DataReference
Required Arguments
Type DataReference
Example
The following example shows how to create an OptimizationCriterion entity.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
276 of ANSYS, Inc. and its subsidiaries and affiliates.
parameter1 = model.GetParameter(Name="P1")
optimizationCriterion = parameter1.CreateOptimizationCriterion()
DeleteDiscreteLevels
Required Arguments
Type List<DataReference>
Example
The following example shows how to add and then delete one or more levels from a discrete input para-
meter.
DeleteLevels
Required Arguments
Type List<int>
Example
The following example shows how to add and then delete one or more levels from a continuous input
parameter for which the UseManufacturableValues property is set to True.
ExportData
Export the data of a DesignXplorer entity to a csv file. The entity can be one of the DesignXplorer chart
entities, a ParametricTable or an InputParameter entity.
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 277
Design Exploration
Optional Arguments
Type bool
Example
The following example shows how the user can export the table of Design Points and then the Parameters
Parallel chart of a Design of Experiments component.
GetCustomParameterDefinition
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can get a CustomParameterProperties.
system1 = GetSystem(Name="DOP")
optimization1 = system1.GetContainer(ComponentName="Optimization")
optimizationModel1 = optimization1.GetModel()
inputParameter1 = optimizationModel1.GetParameter(Name="P1")
customParameterDefinition1 = inputParameter1.GetCustomParameterDefinition(ExtensionName="UncertaintyParamet
customParameterDefinition1.Distribution = "Triangular"
GetDiscreteLevel
Get a discrete level by name from an input parameter. The parameter's full and ordered list of discrete
levels is available as its "DiscreteLevels" property.
Type DataReference
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
278 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Example
The following example shows how the user can retrieve a discrete level of a discrete input parameter by
its name.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
DiscreteInputParameter1 = dOEModel1.GetParameter(Name="P1")
level = DiscreteInputParameter1.GetDiscreteLevel(Name="Level 1")
GetOptimizationCriterion
Get the DataReference of the OptimizationCriterion associated with a Parameter. An exception is thrown
if the entity is not found.
Type DataReference
Required Arguments
Type DataReference
Example
The following example shows how the user can get a OptimizationCriterion to change one of its properties.
system1 = GetSystem(Name="RSO")
optimization1 = system1.GetContainer(ComponentName="Optimization")
optimizationModel1 = optimization1.GetModel()
parameter3 = optimizationModel1.GetParameter(Name="P3")
optimizationCriterion = parameter3.GetOptimizationCriterion()
optimizationCriterion.ObjectiveType = "eGT_MinimumPossible"
GetParameterStatistics
Type DataReference
Example
The following example shows how the user can get a ParameterStatistics entity and examine its Mean
property.
system1 = GetSystem(Name="SSA")
sixSigmaAnalysis1 = system1.GetContainer(ComponentName="Six Sigma Analysis")
sixSigmaModel1 = sixSigmaAnalysis1.GetModel()
parameter4 = sixSigmaModel1.GetParameter(Name="P4")
parameterStatistics1 = parameter4.GetParameterStatistics()
mean = parameterStatistics1.Mean
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 279
Design Exploration
OutputParameter
Output parameter entity for DesignXplorer.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IgnoreForFiltering
Determines whether the parameter filtering is not applicable to the output parameter in the correlation
context.
Type bool
Read Only No
InheritFromModelSettings
Determines whether the Maximum Predicted Relative Error defined at the Model level is applicable to
the output parameter.
Type bool
Read Only No
LowerBound
Minimum value extracted from existing design points and/or sample sets.
Type double
MaxPredictedRelativeError
Maximum Relative Error targeted for an output parameter when refining with the Kriging algorithm.
This is the maximum predicted relative error that is acceptable for the selected output parameter.
Type double
Read Only No
PredictedRelativeError
Current value of the Predicted Relative Error when refining with the Kriging algorithm
Type double
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
280 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only Yes
TransformationType
Transformation Type
Type TransformationType
Read Only No
Units
Units
Type string
UpperBound
Maximum value extracted from existing design points and/or sample sets.
Type double
Methods
CreateOptimizationCriterion
Type DataReference
Required Arguments
Type DataReference
Example
The following example shows how to create an OptimizationCriterion entity.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
parameter1 = model.GetParameter(Name="P1")
optimizationCriterion = parameter1.CreateOptimizationCriterion()
GetOptimizationCriterion
Get the DataReference of the OptimizationCriterion associated with a Parameter. An exception is thrown
if the entity is not found.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 281
Design Exploration
Type DataReference
Required Arguments
Type DataReference
Example
The following example shows how the user can get a OptimizationCriterion to change one of its properties.
system1 = GetSystem(Name="RSO")
optimization1 = system1.GetContainer(ComponentName="Optimization")
optimizationModel1 = optimization1.GetModel()
parameter3 = optimizationModel1.GetParameter(Name="P3")
optimizationCriterion = parameter3.GetOptimizationCriterion()
optimizationCriterion.ObjectiveType = "eGT_MinimumPossible"
GetParameterStatistics
Type DataReference
Example
The following example shows how the user can get a ParameterStatistics entity and examine its Mean
property.
system1 = GetSystem(Name="SSA")
sixSigmaAnalysis1 = system1.GetContainer(ComponentName="Six Sigma Analysis")
sixSigmaModel1 = sixSigmaAnalysis1.GetModel()
parameter4 = sixSigmaModel1.GetParameter(Name="P4")
parameterStatistics1 = parameter4.GetParameterStatistics()
mean = parameterStatistics1.Mean
SixSigmaModel
Entity which performs and manages the Six Sigma Analysis Component
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
ExportDesignPoints
If True and PreserveDesignPoints is True as well, export project for each preserved Design Point.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
282 of ANSYS, Inc. and its subsidiaries and affiliates.
Type bool
Read Only No
NumberOfRetries
Indicates the number of times DX will try to update the failed design points.
Type int
Read Only No
NumSamp
Number of Samples
Type int
Read Only No
PreserveDesignPoints
If True, preserve the Design Points at the project level after the component Update.
Type bool
Read Only No
RetainDesignPoints
If True and PreserveDesignPoints is True as well, retain data for each preserved Design Point.
Type bool
Read Only No
RetryDelay
Indicates how much time will elapse between tries. This option is only applicable when NumberOfRetries
is greater than 0, otherwise it has no effect.
Type Quantity
Read Only No
SampleGenType
Sampling Type
Type SampleGenType
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 283
Design Exploration
Methods
CreateChart
Creates a Chart entity. The chart must be updated once after its creation by invoking its Update method.
Then changes to its properties will update the chart automatically.
Type DataReference
Required Arguments
ChartType Type of chart to be created. The possible values depend on the type of Model. For instance, a
ResponseSurface model accepts Spider, LocalSensitivity and Response chart while a Correla-
tionModel accepts CorrelationMatrix, DeterminationMatrix and CorrelationScatter charts.
Type ChartType
Optional Arguments
DisplayText Displayed name of the chart. If not specified, a default name is applied, depending on the
value of ChartType.
Type string
Example
The following example shows how to create a chart.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
TradeoffChart = model.CreateChart(ChartType="eChartTradeoff")
TradeoffChart.Update()
DeleteCharts
Required Arguments
Type List<DataReference>
Example
The following example shows how to delete existing charts.
container = system1.GetContainer(ComponentName="Optimization")
model = container.GetModel()
chart1 = model.GetChart(Name="TradeoffChart 1")
chart2 = model.GetChart(Name="SamplesChart 1")
model.DeleteCharts(Charts=[chart1, chart2])
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
284 of ANSYS, Inc. and its subsidiaries and affiliates.
DuplicateChart
Duplicates a Chart entity. The chart must be updated once after its creation by invoking its Update
method. Then changes to its properties will update the chart automatically.
Type DataReference
Required Arguments
Type DataReference
Optional Arguments
DisplayText Displayed name of the chart. If not specified, a default name is applied, depending
on the value of ChartType.
Type string
TargetModel The model on which the duplicated chart is created. If this parameter is not set,
the model of the source chart is used.
Type DataReference
TargetResponsePoint Parent TargetResponsePoint of the chart. If this parameter is not set, the response
point of the source chart is used if applicable.
Type DataReference
Example
The following example shows how to duplicate a chart.
GetChart
Query to return the chart reference for a given model and chart name.
Type DataReference
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 285
Design Exploration
GetParameter
Get the DataReference of a Parameter. An exception is thrown if the entity is not found.
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can get a parameter of a model to change one of its properties.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
inputParameter1 = dOEModel1.GetParameter(Name="P1")
inputParameter1.LowerBound = 1
GetParameters
Get the DataReferences of the InputParameter and OutputParameter of the model. If the optional argu-
ment InputParameters is not specified, the query returns all parameters. If it is specified and True, the
query returns only input parameters. If it is False, the query returns only output parameters.
Type DataReferenceSet
Optional Arguments
InputParameters If True, the query returns only input parameters. If False, the query returns only output
parameters. If the argument is ommitted, the query returns all parameters.
Type bool
Example
The following example shows how the user can get the parameters of a model.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
parameters = dOEModel1.GetParameters()
GetParametricTable
Get the DataReference of ParametricTable. An exception is thrown if the entity is not found. Names of
the tables generated internally are: "DesignPoints", "CorrelationMatrix", "CorrelationScatter", "MinDesign-
Points", "MaxDesignPoints", "ResponsePoints", "DeterminationMatrix".
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
286 of ANSYS, Inc. and its subsidiaries and affiliates.
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can get a ParametricTable to add a new row and set values.
system1 = GetSystem(Name="RSO")
designofExperiment1 = system1.GetContainer(ComponentName="Design of Experiment")
dOEModel1 = designofExperiment1.GetModel()
parametricTable = dOEModel1.GetParametricTable(Name="DesignPoints")
parametricTable.AddRow()
parametricTable.SetCellValue(RowIndex=9,ColumnIndex=0,Value="2.1")
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 287
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
288 of ANSYS, Inc. and its subsidiaries and affiliates.
Engineering Data
Engineering Data
The container used by an Engineering Data component to maintain project data.
Methods
AddToProjectDefaults
Adds an item, to the list of items, that will be added to new projects by default.
Required Arguments
Type string
Optional Arguments
ItemType The EngineeringDataType of the item. This can be Material, Load, or BeamSection.
Type string
Example
The following example shows how to add a material named Concrete to the project defaults.
CreateMaterial
Adds a new material to the container.
Type DataReference
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 289
Engineering Data
Type string
Export
Exports engineering data to the specified file.
Required Arguments
FilePath The target path for the Engineering Data file ("*.xml").
Type string
Type string
Type string
Optional Arguments
ApplyScaleOffset The flag to specify if the scale factor and offset value will be applied during export.
Type bool
IgnoreSuppressed The flag to specify if suppressed engineering data will be ignored during export.
Type bool
Type bool
ReplaceMaterial The flag to specify if the earlier material data will be replaced in case of similar mater-
ial names.
Type bool
Example
template = GetTemplate(TemplateName="EngData") system = template.CreateSystem(Position="Default")
container = system.GetContainer(ComponentName="Engineering Data") materials = container.GetMater-
ials() EngData.WriteMaterials(MaterialList=materials, FilePath=r"d:\data\OutputMaterials.xml",
Format="MatML31", UnitSystem="MKS_STANDARD", ReplaceMaterial=true)
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
290 of ANSYS, Inc. and its subsidiaries and affiliates.
GetMaterial
Returns a material of a given name from a container.
The name matching is case insensitive. If a material is not found an exception is thrown.
Type DataReference
Required Arguments
Type string
Example
The following example creates a new Engineering Data system and queries the default material, Structural
Steel.
template = GetTemplate(TemplateName="EngData")
system = template.CreateSystem(Position="Default")
container = system.GetContainer(ComponentName="Engineering Data")
structuralSteel = container.GetMaterial(Name="Structural Steel")
GetMaterials
Returns the list of materials in a container. If no materials are in the container, the list is empty.
Type DataReferenceSet
Import
Imports engineering data into an existing source from a specified source.
Required Arguments
Type string
ImportMaterial
Reads the data for a single material into the requested container.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 291
Engineering Data
Type DataReference
Required Arguments
Type string
Type string
Example
This code shows how to read the Copper Alloy material from the provided samples, into Engineering Data
to use in an analysis.
RemoveFromProjectDefaults
Removes an item, from the list of items, that are added to new projects by default.
Required Arguments
Type string
Optional Arguments
ItemType The EngineeringDataType of the item. This can be Material, Load, or BeamSection.
Type string
Example
The following example shows how to remove Concrete from project defaults.
Data Entities
CurveFit
The entity to store curve fitting information.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
292 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
CurveFitData
The coefficients of material model that approximates the experimental test data.
Type DataReference
Read Only No
DependentPropertyColl
The collection of experimental test data, e.g., Uniaxial Test data (Engineering Strain Vs Engineering
Stress).
Type DataReferenceSet
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
UnitSystemWhenSolved
Type string
Read Only No
Methods
AddTestData
Required Arguments
Type DataReference
Example
The following example loads a material with experimental test data and a Neo-Hookean hyperelastic
property.
template = GetTemplate(TemplateName="EngData")
system = template.CreateSystem()
engineeringData = system.GetContainer(ComponentName="Engineering Data")
neopreneRubber = engineeringData.ReadMaterial(
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 293
Engineering Data
Name="Neoprene Rubber",
Source="Hyperelastic_Materials.xml")
neoHookeanProperty = neopreneRubber.GetProperty(Name="Neo-Hookean")
neoHookeanPropertyData = neoHookeanProperty.GetPropertyData(Name="Neo-Hookean")
curveFit = neoHookeanPropertyData.CreateCurveFitting(
Type="Neo-Hookean",
Definition="")
uniaxialProperty = neopreneRubber.GetProperty(Name="Uniaxial Test Data")
curveFit.AddTestData(TestData=uniaxialProperty)
biaxialProperty = neopreneRubber.GetProperty(Name="Biaxial Test Data")
curveFit.AddTestData(TestData=biaxialProperty)
shearProperty = neopreneRubber.GetProperty(Name="Shear Test Data")
curveFit.AddTestData(TestData=shearProperty)
volumetricProperty = neopreneRubber.GetProperty(Name="Volumetric Test Data")
curveFit.AddTestData(TestData=volumetricProperty)
curveFit.RemoveTestData(TestData=uniaxialProperty)
curveFit.AddTestData(TestData=uniaxialProperty)
curveFit.Solve()
curveFit.CopyCoefficients(Destination=neoHookeanPropertyData)
curveFit.Delete()
CopyCoefficients
Copies the fitted coefficients from the curve fitting to the property data provided.
Required Arguments
Type DataReference
Example
The following example loads a material with experimental test data and a Neo-Hookean hyperelastic
property.
template = GetTemplate(TemplateName="EngData")
system = template.CreateSystem()
engineeringData = system.GetContainer(ComponentName="Engineering Data")
neopreneRubber = engineeringData.ReadMaterial(
Name="Neoprene Rubber",
Source="Hyperelastic_Materials.xml")
neoHookeanProperty = neopreneRubber.GetProperty(Name="Neo-Hookean")
neoHookeanPropertyData = neoHookeanProperty.GetPropertyData(Name="Neo-Hookean")
curveFit = neoHookeanPropertyData.CreateCurveFitting(
Type="Neo-Hookean",
Definition="")
uniaxialProperty = neopreneRubber.GetProperty(Name="Uniaxial Test Data")
curveFit.AddTestData(TestData=uniaxialProperty)
biaxialProperty = neopreneRubber.GetProperty(Name="Biaxial Test Data")
curveFit.AddTestData(TestData=biaxialProperty)
shearProperty = neopreneRubber.GetProperty(Name="Shear Test Data")
curveFit.AddTestData(TestData=shearProperty)
volumetricProperty = neopreneRubber.GetProperty(Name="Volumetric Test Data")
curveFit.AddTestData(TestData=volumetricProperty)
curveFit.RemoveTestData(TestData=uniaxialProperty)
curveFit.AddTestData(TestData=uniaxialProperty)
curveFit.Solve()
curveFit.CopyCoefficients(Destination=neoHookeanPropertyData)
curveFit.Delete()
Delete
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
294 of ANSYS, Inc. and its subsidiaries and affiliates.
Example
The following example loads a material with experimental test data and a Neo-Hookean hyperelastic
property.
template = GetTemplate(TemplateName="EngData")
system = template.CreateSystem()
engineeringData = system.GetContainer(ComponentName="Engineering Data")
neopreneRubber = engineeringData.ReadMaterial(
Name="Neoprene Rubber",
Source="Hyperelastic_Materials.xml")
neoHookeanProperty = neopreneRubber.GetProperty(Name="Neo-Hookean")
neoHookeanPropertyData = neoHookeanProperty.GetPropertyData(Name="Neo-Hookean")
curveFit = neoHookeanPropertyData.CreateCurveFitting(
Type="Neo-Hookean",
Definition="")
uniaxialProperty = neopreneRubber.GetProperty(Name="Uniaxial Test Data")
curveFit.AddTestData(TestData=uniaxialProperty)
biaxialProperty = neopreneRubber.GetProperty(Name="Biaxial Test Data")
curveFit.AddTestData(TestData=biaxialProperty)
shearProperty = neopreneRubber.GetProperty(Name="Shear Test Data")
curveFit.AddTestData(TestData=shearProperty)
volumetricProperty = neopreneRubber.GetProperty(Name="Volumetric Test Data")
curveFit.AddTestData(TestData=volumetricProperty)
curveFit.RemoveTestData(TestData=uniaxialProperty)
curveFit.AddTestData(TestData=uniaxialProperty)
curveFit.Solve()
curveFit.CopyCoefficients(Destination=neoHookeanPropertyData)
curveFit.Delete()
GetChartData
Material Property
Material Property Data
Type DataReference
RemoveTestData
Required Arguments
Type DataReference
Example
The following example loads a material with experimental test data and a Neo-Hookean hyperelastic
property.
template = GetTemplate(TemplateName="EngData")
system = template.CreateSystem()
engineeringData = system.GetContainer(ComponentName="Engineering Data")
neopreneRubber = engineeringData.ReadMaterial(
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 295
Engineering Data
Name="Neoprene Rubber",
Source="Hyperelastic_Materials.xml")
neoHookeanProperty = neopreneRubber.GetProperty(Name="Neo-Hookean")
neoHookeanPropertyData = neoHookeanProperty.GetPropertyData(Name="Neo-Hookean")
curveFit = neoHookeanPropertyData.CreateCurveFitting(
Type="Neo-Hookean",
Definition="")
uniaxialProperty = neopreneRubber.GetProperty(Name="Uniaxial Test Data")
curveFit.AddTestData(TestData=uniaxialProperty)
biaxialProperty = neopreneRubber.GetProperty(Name="Biaxial Test Data")
curveFit.AddTestData(TestData=biaxialProperty)
shearProperty = neopreneRubber.GetProperty(Name="Shear Test Data")
curveFit.AddTestData(TestData=shearProperty)
volumetricProperty = neopreneRubber.GetProperty(Name="Volumetric Test Data")
curveFit.AddTestData(TestData=volumetricProperty)
curveFit.RemoveTestData(TestData=uniaxialProperty)
curveFit.AddTestData(TestData=uniaxialProperty)
curveFit.Solve()
curveFit.CopyCoefficients(Destination=neoHookeanPropertyData)
curveFit.Delete()
Solve
The curve fitting module will solve for the coefficients which most nearly approximate the experimental
test data.
CurveFitData
The entity which contains data relevant to the curve fitting solution. It is possible to call GetData on
this
entity after the curve fitting solution to determine coefficients. Also for nonlinear fits the seed values
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Methods
DeleteData
Required Arguments
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
296 of ANSYS, Inc. and its subsidiaries and affiliates.
Optional Arguments
Type string
SheetQualifiers SheetQualifiers is used to pass in the qualifiers to select between multiple sheets witht
the same name. This is a dictionary of the Qualifier and its Value.
Example
The following example illustrates the deletion of a row from a tabular data sheet.
#
# Create a new Engineering Data System and access Structural Steel
#
template1 = GetTemplate(TemplateName="EngData")
system1 = template1.CreateSystem()
engineeringData1 = system1.GetContainer(ComponentName="Engineering Data")
matl1 = engineeringData1.GetMaterial(Name="Structural Steel")
#
# Delete the first row in the Density property
#
matlProp1 = matl1.GetProperty(Name="Density")
matlProp1.DeleteTabularDataRow(Index = 0)
#
# Delete the first row in the Coefficient of Thermal Expansion property with optional SheeetNamea nd SheetQ
#
matlProp2 = matl1.GetProperty(Name="Coefficient of Thermal Expansion")
matlProp2.DeleteTabularDataRow(
SheetName="Coefficient of Thermal Expansion",
SheetQualifiers={"Definition Method": "Secant", "Behavior": "Isotropic"},
Index = 0)
GetData
Type Object
Optional Arguments
AsDictionary If set to true, the data will be returned as a dictionary where the keys are variable names
and the values are the data for each variable. If set to false, the data will be returned
in scalar or list format without the variable names.
Type bool
ColumnMajor If set to true, the data will be returned in column-major order. If set to false, the data
will be returned in row-major order.
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 297
Engineering Data
EndIndex The end index for requesting a subset of the data (zero-based).
Type int
SheetName Specifies the sheet name when the data contains multiple sheets.
Type string
SheetQualifiers Used to pass in the qualifiers to select between multiple sheets with the same name.
This is a dictionary of qualifiers and values.
StartIndex The start index for requesting a subset of the data (zero-based).
Type int
Default Value 0
Variables Names of the variables for which data is requested (string or list of strings).
Type Object
Example
In this example, all data is requested for the given tabular data entity.
tabData1.GetData()
tabData1.GetData(ColumnMajor=False)
tabData1.GetData(AsDictionary=True)
In this example, data for variables Density and Temperature is requested in dictionary format.
SetData
Optional Arguments
Data Sets the data using a dictionary form. The keys are the variable names and the values
are the data. The use of this argument is mutually exclusive with "Values" and "Vari-
ables".
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
298 of ANSYS, Inc. and its subsidiaries and affiliates.
Type Dictionary<string, List<Object>>
Index Specifies the starting location used to set the data (zero-based). A value of -1 indicates
that the data should be appended to the existing data.
Type int
Default Value 0
SheetName Specifies the sheet name when the data contains multiple sheets.
Type string
SheetQualifiers Used to pass in the qualifiers to select between multiple sheets with the same name.
This is a dictionary of qualifiers and values.
Values List of data values set in conjunction with the "Variables" parameter. This parameter
and the "Data" parameter are mutually exclusive.
Type List<List<Object>>
Variables Names of the variables for which data is being set. This parameter and and the "Data"
parameter are mutually exclusive.
Type List<string>
Example
#
# Create a new Engineering Data System and access Structural Steel
#
template1 = GetTemplate(TemplateName="EngData")
system1 = template1.CreateSystem()
engineeringData1 = system1.GetContainer(ComponentName="Engineering Data")
matl1 = engineeringData1.GetMaterial(Name="Structural Steel")
#
# Change the value of a simple single-valued property
#
matlProp1 = matl1.GetProperty(Name="Density")
matlProp1.SetData(
Variables="Density",
Values="8500 [kg m^-3]")
#
# Set Temperature-dependent data for Elasticity based
# on lists of variables and values.
matlProp2 = matl1.GetProperty(Name="Elasticity")
temperature = ["400 [K]", "600 [K]", "800 [K]"]
E = ["2e5 [MPa]", "1.9e5 [MPa]", "1.6e5 [MPa]"]
matlProp2.SetData(
Variables = ["Temperature","Young's Modulus"],
Values = [temperature, E])
#
# Change the Temperature for the second table entry.
#
matlProp2.SetData(
Index = 1,
Variables = "Temperature",
Values = "625 [K]")
#
# Set a list for Poisson's Ratio starting at the second table entry.
#
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 299
Engineering Data
matlProp2.SetData(
Index = 1,
Variables = "Poisson's Ratio",
Values = [0.3, 0.3])
#
# Set Temperature-dependent property data for the Coefficient of Thermal Expansion
# using a dictionary. The dictionary key is the Variable name,
# followed by the list of values for the variable.
#
matlProp3 = matl1.GetProperty(Name="Coefficient of Thermal Expansion")
newData = {"Temperature": ["200 [F]","400 [F]","600 [F]","800 [F]","1000 [F]"],
"Coefficient of Thermal Expansion" : ["6.3e-6 [F^-1]", "7.0e-6 [F^-1]",
"7.46e-6 [F^-1]", "7.8e-6 [F^-1]",
"8.04e-6 [F^-1]"]}
matlProp3.SetData(
SheetName="Coefficient of Thermal Expansion",
SheetQualifiers={"Definition Method": "Secant", "Behavior": "Isotropic"},
Data = newData)
SetQualifier
Required Arguments
Type string
Type string
Optional Arguments
SheetName The name of the tabular data sheet that contains the qualifier.
Type string
SheetQualifiers SheetQualifiers can be used to pass in the qualifiers to select between multiple
sheets witht the same name. This is a dictionary of the Qualifier and its Value.
VariableName The name of the Variable that contains the qualifier to be changed.
Type string
VariableQualifiers VariableQualifiers can used to pass in the qualifiers to select between multiple
variables witht the same name. This is a dictionary of the Qualifier and its Value.
Example
The following example changes the 'Derive From' setting within an Isotropic Elasticity material property
to be "Bulk Modulus and Poisson's Ratio".
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
300 of ANSYS, Inc. and its subsidiaries and affiliates.
SheetName="Elasticity",
Qualifier="Derive from",
Value="Bulk Modulus and Poisson's Ratio")
Material
The entity to store material information.
Properties
Description
Type string
Read Only No
DisplayName
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Source
Type string
Methods
AddToFavorites
CreateProperty
Includes a physical quantity or the constitutive relation for the physical response of a material. A property
can be visualized as one or more tables of data made up of one or more dependent and independent
variables.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 301
Engineering Data
The material property is created based on the specified optional parameters "Definition" and "Behavior".
Type DataReference
Required Arguments
Type string
Optional Arguments
Behavior The optional string to identify the way in which a new material property will behave.
Behavior of some material properties can be specified in different ways, e.g., Elasticity
can be specified as Isotropic, Orthotropic or Anisotropic.
Type string
Definition The optional string to identify the way in which new material property will be defined.
Some material properties are defined in different ways, e.g., Thermal Expansion can be
defined as Secant Coefficient of Thermal Expansion and Instantaneous Coefficient of
Thermal Expansion.
Type string
Qualifiers The optional dictionary of a qualifier name and it's corresponding value.
Example
The following example creates a new Engineering Data system and adds Coefficient of Thermal Expansion
and Elasticity material properties to the default material Structural Steel.
Coefficient of Thermal Expansion is created using Secant definition and Orthotropic behavior.
Elasticity is created using Orthotropic behavior.
ENGDTemplate = GetTemplate(TemplateName="EngData")
ENGDSystem = ENGDTemplate.CreateSystem(Position="Default")
Delete
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
302 of ANSYS, Inc. and its subsidiaries and affiliates.
Duplicate
Duplicates the data in this material and returns a new material. The name of the new material will be
appended with a numerical value to make it unique.
Type DataReference
Required Arguments
Type DataContainerReference
GetProperty
Type DataReference
Required Arguments
Type string
Example
The following example creates new Engineering Data system and queries Coefficient of Thermal Expansion
property of the default material Structural Steel.
ENGDTemplate = GetTemplate(TemplateName="EngData")
ENGDSystem = ENGDTemplate.CreateSystem(Position="Default")
IsSuppressed
Material
Material Property
Material Property Data
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 303
Engineering Data
IsValid
Type bool
Optional Arguments
Type Output<string>
Refresh
This will repopulate the contents of a material with data from a given source. The NameInSource
property of a Material will be used to find a match in the source to pull data from. In the event that
NameInSource is not set, the DisplayName property will be used instead.
Note: This operation will cause destruction of any data currently in the material.
template = GetTemplate(TemplateName="EngData")
system = template.CreateSystem(Position="Default")
container = system.GetContainer(ComponentName="Engineering Data")
structSteel = container.GetMaterial(Name="Structural Steel")
density = structSteel.GetProperty(Name="Density")
density.Delete()
structSteel.UpdateMaterial(Source="General_Materials.xml")
restoredDensity = structSteel.GetProperty(Name="Density")
restoredDensity.SetData(SheetName="", Index=0, Variables=["Density"], Values=[["8000 [kg m^-3]"]])
Required Arguments
Type string
RemoveFromFavorites
Optional Arguments
Type string
Type DataReference
Type string
Source The location of the file that contains the item on disk.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
304 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Type The type of the object to delete. This is either a Material or a Mixture.
Type EngineeringDataType
Example
The following example gets the list of favorites from Engineering Data. It then selects and deletes the "Gray
Cast Iron" material from the list.
favorites = EngData.LoadFavoriteItems()
matl = favorites.GetMaterial(Name="Gray Cast Iron")
EngData.DeleteFromFavorites(
Material=matl,
Type="Material")
SetAsDefaultFluidForModel
This will specify the material to use (or not use) for parts in the model which are marked as a fluid.
If the material is in the Engineering Data component it will set or unset the material to be used in the
model component of the system(s) that contain this Engineering Data component.
If the material is contained in Favorites it will set or unset the material to use as the default on fluids
in the Engineering Data component when a new system is added to the project.
The material is set as the default in Favorites. It will automatically be added to the list of project defaults.
Optional Arguments
Default This Boolean is used to set or unset the material as the default.
Type bool
SetAsDefaultSolidForModel
This will specify the material to use (or not use) for parts in the model which are marked as a solid.
If the material is in the Engineering Data component it will set or unset the material to be used in the
model component of the system(s) that contain this Engineering Data component.
If the material is contained in Favorites it will set or unset the material to use as the default on solids
in the Engineering Data component when a new system is added to the project.
The material is set as the default in Favorites. It will automatically be added to the list of project defaults.
Optional Arguments
Default This Boolean is used to set or unset the material as the default.
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 305
Engineering Data
SetSuppression
Item can be suppressed to prevent it from being sent to a downstream cell in the system.
Material
Material property
Required Arguments
Type bool
Unlink
Unlinks a material from its underlying source. Once this occurs, the material can no longer be restored
to its original state and the material will no longer have a source.
MaterialProperty
The entity to store material property information.
A material property is the identifier for the singular information (for example, Density) that together
with other properties defines or models the behavior of the material. A property is always defined by
at least one table (tabular data), which could be singular. Some properties can contain a collection of
tabular data (for example, Isotropic Elasticity).
Properties
Behavior
The string that defines the way in which the material property behaves, e.g., Elasticity has Isotropic,
Orthotropic or Anisotropic behavior.
Type string
Read Only No
Definition
The definition of the material property. Some material properties are defined in different ways, e.g.,
Thermal Expansion can be defined as Secant Coefficient of Thermal Expansion and Instantaneous
Coefficient of Thermal Expansion.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
306 of ANSYS, Inc. and its subsidiaries and affiliates.
Description
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
PropertyDataColl
Type DataReferenceSet
TypeName
Type string
Read Only No
Methods
AddTestData
Required Arguments
Type DataReference
BeginBatchUpdate
Marks the start of a series of data modifications to a table of data, to improve performance.
CreatePropertyData
Include an additional property data for a material property. Some properties may have more than one
property data to describe the material property.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 307
Engineering Data
Type DataReference
Required Arguments
Type string
Optional Arguments
Behavior A string to identify how the new material property data will behave.
The behavior of some material properties can be specified in different ways, e.g.,
Elasticity can be specified as Isotropic, Orthotropic or Anisotropic.
Type string
Definition A string to identify how the new material property data will be defined.
Some material properties are defined in different ways, e.g., Thermal Expansion can be
defined as Secant Coefficient of Thermal Expansion and Instantaneous Coefficient of
Thermal Expansion.
Type string
Qualifiers The optional dictionary of a qualifier name and it's corresponding value.
Example
The following example creates the material property data Orthotropic Secant Coefficient of Thermal Ex-
pansion on the material property Coefficient of Thermal Expansion. This example assumes the material
Structural Steel has been obtained from the General Materials library.
Get the material property we are going to create a new material property data on.
orthoSecantThermExpansionMatPropData = thermExpansionMatProp.CreatePropertyData(
Name="Coefficient of Thermal Expansion",
Definition="Secant",
Behavior="Orthotropic")
Delete
Optional Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
308 of ANSYS, Inc. and its subsidiaries and affiliates.
Behavior of some material properties can be specified in different ways e.g. Elasticity
can be specified as Isotropic, Orthotropic or Anisotropic.
Type string
Some material properties are defined in different ways e.g. Thermal Expansion can be
defined as Secant Coefficient of Thermal Expansion and Instantaneous Coefficient of
Thermal Expansion.
Type string
DeleteData
Required Arguments
Type int
Optional Arguments
Type string
SheetQualifiers SheetQualifiers is used to pass in the qualifiers to select between multiple sheets witht
the same name. This is a dictionary of the Qualifier and its Value.
Example
The following example illustrates the deletion of a row from a tabular data sheet.
#
# Create a new Engineering Data System and access Structural Steel
#
template1 = GetTemplate(TemplateName="EngData")
system1 = template1.CreateSystem()
engineeringData1 = system1.GetContainer(ComponentName="Engineering Data")
matl1 = engineeringData1.GetMaterial(Name="Structural Steel")
#
# Delete the first row in the Density property
#
matlProp1 = matl1.GetProperty(Name="Density")
matlProp1.DeleteTabularDataRow(Index = 0)
#
# Delete the first row in the Coefficient of Thermal Expansion property with optional SheeetNamea nd SheetQ
#
matlProp2 = matl1.GetProperty(Name="Coefficient of Thermal Expansion")
matlProp2.DeleteTabularDataRow(
SheetName="Coefficient of Thermal Expansion",
SheetQualifiers={"Definition Method": "Secant", "Behavior": "Isotropic"},
Index = 0)
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 309
Engineering Data
EndBatchUpdate
GetChartData
Material Property
Material Property Data
Type DataReference
GetData
Type Object
Optional Arguments
AsDictionary If set to true, the data will be returned as a dictionary where the keys are variable names
and the values are the data for each variable. If set to false, the data will be returned
in scalar or list format without the variable names.
Type bool
ColumnMajor If set to true, the data will be returned in column-major order. If set to false, the data
will be returned in row-major order.
Type bool
EndIndex The end index for requesting a subset of the data (zero-based).
Type int
SheetName Specifies the sheet name when the data contains multiple sheets.
Type string
SheetQualifiers Used to pass in the qualifiers to select between multiple sheets with the same name.
This is a dictionary of qualifiers and values.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
310 of ANSYS, Inc. and its subsidiaries and affiliates.
StartIndex The start index for requesting a subset of the data (zero-based).
Type int
Default Value 0
Variables Names of the variables for which data is requested (string or list of strings).
Type Object
Example
In this example, all data is requested for the given tabular data entity.
tabData1.GetData()
tabData1.GetData(ColumnMajor=False)
tabData1.GetData(AsDictionary=True)
In this example, data for variables Density and Temperature is requested in dictionary format.
GetPropertyData
The property data returned is based on specified optional parameters "Definition" and "Behavior".
Return The material property data that matches specified type name, definition and behavior.
Type DataReference
Required Arguments
Type string
Optional Arguments
Behavior The optional string to specify the material property data behavior.
Behavior of some material properties can be specified in different ways, e.g., Elasticity
can be specified as Isotropic, Orthotropic or Anisotropic.
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 311
Engineering Data
Definition The optional string to specify the material property data definition.
Some material properties are defined in different ways, e.g., Thermal Expansion can be
defined as Secant Coefficient of Thermal Expansion and Instantaneous Coefficient of
Thermal Expansion.
Type string
Qualifiers The optional dictionary of a qualifier name and it's corresponding value.
Example
The following example creates new Engineering Data system and queries Coefficient of Thermal Expansion
property data of the default material Structural Steel.
ENGDTemplate = GetTemplate(TemplateName="EngData")
ENGDSystem = ENGDTemplate.CreateSystem(Position="Default")
IsSuppressed
Material
Material Property
Material Property Data
Type bool
IsValid
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
312 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type DataReference
Optional Arguments
Type Output<string>
RemoveTestData
Required Arguments
Type DataReference
SetData
Optional Arguments
Data Sets the data using a dictionary form. The keys are the variable names and the values
are the data. The use of this argument is mutually exclusive with "Values" and "Vari-
ables".
Index Specifies the starting location used to set the data (zero-based). A value of -1 indicates
that the data should be appended to the existing data.
Type int
Default Value 0
SheetName Specifies the sheet name when the data contains multiple sheets.
Type string
SheetQualifiers Used to pass in the qualifiers to select between multiple sheets with the same name.
This is a dictionary of qualifiers and values.
Values List of data values set in conjunction with the "Variables" parameter. This parameter
and the "Data" parameter are mutually exclusive.
Type List<List<Object>>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 313
Engineering Data
Variables Names of the variables for which data is being set. This parameter and and the "Data"
parameter are mutually exclusive.
Type List<string>
Example
#
# Create a new Engineering Data System and access Structural Steel
#
template1 = GetTemplate(TemplateName="EngData")
system1 = template1.CreateSystem()
engineeringData1 = system1.GetContainer(ComponentName="Engineering Data")
matl1 = engineeringData1.GetMaterial(Name="Structural Steel")
#
# Change the value of a simple single-valued property
#
matlProp1 = matl1.GetProperty(Name="Density")
matlProp1.SetData(
Variables="Density",
Values="8500 [kg m^-3]")
#
# Set Temperature-dependent data for Elasticity based
# on lists of variables and values.
matlProp2 = matl1.GetProperty(Name="Elasticity")
temperature = ["400 [K]", "600 [K]", "800 [K]"]
E = ["2e5 [MPa]", "1.9e5 [MPa]", "1.6e5 [MPa]"]
matlProp2.SetData(
Variables = ["Temperature","Young's Modulus"],
Values = [temperature, E])
#
# Change the Temperature for the second table entry.
#
matlProp2.SetData(
Index = 1,
Variables = "Temperature",
Values = "625 [K]")
#
# Set a list for Poisson's Ratio starting at the second table entry.
#
matlProp2.SetData(
Index = 1,
Variables = "Poisson's Ratio",
Values = [0.3, 0.3])
#
# Set Temperature-dependent property data for the Coefficient of Thermal Expansion
# using a dictionary. The dictionary key is the Variable name,
# followed by the list of values for the variable.
#
matlProp3 = matl1.GetProperty(Name="Coefficient of Thermal Expansion")
newData = {"Temperature": ["200 [F]","400 [F]","600 [F]","800 [F]","1000 [F]"],
"Coefficient of Thermal Expansion" : ["6.3e-6 [F^-1]", "7.0e-6 [F^-1]",
"7.46e-6 [F^-1]", "7.8e-6 [F^-1]",
"8.04e-6 [F^-1]"]}
matlProp3.SetData(
SheetName="Coefficient of Thermal Expansion",
SheetQualifiers={"Definition Method": "Secant", "Behavior": "Isotropic"},
Data = newData)
SetQualifier
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
314 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Type string
Optional Arguments
SheetName The name of the tabular data sheet that contains the qualifier.
Type string
SheetQualifiers SheetQualifiers can be used to pass in the qualifiers to select between multiple
sheets witht the same name. This is a dictionary of the Qualifier and its Value.
VariableName The name of the Variable that contains the qualifier to be changed.
Type string
VariableQualifiers VariableQualifiers can used to pass in the qualifiers to select between multiple
variables witht the same name. This is a dictionary of the Qualifier and its Value.
Example
The following example changes the 'Derive From' setting within an Isotropic Elasticity material property
to be "Bulk Modulus and Poisson's Ratio".
SetSuppression
Item can be suppressed to prevent it from being sent to a downstream cell in the system.
Material
Material property
Required Arguments
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 315
Engineering Data
MaterialPropertyData
The entity to store material property (tabular) data information. The material property data is a collection
of material variable data.
Properties
Behavior
The behavior of the material variable tabular data. Some material properties can have different behavior,
e.g., Elasticity has Isotropic, Orthotropic or Anisotropic behavior.
Type string
Read Only No
Definition
The definition of the material variable tabular data. Some material properties are defined in different
ways, e.g., Thermal Expansion can be defined as Secant Coefficient of Thermal Expansion and Instant-
aneous Coefficient of Thermal Expansion.
Type string
Read Only No
DependentColl
The collection of dependent variables in the material variable tabular data, e.g., Density.
Type DataReferenceSet
Description
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IndependentColl
The collection of independent variables in the material variable tabular data, e.g., Temperature.
Type DataReferenceSet
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
316 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only Yes
PrimaryIndependent
The primary independent variable in the material variable tabular data, e.g., Temperature.
Type DataReference
RowsCount
The number of data values for a variable in the material variable tabular data.
Type int
TypeName
Type string
Read Only No
VariableColl
Type DataReferenceSet
Methods
BeginBatchUpdate
Marks the start of a series of data modifications to a table of data, to improve performance.
CreateCurveFitting
Type DataReference
Required Arguments
Definition The definition of curve fitting to create. This must be a definition that is supported by an en-
gineering data curve fitting.
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 317
Engineering Data
Type The type of curve fitting to create. This must be a type that is supported by an engineering
data curve fitting.
Type string
Example
The following example loads a material with experimental test data and a Neo-Hookean hyperelastic
property.
template = GetTemplate(TemplateName="EngData")
system = template.CreateSystem()
engineeringData = system.GetContainer(ComponentName="Engineering Data")
neopreneRubber = engineeringData.ReadMaterial(
Name="Neoprene Rubber",
Source="Hyperelastic_Materials.xml")
neoHookeanProperty = neopreneRubber.GetProperty(Name="Neo-Hookean")
neoHookeanPropertyData = neoHookeanProperty.GetPropertyData(Name="Neo-Hookean")
curveFit = neoHookeanPropertyData.CreateCurveFitting(
Type="Neo-Hookean",
Definition="")
uniaxialProperty = neopreneRubber.GetProperty(Name="Uniaxial Test Data")
curveFit.AddTestData(TestData=uniaxialProperty)
biaxialProperty = neopreneRubber.GetProperty(Name="Biaxial Test Data")
curveFit.AddTestData(TestData=biaxialProperty)
shearProperty = neopreneRubber.GetProperty(Name="Shear Test Data")
curveFit.AddTestData(TestData=shearProperty)
volumetricProperty = neopreneRubber.GetProperty(Name="Volumetric Test Data")
curveFit.AddTestData(TestData=volumetricProperty)
curveFit.RemoveTestData(TestData=uniaxialProperty)
curveFit.AddTestData(TestData=uniaxialProperty)
curveFit.Solve()
curveFit.CopyCoefficients(Destination=neoHookeanPropertyData)
curveFit.Delete()
CreateVariable
Type DataReference
Required Arguments
Type string
Optional Arguments
Qualifiers The optional dictionary of a qualifier name and it's corresponding value.
Delete
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
318 of ANSYS, Inc. and its subsidiaries and affiliates.
EndBatchUpdate
GetChartData
Material Property
Material Property Data
Type DataReference
GetCurveFitting
Type DataReference
GetVariable
Type DataReference
Required Arguments
Type string
Example
The following example creates new Engineering Data system and queries Coefficient of Thermal Expansion
property data of the default material Structural Steel.
ENGDTemplate = GetTemplate(TemplateName="EngData")
ENGDSystem = ENGDTemplate.CreateSystem(Position="Default")
# Get material
CTEProperty = StructSteel.GetProperty(Name="Coefficient of Thermal Expansion")
# Get material property data
CTEPropData = CTEProperty.GetPropertyData(
Name="Coefficient of Thermal Expansion",
Definition="Secant",
Behavior="Isotropic")
# Get material variable
CTEVariable = CTEPropData.GetVariable(
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 319
Engineering Data
IsSuppressed
Material
Material Property
Material Property Data
Type bool
IsValid
Validates a material property data and provides a message in case of invalid data.
Return The flag that indicates if the material property data is valid.
Type bool
Required Arguments
Type DataReference
Optional Arguments
Type Output<string>
SetSuppression
Item can be suppressed to prevent it from being sent to a downstream cell in the system.
Material
Material property
Required Arguments
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
320 of ANSYS, Inc. and its subsidiaries and affiliates.
MaterialVariable
The entity to store material variable information.
Properties
DatumColl
Type DataReferenceSet
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsDependent
The flag that indicates if the material variable is dependent, e.g., Density is temperature dependent.
Type bool
Read Only No
LowerBoundUnit
The unit of the lower bound data value in the material variable data.
Type string
Read Only No
LowerBoundValue
Type double
Read Only No
MaxValue
Type double
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 321
Engineering Data
MinValue
Type double
Read Only No
Offset
Type Quantity
Read Only No
Scale
Type double
Read Only No
TypeName
Type string
Read Only No
UniqueData
Type DataReferenceSet
Read Only No
UpperBoundUnit
The unit of the upper bound data value in the material variable data.
Type string
Read Only No
UpperBoundValue
Type double
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
322 of ANSYS, Inc. and its subsidiaries and affiliates.
Methods
Delete
IsValid
Validates a material variable data and provides a message in case of invalid data.
Type bool
Required Arguments
Type DataReference
Type DataReference
Optional Arguments
Type Output<string>
Example
template = GetTemplate(TemplateName="EngData") system = template.CreateSystem(Position="Default")
container = system.GetContainer(ComponentName="Engineering Data") structSteel = container.GetMater-
ial(Name="Structural Steel") CTEProp = structSteel.GetProperty(Name="Coefficient of Thermal Expansion")
CTEPropData = CTEProperty.GetPropertyData( Name="Coefficient of Thermal Expansion", Definition="Sec-
ant", Behavior="Isotropic") CTEVariable = CTEPropData.GetVariable( Name="Coefficient of Thermal Expan-
sion") valid = EngData.ValidateMaterialVariable(MaterialVariable=CTEVariable, Material=structSteel, Mater-
ialPropertyData=CTEPropdata)
Data Entities
CurveFit
The entity to store curve fitting information.
Properties
CurveFitData
The coefficients of material model that approximates the experimental test data.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 323
Engineering Data
Type DataReference
Read Only No
DependentPropertyColl
The collection of experimental test data, e.g., Uniaxial Test data (Engineering Strain Vs Engineering
Stress).
Type DataReferenceSet
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
UnitSystemWhenSolved
Type string
Read Only No
Methods
AddTestData
Required Arguments
Type DataReference
Example
The following example loads a material with experimental test data and a Neo-Hookean hyperelastic
property.
template = GetTemplate(TemplateName="EngData")
system = template.CreateSystem()
engineeringData = system.GetContainer(ComponentName="Engineering Data")
neopreneRubber = engineeringData.ReadMaterial(
Name="Neoprene Rubber",
Source="Hyperelastic_Materials.xml")
neoHookeanProperty = neopreneRubber.GetProperty(Name="Neo-Hookean")
neoHookeanPropertyData = neoHookeanProperty.GetPropertyData(Name="Neo-Hookean")
curveFit = neoHookeanPropertyData.CreateCurveFitting(
Type="Neo-Hookean",
Definition="")
uniaxialProperty = neopreneRubber.GetProperty(Name="Uniaxial Test Data")
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
324 of ANSYS, Inc. and its subsidiaries and affiliates.
curveFit.AddTestData(TestData=uniaxialProperty)
biaxialProperty = neopreneRubber.GetProperty(Name="Biaxial Test Data")
curveFit.AddTestData(TestData=biaxialProperty)
shearProperty = neopreneRubber.GetProperty(Name="Shear Test Data")
curveFit.AddTestData(TestData=shearProperty)
volumetricProperty = neopreneRubber.GetProperty(Name="Volumetric Test Data")
curveFit.AddTestData(TestData=volumetricProperty)
curveFit.RemoveTestData(TestData=uniaxialProperty)
curveFit.AddTestData(TestData=uniaxialProperty)
curveFit.Solve()
curveFit.CopyCoefficients(Destination=neoHookeanPropertyData)
curveFit.Delete()
CopyCoefficients
Copies the fitted coefficients from the curve fitting to the property data provided.
Required Arguments
Type DataReference
Example
The following example loads a material with experimental test data and a Neo-Hookean hyperelastic
property.
template = GetTemplate(TemplateName="EngData")
system = template.CreateSystem()
engineeringData = system.GetContainer(ComponentName="Engineering Data")
neopreneRubber = engineeringData.ReadMaterial(
Name="Neoprene Rubber",
Source="Hyperelastic_Materials.xml")
neoHookeanProperty = neopreneRubber.GetProperty(Name="Neo-Hookean")
neoHookeanPropertyData = neoHookeanProperty.GetPropertyData(Name="Neo-Hookean")
curveFit = neoHookeanPropertyData.CreateCurveFitting(
Type="Neo-Hookean",
Definition="")
uniaxialProperty = neopreneRubber.GetProperty(Name="Uniaxial Test Data")
curveFit.AddTestData(TestData=uniaxialProperty)
biaxialProperty = neopreneRubber.GetProperty(Name="Biaxial Test Data")
curveFit.AddTestData(TestData=biaxialProperty)
shearProperty = neopreneRubber.GetProperty(Name="Shear Test Data")
curveFit.AddTestData(TestData=shearProperty)
volumetricProperty = neopreneRubber.GetProperty(Name="Volumetric Test Data")
curveFit.AddTestData(TestData=volumetricProperty)
curveFit.RemoveTestData(TestData=uniaxialProperty)
curveFit.AddTestData(TestData=uniaxialProperty)
curveFit.Solve()
curveFit.CopyCoefficients(Destination=neoHookeanPropertyData)
curveFit.Delete()
Delete
Example
The following example loads a material with experimental test data and a Neo-Hookean hyperelastic
property.
template = GetTemplate(TemplateName="EngData")
system = template.CreateSystem()
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 325
Engineering Data
GetChartData
Material Property
Material Property Data
Type DataReference
RemoveTestData
Required Arguments
Type DataReference
Example
The following example loads a material with experimental test data and a Neo-Hookean hyperelastic
property.
template = GetTemplate(TemplateName="EngData")
system = template.CreateSystem()
engineeringData = system.GetContainer(ComponentName="Engineering Data")
neopreneRubber = engineeringData.ReadMaterial(
Name="Neoprene Rubber",
Source="Hyperelastic_Materials.xml")
neoHookeanProperty = neopreneRubber.GetProperty(Name="Neo-Hookean")
neoHookeanPropertyData = neoHookeanProperty.GetPropertyData(Name="Neo-Hookean")
curveFit = neoHookeanPropertyData.CreateCurveFitting(
Type="Neo-Hookean",
Definition="")
uniaxialProperty = neopreneRubber.GetProperty(Name="Uniaxial Test Data")
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
326 of ANSYS, Inc. and its subsidiaries and affiliates.
curveFit.AddTestData(TestData=uniaxialProperty)
biaxialProperty = neopreneRubber.GetProperty(Name="Biaxial Test Data")
curveFit.AddTestData(TestData=biaxialProperty)
shearProperty = neopreneRubber.GetProperty(Name="Shear Test Data")
curveFit.AddTestData(TestData=shearProperty)
volumetricProperty = neopreneRubber.GetProperty(Name="Volumetric Test Data")
curveFit.AddTestData(TestData=volumetricProperty)
curveFit.RemoveTestData(TestData=uniaxialProperty)
curveFit.AddTestData(TestData=uniaxialProperty)
curveFit.Solve()
curveFit.CopyCoefficients(Destination=neoHookeanPropertyData)
curveFit.Delete()
Solve
The curve fitting module will solve for the coefficients which most nearly approximate the experimental
test data.
Methods
GetMaterial
Returns a material of a given name from a container.
The name matching is case insensitive. If a material is not found an exception is thrown.
Type DataReference
Required Arguments
Type string
Example
The following example creates a new Engineering Data system and queries the default material, Structural
Steel.
template = GetTemplate(TemplateName="EngData")
system = template.CreateSystem(Position="Default")
container = system.GetContainer(ComponentName="Engineering Data")
structuralSteel = container.GetMaterial(Name="Structural Steel")
GetMaterials
Returns the list of materials in a container. If no materials are in the container, the list is empty.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 327
Engineering Data
Type DataReferenceSet
Load
Populates the favorite items container with the user's favorite items.
Type DataContainerReference
Example
The following example creates a new Engineering Data system and queries the default material, Structural
Steel.
template = GetTemplate(TemplateName="EngData")
system = template.CreateSystem(Position="Default")
favoritesContainer = EngData.LoadFavoriteItems()
structuralSteel = favoritesContainer.GetMaterial(Name="Structural Steel")
Data Entities
Material
The entity to store material information.
Properties
Description
Type string
Read Only No
DisplayName
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
328 of ANSYS, Inc. and its subsidiaries and affiliates.
Source
Type string
Methods
AddToFavorites
CreateProperty
Includes a physical quantity or the constitutive relation for the physical response of a material. A property
can be visualized as one or more tables of data made up of one or more dependent and independent
variables.
The material property is created based on the specified optional parameters "Definition" and "Behavior".
Type DataReference
Required Arguments
Type string
Optional Arguments
Behavior The optional string to identify the way in which a new material property will behave.
Behavior of some material properties can be specified in different ways, e.g., Elasticity
can be specified as Isotropic, Orthotropic or Anisotropic.
Type string
Definition The optional string to identify the way in which new material property will be defined.
Some material properties are defined in different ways, e.g., Thermal Expansion can be
defined as Secant Coefficient of Thermal Expansion and Instantaneous Coefficient of
Thermal Expansion.
Type string
Qualifiers The optional dictionary of a qualifier name and it's corresponding value.
Example
The following example creates a new Engineering Data system and adds Coefficient of Thermal Expansion
and Elasticity material properties to the default material Structural Steel.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 329
Engineering Data
Coefficient of Thermal Expansion is created using Secant definition and Orthotropic behavior.
Elasticity is created using Orthotropic behavior.
ENGDTemplate = GetTemplate(TemplateName="EngData")
ENGDSystem = ENGDTemplate.CreateSystem(Position="Default")
Delete
Duplicate
Duplicates the data in this material and returns a new material. The name of the new material will be
appended with a numerical value to make it unique.
Type DataReference
Required Arguments
Type DataContainerReference
GetProperty
Type DataReference
Required Arguments
Type string
Example
The following example creates new Engineering Data system and queries Coefficient of Thermal Expansion
property of the default material Structural Steel.
ENGDTemplate = GetTemplate(TemplateName="EngData")
ENGDSystem = ENGDTemplate.CreateSystem(Position="Default")
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
330 of ANSYS, Inc. and its subsidiaries and affiliates.
ENGDContainer = ENGDSystem.GetContainer(ComponentName="Engineering Data")
StructSteel = ENGDContainer.GetMaterial(Name="Structural Steel")
IsSuppressed
Material
Material Property
Material Property Data
Type bool
IsValid
Type bool
Optional Arguments
Type Output<string>
Refresh
This will repopulate the contents of a material with data from a given source. The NameInSource
property of a Material will be used to find a match in the source to pull data from. In the event that
NameInSource is not set, the DisplayName property will be used instead.
Note: This operation will cause destruction of any data currently in the material.
template = GetTemplate(TemplateName="EngData")
system = template.CreateSystem(Position="Default")
container = system.GetContainer(ComponentName="Engineering Data")
structSteel = container.GetMaterial(Name="Structural Steel")
density = structSteel.GetProperty(Name="Density")
density.Delete()
structSteel.UpdateMaterial(Source="General_Materials.xml")
restoredDensity = structSteel.GetProperty(Name="Density")
restoredDensity.SetData(SheetName="", Index=0, Variables=["Density"], Values=[["8000 [kg m^-3]"]])
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 331
Engineering Data
RemoveFromFavorites
Optional Arguments
Type string
Type DataReference
Type string
Source The location of the file that contains the item on disk.
Type string
Type The type of the object to delete. This is either a Material or a Mixture.
Type EngineeringDataType
Example
The following example gets the list of favorites from Engineering Data. It then selects and deletes the "Gray
Cast Iron" material from the list.
favorites = EngData.LoadFavoriteItems()
matl = favorites.GetMaterial(Name="Gray Cast Iron")
EngData.DeleteFromFavorites(
Material=matl,
Type="Material")
SetAsDefaultFluidForModel
This will specify the material to use (or not use) for parts in the model which are marked as a fluid.
If the material is in the Engineering Data component it will set or unset the material to be used in the
model component of the system(s) that contain this Engineering Data component.
If the material is contained in Favorites it will set or unset the material to use as the default on fluids
in the Engineering Data component when a new system is added to the project.
The material is set as the default in Favorites. It will automatically be added to the list of project defaults.
Optional Arguments
Default This Boolean is used to set or unset the material as the default.
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
332 of ANSYS, Inc. and its subsidiaries and affiliates.
SetAsDefaultSolidForModel
This will specify the material to use (or not use) for parts in the model which are marked as a solid.
If the material is in the Engineering Data component it will set or unset the material to be used in the
model component of the system(s) that contain this Engineering Data component.
If the material is contained in Favorites it will set or unset the material to use as the default on solids
in the Engineering Data component when a new system is added to the project.
The material is set as the default in Favorites. It will automatically be added to the list of project defaults.
Optional Arguments
Default This Boolean is used to set or unset the material as the default.
Type bool
SetSuppression
Item can be suppressed to prevent it from being sent to a downstream cell in the system.
Material
Material property
Required Arguments
Type bool
Unlink
Unlinks a material from its underlying source. Once this occurs, the material can no longer be restored
to its original state and the material will no longer have a source.
MaterialProperty
The entity to store material property information.
A material property is the identifier for the singular information (for example, Density) that together
with other properties defines or models the behavior of the material. A property is always defined by
at least one table (tabular data), which could be singular. Some properties can contain a collection of
tabular data (for example, Isotropic Elasticity).
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 333
Engineering Data
Properties
Behavior
The string that defines the way in which the material property behaves, e.g., Elasticity has Isotropic,
Orthotropic or Anisotropic behavior.
Type string
Read Only No
Definition
The definition of the material property. Some material properties are defined in different ways, e.g.,
Thermal Expansion can be defined as Secant Coefficient of Thermal Expansion and Instantaneous
Coefficient of Thermal Expansion.
Type string
Read Only No
Description
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
PropertyDataColl
Type DataReferenceSet
TypeName
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
334 of ANSYS, Inc. and its subsidiaries and affiliates.
Methods
AddTestData
Required Arguments
Type DataReference
BeginBatchUpdate
Marks the start of a series of data modifications to a table of data, to improve performance.
CreatePropertyData
Include an additional property data for a material property. Some properties may have more than one
property data to describe the material property.
Type DataReference
Required Arguments
Type string
Optional Arguments
Behavior A string to identify how the new material property data will behave.
The behavior of some material properties can be specified in different ways, e.g.,
Elasticity can be specified as Isotropic, Orthotropic or Anisotropic.
Type string
Definition A string to identify how the new material property data will be defined.
Some material properties are defined in different ways, e.g., Thermal Expansion can be
defined as Secant Coefficient of Thermal Expansion and Instantaneous Coefficient of
Thermal Expansion.
Type string
Qualifiers The optional dictionary of a qualifier name and it's corresponding value.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 335
Engineering Data
Example
The following example creates the material property data Orthotropic Secant Coefficient of Thermal Ex-
pansion on the material property Coefficient of Thermal Expansion. This example assumes the material
Structural Steel has been obtained from the General Materials library.
Get the material property we are going to create a new material property data on.
orthoSecantThermExpansionMatPropData = thermExpansionMatProp.CreatePropertyData(
Name="Coefficient of Thermal Expansion",
Definition="Secant",
Behavior="Orthotropic")
Delete
Optional Arguments
Behavior of some material properties can be specified in different ways e.g. Elasticity
can be specified as Isotropic, Orthotropic or Anisotropic.
Type string
Some material properties are defined in different ways e.g. Thermal Expansion can be
defined as Secant Coefficient of Thermal Expansion and Instantaneous Coefficient of
Thermal Expansion.
Type string
DeleteData
Required Arguments
Type int
Optional Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
336 of ANSYS, Inc. and its subsidiaries and affiliates.
SheetQualifiers SheetQualifiers is used to pass in the qualifiers to select between multiple sheets witht
the same name. This is a dictionary of the Qualifier and its Value.
Example
The following example illustrates the deletion of a row from a tabular data sheet.
#
# Create a new Engineering Data System and access Structural Steel
#
template1 = GetTemplate(TemplateName="EngData")
system1 = template1.CreateSystem()
engineeringData1 = system1.GetContainer(ComponentName="Engineering Data")
matl1 = engineeringData1.GetMaterial(Name="Structural Steel")
#
# Delete the first row in the Density property
#
matlProp1 = matl1.GetProperty(Name="Density")
matlProp1.DeleteTabularDataRow(Index = 0)
#
# Delete the first row in the Coefficient of Thermal Expansion property with optional SheeetNamea nd SheetQ
#
matlProp2 = matl1.GetProperty(Name="Coefficient of Thermal Expansion")
matlProp2.DeleteTabularDataRow(
SheetName="Coefficient of Thermal Expansion",
SheetQualifiers={"Definition Method": "Secant", "Behavior": "Isotropic"},
Index = 0)
EndBatchUpdate
GetChartData
Material Property
Material Property Data
Type DataReference
GetData
Type Object
Optional Arguments
AsDictionary If set to true, the data will be returned as a dictionary where the keys are variable names
and the values are the data for each variable. If set to false, the data will be returned
in scalar or list format without the variable names.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 337
Engineering Data
Type bool
ColumnMajor If set to true, the data will be returned in column-major order. If set to false, the data
will be returned in row-major order.
Type bool
EndIndex The end index for requesting a subset of the data (zero-based).
Type int
SheetName Specifies the sheet name when the data contains multiple sheets.
Type string
SheetQualifiers Used to pass in the qualifiers to select between multiple sheets with the same name.
This is a dictionary of qualifiers and values.
StartIndex The start index for requesting a subset of the data (zero-based).
Type int
Default Value 0
Variables Names of the variables for which data is requested (string or list of strings).
Type Object
Example
In this example, all data is requested for the given tabular data entity.
tabData1.GetData()
tabData1.GetData(ColumnMajor=False)
tabData1.GetData(AsDictionary=True)
In this example, data for variables Density and Temperature is requested in dictionary format.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
338 of ANSYS, Inc. and its subsidiaries and affiliates.
GetPropertyData
The property data returned is based on specified optional parameters "Definition" and "Behavior".
Return The material property data that matches specified type name, definition and behavior.
Type DataReference
Required Arguments
Type string
Optional Arguments
Behavior The optional string to specify the material property data behavior.
Behavior of some material properties can be specified in different ways, e.g., Elasticity
can be specified as Isotropic, Orthotropic or Anisotropic.
Type string
Definition The optional string to specify the material property data definition.
Some material properties are defined in different ways, e.g., Thermal Expansion can be
defined as Secant Coefficient of Thermal Expansion and Instantaneous Coefficient of
Thermal Expansion.
Type string
Qualifiers The optional dictionary of a qualifier name and it's corresponding value.
Example
The following example creates new Engineering Data system and queries Coefficient of Thermal Expansion
property data of the default material Structural Steel.
ENGDTemplate = GetTemplate(TemplateName="EngData")
ENGDSystem = ENGDTemplate.CreateSystem(Position="Default")
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 339
Engineering Data
IsSuppressed
Material
Material Property
Material Property Data
Type bool
IsValid
Type bool
Required Arguments
Type DataReference
Optional Arguments
Type Output<string>
RemoveTestData
Required Arguments
Type DataReference
SetData
Optional Arguments
Data Sets the data using a dictionary form. The keys are the variable names and the values
are the data. The use of this argument is mutually exclusive with "Values" and "Vari-
ables".
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
340 of ANSYS, Inc. and its subsidiaries and affiliates.
Index Specifies the starting location used to set the data (zero-based). A value of -1 indicates
that the data should be appended to the existing data.
Type int
Default Value 0
SheetName Specifies the sheet name when the data contains multiple sheets.
Type string
SheetQualifiers Used to pass in the qualifiers to select between multiple sheets with the same name.
This is a dictionary of qualifiers and values.
Values List of data values set in conjunction with the "Variables" parameter. This parameter
and the "Data" parameter are mutually exclusive.
Type List<List<Object>>
Variables Names of the variables for which data is being set. This parameter and and the "Data"
parameter are mutually exclusive.
Type List<string>
Example
#
# Create a new Engineering Data System and access Structural Steel
#
template1 = GetTemplate(TemplateName="EngData")
system1 = template1.CreateSystem()
engineeringData1 = system1.GetContainer(ComponentName="Engineering Data")
matl1 = engineeringData1.GetMaterial(Name="Structural Steel")
#
# Change the value of a simple single-valued property
#
matlProp1 = matl1.GetProperty(Name="Density")
matlProp1.SetData(
Variables="Density",
Values="8500 [kg m^-3]")
#
# Set Temperature-dependent data for Elasticity based
# on lists of variables and values.
matlProp2 = matl1.GetProperty(Name="Elasticity")
temperature = ["400 [K]", "600 [K]", "800 [K]"]
E = ["2e5 [MPa]", "1.9e5 [MPa]", "1.6e5 [MPa]"]
matlProp2.SetData(
Variables = ["Temperature","Young's Modulus"],
Values = [temperature, E])
#
# Change the Temperature for the second table entry.
#
matlProp2.SetData(
Index = 1,
Variables = "Temperature",
Values = "625 [K]")
#
# Set a list for Poisson's Ratio starting at the second table entry.
#
matlProp2.SetData(
Index = 1,
Variables = "Poisson's Ratio",
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 341
Engineering Data
SetQualifier
Required Arguments
Type string
Type string
Optional Arguments
SheetName The name of the tabular data sheet that contains the qualifier.
Type string
SheetQualifiers SheetQualifiers can be used to pass in the qualifiers to select between multiple
sheets witht the same name. This is a dictionary of the Qualifier and its Value.
VariableName The name of the Variable that contains the qualifier to be changed.
Type string
VariableQualifiers VariableQualifiers can used to pass in the qualifiers to select between multiple
variables witht the same name. This is a dictionary of the Qualifier and its Value.
Example
The following example changes the 'Derive From' setting within an Isotropic Elasticity material property
to be "Bulk Modulus and Poisson's Ratio".
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
342 of ANSYS, Inc. and its subsidiaries and affiliates.
Value="Bulk Modulus and Poisson's Ratio")
SetSuppression
Item can be suppressed to prevent it from being sent to a downstream cell in the system.
Material
Material property
Required Arguments
Type bool
MaterialPropertyData
The entity to store material property (tabular) data information. The material property data is a collection
of material variable data.
Properties
Behavior
The behavior of the material variable tabular data. Some material properties can have different behavior,
e.g., Elasticity has Isotropic, Orthotropic or Anisotropic behavior.
Type string
Read Only No
Definition
The definition of the material variable tabular data. Some material properties are defined in different
ways, e.g., Thermal Expansion can be defined as Secant Coefficient of Thermal Expansion and Instant-
aneous Coefficient of Thermal Expansion.
Type string
Read Only No
DependentColl
The collection of dependent variables in the material variable tabular data, e.g., Density.
Type DataReferenceSet
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 343
Engineering Data
Description
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IndependentColl
The collection of independent variables in the material variable tabular data, e.g., Temperature.
Type DataReferenceSet
PrimaryIndependent
The primary independent variable in the material variable tabular data, e.g., Temperature.
Type DataReference
RowsCount
The number of data values for a variable in the material variable tabular data.
Type int
TypeName
Type string
Read Only No
VariableColl
Type DataReferenceSet
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
344 of ANSYS, Inc. and its subsidiaries and affiliates.
Methods
BeginBatchUpdate
Marks the start of a series of data modifications to a table of data, to improve performance.
CreateCurveFitting
Type DataReference
Required Arguments
Definition The definition of curve fitting to create. This must be a definition that is supported by an en-
gineering data curve fitting.
Type string
Type The type of curve fitting to create. This must be a type that is supported by an engineering
data curve fitting.
Type string
Example
The following example loads a material with experimental test data and a Neo-Hookean hyperelastic
property.
template = GetTemplate(TemplateName="EngData")
system = template.CreateSystem()
engineeringData = system.GetContainer(ComponentName="Engineering Data")
neopreneRubber = engineeringData.ReadMaterial(
Name="Neoprene Rubber",
Source="Hyperelastic_Materials.xml")
neoHookeanProperty = neopreneRubber.GetProperty(Name="Neo-Hookean")
neoHookeanPropertyData = neoHookeanProperty.GetPropertyData(Name="Neo-Hookean")
curveFit = neoHookeanPropertyData.CreateCurveFitting(
Type="Neo-Hookean",
Definition="")
uniaxialProperty = neopreneRubber.GetProperty(Name="Uniaxial Test Data")
curveFit.AddTestData(TestData=uniaxialProperty)
biaxialProperty = neopreneRubber.GetProperty(Name="Biaxial Test Data")
curveFit.AddTestData(TestData=biaxialProperty)
shearProperty = neopreneRubber.GetProperty(Name="Shear Test Data")
curveFit.AddTestData(TestData=shearProperty)
volumetricProperty = neopreneRubber.GetProperty(Name="Volumetric Test Data")
curveFit.AddTestData(TestData=volumetricProperty)
curveFit.RemoveTestData(TestData=uniaxialProperty)
curveFit.AddTestData(TestData=uniaxialProperty)
curveFit.Solve()
curveFit.CopyCoefficients(Destination=neoHookeanPropertyData)
curveFit.Delete()
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 345
Engineering Data
CreateVariable
Type DataReference
Required Arguments
Type string
Optional Arguments
Qualifiers The optional dictionary of a qualifier name and it's corresponding value.
Delete
EndBatchUpdate
GetChartData
Material Property
Material Property Data
Type DataReference
GetCurveFitting
Type DataReference
GetVariable
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
346 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
Example
The following example creates new Engineering Data system and queries Coefficient of Thermal Expansion
property data of the default material Structural Steel.
ENGDTemplate = GetTemplate(TemplateName="EngData")
ENGDSystem = ENGDTemplate.CreateSystem(Position="Default")
# Get material
CTEProperty = StructSteel.GetProperty(Name="Coefficient of Thermal Expansion")
# Get material property data
CTEPropData = CTEProperty.GetPropertyData(
Name="Coefficient of Thermal Expansion",
Definition="Secant",
Behavior="Isotropic")
# Get material variable
CTEVariable = CTEPropData.GetVariable(
Name="Coefficient of Thermal Expansion")
IsSuppressed
Material
Material Property
Material Property Data
Type bool
IsValid
Validates a material property data and provides a message in case of invalid data.
Return The flag that indicates if the material property data is valid.
Type bool
Required Arguments
Type DataReference
Optional Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 347
Engineering Data
Type Output<string>
SetSuppression
Item can be suppressed to prevent it from being sent to a downstream cell in the system.
Material
Material property
Required Arguments
Type bool
Methods
Close
Closes an Engineering Data library.
CreateMaterial
Adds a new material to the container.
Type DataReference
Required Arguments
Type string
Export
Exports engineering data to the specified file.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
348 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
FilePath The target path for the Engineering Data file ("*.xml").
Type string
Type string
Type string
Optional Arguments
ApplyScaleOffset The flag to specify if the scale factor and offset value will be applied during export.
Type bool
IgnoreSuppressed The flag to specify if suppressed engineering data will be ignored during export.
Type bool
Type bool
ReplaceMaterial The flag to specify if the earlier material data will be replaced in case of similar mater-
ial names.
Type bool
Example
template = GetTemplate(TemplateName="EngData") system = template.CreateSystem(Position="Default")
container = system.GetContainer(ComponentName="Engineering Data") materials = container.GetMater-
ials() EngData.WriteMaterials(MaterialList=materials, FilePath=r"d:\data\OutputMaterials.xml",
Format="MatML31", UnitSystem="MKS_STANDARD", ReplaceMaterial=true)
GetMaterial
Returns a material of a given name from a container.
The name matching is case insensitive. If a material is not found an exception is thrown.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 349
Engineering Data
Required Arguments
Type string
Example
The following example creates a new Engineering Data system and queries the default material, Structural
Steel.
template = GetTemplate(TemplateName="EngData")
system = template.CreateSystem(Position="Default")
container = system.GetContainer(ComponentName="Engineering Data")
structuralSteel = container.GetMaterial(Name="Structural Steel")
GetMaterials
Returns the list of materials in a container. If no materials are in the container, the list is empty.
Type DataReferenceSet
Import
Imports engineering data into an existing source from a specified source.
Required Arguments
Type string
ImportMaterial
Reads the data for a single material into the requested container.
Type DataReference
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
350 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Example
This code shows how to read the Copper Alloy material from the provided samples, into Engineering Data
to use in an analysis.
Refresh
This will repopulate the contents of an Engineering Data library with data from its source.
Save
Saves an Engineering Data library.
Optional Arguments
FilePath The optional string to specify the path if the Engineering Data library should be saved at different
location.
Type string
Data Entities
Material
The entity to store material information.
Properties
Description
Type string
Read Only No
DisplayName
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 351
Engineering Data
Type string
Read Only No
Source
Type string
Methods
AddToFavorites
CreateProperty
Includes a physical quantity or the constitutive relation for the physical response of a material. A property
can be visualized as one or more tables of data made up of one or more dependent and independent
variables.
The material property is created based on the specified optional parameters "Definition" and "Behavior".
Type DataReference
Required Arguments
Type string
Optional Arguments
Behavior The optional string to identify the way in which a new material property will behave.
Behavior of some material properties can be specified in different ways, e.g., Elasticity
can be specified as Isotropic, Orthotropic or Anisotropic.
Type string
Definition The optional string to identify the way in which new material property will be defined.
Some material properties are defined in different ways, e.g., Thermal Expansion can be
defined as Secant Coefficient of Thermal Expansion and Instantaneous Coefficient of
Thermal Expansion.
Type string
Qualifiers The optional dictionary of a qualifier name and it's corresponding value.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
352 of ANSYS, Inc. and its subsidiaries and affiliates.
Example
The following example creates a new Engineering Data system and adds Coefficient of Thermal Expansion
and Elasticity material properties to the default material Structural Steel.
Coefficient of Thermal Expansion is created using Secant definition and Orthotropic behavior.
Elasticity is created using Orthotropic behavior.
ENGDTemplate = GetTemplate(TemplateName="EngData")
ENGDSystem = ENGDTemplate.CreateSystem(Position="Default")
Delete
Duplicate
Duplicates the data in this material and returns a new material. The name of the new material will be
appended with a numerical value to make it unique.
Type DataReference
Required Arguments
Type DataContainerReference
GetProperty
Type DataReference
Required Arguments
Type string
Example
The following example creates new Engineering Data system and queries Coefficient of Thermal Expansion
property of the default material Structural Steel.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 353
Engineering Data
ENGDTemplate = GetTemplate(TemplateName="EngData")
ENGDSystem = ENGDTemplate.CreateSystem(Position="Default")
IsSuppressed
Material
Material Property
Material Property Data
Type bool
IsValid
Type bool
Optional Arguments
Type Output<string>
Refresh
This will repopulate the contents of a material with data from a given source. The NameInSource
property of a Material will be used to find a match in the source to pull data from. In the event that
NameInSource is not set, the DisplayName property will be used instead.
Note: This operation will cause destruction of any data currently in the material.
template = GetTemplate(TemplateName="EngData")
system = template.CreateSystem(Position="Default")
container = system.GetContainer(ComponentName="Engineering Data")
structSteel = container.GetMaterial(Name="Structural Steel")
density = structSteel.GetProperty(Name="Density")
density.Delete()
structSteel.UpdateMaterial(Source="General_Materials.xml")
restoredDensity = structSteel.GetProperty(Name="Density")
restoredDensity.SetData(SheetName="", Index=0, Variables=["Density"], Values=[["8000 [kg m^-3]"]])
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
354 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
RemoveFromFavorites
Optional Arguments
Type string
Type DataReference
Type string
Source The location of the file that contains the item on disk.
Type string
Type The type of the object to delete. This is either a Material or a Mixture.
Type EngineeringDataType
Example
The following example gets the list of favorites from Engineering Data. It then selects and deletes the "Gray
Cast Iron" material from the list.
favorites = EngData.LoadFavoriteItems()
matl = favorites.GetMaterial(Name="Gray Cast Iron")
EngData.DeleteFromFavorites(
Material=matl,
Type="Material")
SetAsDefaultFluidForModel
This will specify the material to use (or not use) for parts in the model which are marked as a fluid.
If the material is in the Engineering Data component it will set or unset the material to be used in the
model component of the system(s) that contain this Engineering Data component.
If the material is contained in Favorites it will set or unset the material to use as the default on fluids
in the Engineering Data component when a new system is added to the project.
The material is set as the default in Favorites. It will automatically be added to the list of project defaults.
Optional Arguments
Default This Boolean is used to set or unset the material as the default.
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 355
Engineering Data
SetAsDefaultSolidForModel
This will specify the material to use (or not use) for parts in the model which are marked as a solid.
If the material is in the Engineering Data component it will set or unset the material to be used in the
model component of the system(s) that contain this Engineering Data component.
If the material is contained in Favorites it will set or unset the material to use as the default on solids
in the Engineering Data component when a new system is added to the project.
The material is set as the default in Favorites. It will automatically be added to the list of project defaults.
Optional Arguments
Default This Boolean is used to set or unset the material as the default.
Type bool
SetSuppression
Item can be suppressed to prevent it from being sent to a downstream cell in the system.
Material
Material property
Required Arguments
Type bool
Unlink
Unlinks a material from its underlying source. Once this occurs, the material can no longer be restored
to its original state and the material will no longer have a source.
MaterialProperty
The entity to store material property information.
A material property is the identifier for the singular information (for example, Density) that together
with other properties defines or models the behavior of the material. A property is always defined by
at least one table (tabular data), which could be singular. Some properties can contain a collection of
tabular data (for example, Isotropic Elasticity).
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
356 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
Behavior
The string that defines the way in which the material property behaves, e.g., Elasticity has Isotropic,
Orthotropic or Anisotropic behavior.
Type string
Read Only No
Definition
The definition of the material property. Some material properties are defined in different ways, e.g.,
Thermal Expansion can be defined as Secant Coefficient of Thermal Expansion and Instantaneous
Coefficient of Thermal Expansion.
Type string
Read Only No
Description
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
PropertyDataColl
Type DataReferenceSet
TypeName
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 357
Engineering Data
Methods
AddTestData
Required Arguments
Type DataReference
BeginBatchUpdate
Marks the start of a series of data modifications to a table of data, to improve performance.
CreatePropertyData
Include an additional property data for a material property. Some properties may have more than one
property data to describe the material property.
Type DataReference
Required Arguments
Type string
Optional Arguments
Behavior A string to identify how the new material property data will behave.
The behavior of some material properties can be specified in different ways, e.g.,
Elasticity can be specified as Isotropic, Orthotropic or Anisotropic.
Type string
Definition A string to identify how the new material property data will be defined.
Some material properties are defined in different ways, e.g., Thermal Expansion can be
defined as Secant Coefficient of Thermal Expansion and Instantaneous Coefficient of
Thermal Expansion.
Type string
Qualifiers The optional dictionary of a qualifier name and it's corresponding value.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
358 of ANSYS, Inc. and its subsidiaries and affiliates.
Example
The following example creates the material property data Orthotropic Secant Coefficient of Thermal Ex-
pansion on the material property Coefficient of Thermal Expansion. This example assumes the material
Structural Steel has been obtained from the General Materials library.
Get the material property we are going to create a new material property data on.
orthoSecantThermExpansionMatPropData = thermExpansionMatProp.CreatePropertyData(
Name="Coefficient of Thermal Expansion",
Definition="Secant",
Behavior="Orthotropic")
Delete
Optional Arguments
Behavior of some material properties can be specified in different ways e.g. Elasticity
can be specified as Isotropic, Orthotropic or Anisotropic.
Type string
Some material properties are defined in different ways e.g. Thermal Expansion can be
defined as Secant Coefficient of Thermal Expansion and Instantaneous Coefficient of
Thermal Expansion.
Type string
DeleteData
Required Arguments
Type int
Optional Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 359
Engineering Data
SheetQualifiers SheetQualifiers is used to pass in the qualifiers to select between multiple sheets witht
the same name. This is a dictionary of the Qualifier and its Value.
Example
The following example illustrates the deletion of a row from a tabular data sheet.
#
# Create a new Engineering Data System and access Structural Steel
#
template1 = GetTemplate(TemplateName="EngData")
system1 = template1.CreateSystem()
engineeringData1 = system1.GetContainer(ComponentName="Engineering Data")
matl1 = engineeringData1.GetMaterial(Name="Structural Steel")
#
# Delete the first row in the Density property
#
matlProp1 = matl1.GetProperty(Name="Density")
matlProp1.DeleteTabularDataRow(Index = 0)
#
# Delete the first row in the Coefficient of Thermal Expansion property with optional SheeetNamea nd SheetQ
#
matlProp2 = matl1.GetProperty(Name="Coefficient of Thermal Expansion")
matlProp2.DeleteTabularDataRow(
SheetName="Coefficient of Thermal Expansion",
SheetQualifiers={"Definition Method": "Secant", "Behavior": "Isotropic"},
Index = 0)
EndBatchUpdate
GetChartData
Material Property
Material Property Data
Type DataReference
GetData
Type Object
Optional Arguments
AsDictionary If set to true, the data will be returned as a dictionary where the keys are variable names
and the values are the data for each variable. If set to false, the data will be returned
in scalar or list format without the variable names.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
360 of ANSYS, Inc. and its subsidiaries and affiliates.
Type bool
ColumnMajor If set to true, the data will be returned in column-major order. If set to false, the data
will be returned in row-major order.
Type bool
EndIndex The end index for requesting a subset of the data (zero-based).
Type int
SheetName Specifies the sheet name when the data contains multiple sheets.
Type string
SheetQualifiers Used to pass in the qualifiers to select between multiple sheets with the same name.
This is a dictionary of qualifiers and values.
StartIndex The start index for requesting a subset of the data (zero-based).
Type int
Default Value 0
Variables Names of the variables for which data is requested (string or list of strings).
Type Object
Example
In this example, all data is requested for the given tabular data entity.
tabData1.GetData()
tabData1.GetData(ColumnMajor=False)
tabData1.GetData(AsDictionary=True)
In this example, data for variables Density and Temperature is requested in dictionary format.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 361
Engineering Data
GetPropertyData
The property data returned is based on specified optional parameters "Definition" and "Behavior".
Return The material property data that matches specified type name, definition and behavior.
Type DataReference
Required Arguments
Type string
Optional Arguments
Behavior The optional string to specify the material property data behavior.
Behavior of some material properties can be specified in different ways, e.g., Elasticity
can be specified as Isotropic, Orthotropic or Anisotropic.
Type string
Definition The optional string to specify the material property data definition.
Some material properties are defined in different ways, e.g., Thermal Expansion can be
defined as Secant Coefficient of Thermal Expansion and Instantaneous Coefficient of
Thermal Expansion.
Type string
Qualifiers The optional dictionary of a qualifier name and it's corresponding value.
Example
The following example creates new Engineering Data system and queries Coefficient of Thermal Expansion
property data of the default material Structural Steel.
ENGDTemplate = GetTemplate(TemplateName="EngData")
ENGDSystem = ENGDTemplate.CreateSystem(Position="Default")
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
362 of ANSYS, Inc. and its subsidiaries and affiliates.
IsSuppressed
Material
Material Property
Material Property Data
Type bool
IsValid
Type bool
Required Arguments
Type DataReference
Optional Arguments
Type Output<string>
RemoveTestData
Required Arguments
Type DataReference
SetData
Optional Arguments
Data Sets the data using a dictionary form. The keys are the variable names and the values
are the data. The use of this argument is mutually exclusive with "Values" and "Vari-
ables".
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 363
Engineering Data
Index Specifies the starting location used to set the data (zero-based). A value of -1 indicates
that the data should be appended to the existing data.
Type int
Default Value 0
SheetName Specifies the sheet name when the data contains multiple sheets.
Type string
SheetQualifiers Used to pass in the qualifiers to select between multiple sheets with the same name.
This is a dictionary of qualifiers and values.
Values List of data values set in conjunction with the "Variables" parameter. This parameter
and the "Data" parameter are mutually exclusive.
Type List<List<Object>>
Variables Names of the variables for which data is being set. This parameter and and the "Data"
parameter are mutually exclusive.
Type List<string>
Example
#
# Create a new Engineering Data System and access Structural Steel
#
template1 = GetTemplate(TemplateName="EngData")
system1 = template1.CreateSystem()
engineeringData1 = system1.GetContainer(ComponentName="Engineering Data")
matl1 = engineeringData1.GetMaterial(Name="Structural Steel")
#
# Change the value of a simple single-valued property
#
matlProp1 = matl1.GetProperty(Name="Density")
matlProp1.SetData(
Variables="Density",
Values="8500 [kg m^-3]")
#
# Set Temperature-dependent data for Elasticity based
# on lists of variables and values.
matlProp2 = matl1.GetProperty(Name="Elasticity")
temperature = ["400 [K]", "600 [K]", "800 [K]"]
E = ["2e5 [MPa]", "1.9e5 [MPa]", "1.6e5 [MPa]"]
matlProp2.SetData(
Variables = ["Temperature","Young's Modulus"],
Values = [temperature, E])
#
# Change the Temperature for the second table entry.
#
matlProp2.SetData(
Index = 1,
Variables = "Temperature",
Values = "625 [K]")
#
# Set a list for Poisson's Ratio starting at the second table entry.
#
matlProp2.SetData(
Index = 1,
Variables = "Poisson's Ratio",
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
364 of ANSYS, Inc. and its subsidiaries and affiliates.
Values = [0.3, 0.3])
#
# Set Temperature-dependent property data for the Coefficient of Thermal Expansion
# using a dictionary. The dictionary key is the Variable name,
# followed by the list of values for the variable.
#
matlProp3 = matl1.GetProperty(Name="Coefficient of Thermal Expansion")
newData = {"Temperature": ["200 [F]","400 [F]","600 [F]","800 [F]","1000 [F]"],
"Coefficient of Thermal Expansion" : ["6.3e-6 [F^-1]", "7.0e-6 [F^-1]",
"7.46e-6 [F^-1]", "7.8e-6 [F^-1]",
"8.04e-6 [F^-1]"]}
matlProp3.SetData(
SheetName="Coefficient of Thermal Expansion",
SheetQualifiers={"Definition Method": "Secant", "Behavior": "Isotropic"},
Data = newData)
SetQualifier
Required Arguments
Type string
Type string
Optional Arguments
SheetName The name of the tabular data sheet that contains the qualifier.
Type string
SheetQualifiers SheetQualifiers can be used to pass in the qualifiers to select between multiple
sheets witht the same name. This is a dictionary of the Qualifier and its Value.
VariableName The name of the Variable that contains the qualifier to be changed.
Type string
VariableQualifiers VariableQualifiers can used to pass in the qualifiers to select between multiple
variables witht the same name. This is a dictionary of the Qualifier and its Value.
Example
The following example changes the 'Derive From' setting within an Isotropic Elasticity material property
to be "Bulk Modulus and Poisson's Ratio".
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 365
Engineering Data
SetSuppression
Item can be suppressed to prevent it from being sent to a downstream cell in the system.
Material
Material property
Required Arguments
Type bool
MaterialPropertyData
The entity to store material property (tabular) data information. The material property data is a collection
of material variable data.
Properties
Behavior
The behavior of the material variable tabular data. Some material properties can have different behavior,
e.g., Elasticity has Isotropic, Orthotropic or Anisotropic behavior.
Type string
Read Only No
Definition
The definition of the material variable tabular data. Some material properties are defined in different
ways, e.g., Thermal Expansion can be defined as Secant Coefficient of Thermal Expansion and Instant-
aneous Coefficient of Thermal Expansion.
Type string
Read Only No
DependentColl
The collection of dependent variables in the material variable tabular data, e.g., Density.
Type DataReferenceSet
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
366 of ANSYS, Inc. and its subsidiaries and affiliates.
Description
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IndependentColl
The collection of independent variables in the material variable tabular data, e.g., Temperature.
Type DataReferenceSet
PrimaryIndependent
The primary independent variable in the material variable tabular data, e.g., Temperature.
Type DataReference
RowsCount
The number of data values for a variable in the material variable tabular data.
Type int
TypeName
Type string
Read Only No
VariableColl
Type DataReferenceSet
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 367
Engineering Data
Methods
BeginBatchUpdate
Marks the start of a series of data modifications to a table of data, to improve performance.
CreateCurveFitting
Type DataReference
Required Arguments
Definition The definition of curve fitting to create. This must be a definition that is supported by an en-
gineering data curve fitting.
Type string
Type The type of curve fitting to create. This must be a type that is supported by an engineering
data curve fitting.
Type string
Example
The following example loads a material with experimental test data and a Neo-Hookean hyperelastic
property.
template = GetTemplate(TemplateName="EngData")
system = template.CreateSystem()
engineeringData = system.GetContainer(ComponentName="Engineering Data")
neopreneRubber = engineeringData.ReadMaterial(
Name="Neoprene Rubber",
Source="Hyperelastic_Materials.xml")
neoHookeanProperty = neopreneRubber.GetProperty(Name="Neo-Hookean")
neoHookeanPropertyData = neoHookeanProperty.GetPropertyData(Name="Neo-Hookean")
curveFit = neoHookeanPropertyData.CreateCurveFitting(
Type="Neo-Hookean",
Definition="")
uniaxialProperty = neopreneRubber.GetProperty(Name="Uniaxial Test Data")
curveFit.AddTestData(TestData=uniaxialProperty)
biaxialProperty = neopreneRubber.GetProperty(Name="Biaxial Test Data")
curveFit.AddTestData(TestData=biaxialProperty)
shearProperty = neopreneRubber.GetProperty(Name="Shear Test Data")
curveFit.AddTestData(TestData=shearProperty)
volumetricProperty = neopreneRubber.GetProperty(Name="Volumetric Test Data")
curveFit.AddTestData(TestData=volumetricProperty)
curveFit.RemoveTestData(TestData=uniaxialProperty)
curveFit.AddTestData(TestData=uniaxialProperty)
curveFit.Solve()
curveFit.CopyCoefficients(Destination=neoHookeanPropertyData)
curveFit.Delete()
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
368 of ANSYS, Inc. and its subsidiaries and affiliates.
CreateVariable
Type DataReference
Required Arguments
Type string
Optional Arguments
Qualifiers The optional dictionary of a qualifier name and it's corresponding value.
Delete
EndBatchUpdate
GetChartData
Material Property
Material Property Data
Type DataReference
GetCurveFitting
Type DataReference
GetVariable
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 369
Engineering Data
Required Arguments
Type string
Example
The following example creates new Engineering Data system and queries Coefficient of Thermal Expansion
property data of the default material Structural Steel.
ENGDTemplate = GetTemplate(TemplateName="EngData")
ENGDSystem = ENGDTemplate.CreateSystem(Position="Default")
# Get material
CTEProperty = StructSteel.GetProperty(Name="Coefficient of Thermal Expansion")
# Get material property data
CTEPropData = CTEProperty.GetPropertyData(
Name="Coefficient of Thermal Expansion",
Definition="Secant",
Behavior="Isotropic")
# Get material variable
CTEVariable = CTEPropData.GetVariable(
Name="Coefficient of Thermal Expansion")
IsSuppressed
Material
Material Property
Material Property Data
Type bool
IsValid
Validates a material property data and provides a message in case of invalid data.
Return The flag that indicates if the material property data is valid.
Type bool
Required Arguments
Type DataReference
Optional Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
370 of ANSYS, Inc. and its subsidiaries and affiliates.
Type Output<string>
SetSuppression
Item can be suppressed to prevent it from being sent to a downstream cell in the system.
Material
Material property
Required Arguments
Type bool
MaterialVariable
The entity to store material variable information.
Properties
DatumColl
Type DataReferenceSet
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsDependent
The flag that indicates if the material variable is dependent, e.g., Density is temperature dependent.
Type bool
Read Only No
LowerBoundUnit
The unit of the lower bound data value in the material variable data.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 371
Engineering Data
Type string
Read Only No
LowerBoundValue
Type double
Read Only No
MaxValue
Type double
Read Only No
MinValue
Type double
Read Only No
Offset
Type Quantity
Read Only No
Scale
Type double
Read Only No
TypeName
Type string
Read Only No
UniqueData
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
372 of ANSYS, Inc. and its subsidiaries and affiliates.
Type DataReferenceSet
Read Only No
UpperBoundUnit
The unit of the upper bound data value in the material variable data.
Type string
Read Only No
UpperBoundValue
Type double
Read Only No
Methods
Delete
IsValid
Validates a material variable data and provides a message in case of invalid data.
Type bool
Required Arguments
Type DataReference
Type DataReference
Optional Arguments
Type Output<string>
Example
template = GetTemplate(TemplateName="EngData") system = template.CreateSystem(Position="Default")
container = system.GetContainer(ComponentName="Engineering Data") structSteel = container.GetMater-
ial(Name="Structural Steel") CTEProp = structSteel.GetProperty(Name="Coefficient of Thermal Expansion")
CTEPropData = CTEProperty.GetPropertyData( Name="Coefficient of Thermal Expansion", Definition="Sec-
ant", Behavior="Isotropic") CTEVariable = CTEPropData.GetVariable( Name="Coefficient of Thermal Expan-
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 373
Engineering Data
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
374 of ANSYS, Inc. and its subsidiaries and affiliates.
External Connection
External Connection
This container hold data for an instance of the External Process Connector.
Methods
ExecuteOperation
Command that wraps the script invoked by a custom GUI Operation
Required Arguments
Type string
GetExternalConnectionProperties
A Query to return a reference to the ExternalConnectionProperties entity
Type DataReference
ReadConfiguration
Reads a External Connection configuration file.
Required Arguments
Type string
ReadParameterValues
Populates all the values of the parameters of a given type within a container.
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 375
External Connection
Data Entities
ExternalConnectionProperties
This entity holds the properties used to connect a Workbench project to an external process or applic-
ation.
Properties
ConfigFile
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
WorkingDirectory
The path to the working directory. This is optional. If this value is not set, it defaults to the add-in dir-
ectory corresponding to the system ("project_files/dpN/sysDir/addinDir")
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
376 of ANSYS, Inc. and its subsidiaries and affiliates.
External Data
External Data
This container holds data to expose external results or data files within the Workbench project.
Methods
AddDataFile
Adds a data file to the outline
Type DataReference
Required Arguments
Type string
AddRepositoryFile
Adds a data file to the outline
Type DataReference
Required Arguments
Type DataReference
Index Inserts the data files in the specified location in the internal list. It is 0-based.
Type int
GetExternalLoadData
Query to return the reference to the container's ExternalLoadData data entity.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 377
External Data
GetExternalLoadOutput
Query to return the reference to the container's ExternalDataOutput data entity.
Type DataReference
InsertDataFile
Adds a data file to the outline
Type DataReference
Required Arguments
Type string
Index Inserts the data files in the specified location in the internal list. It is 0-based.
Type int
ModifyRepositoryFile
Changes the file path of the existing FileData
Required Arguments
Type DataReference
Type DataReference
RereadDataFiles
When you modify an External Data system's data file outside of the Workbench and you need to cause
the Workbench to re-read the data file.
ScanForFileChanges
This command is useful, when you modify an External Data system's data file outside of the Workbench
and you need to cause the Workbench to re-read the data file.
Data Entities
ExternalLoadColumnData
This entity contains information about the column data
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
378 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
DataType
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Identifier
Identifier of this column data. This will be used by the down stream applications
Type string
Read Only No
Unit
Type string
Read Only No
ExternalLoadData
This is the root level entity for the external data add-in
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
FilesData
Type List<DataReference>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 379
External Data
Read Only No
Methods
DeleteFileData
Required Arguments
Type DataReference
DuplicateFileData
Required Arguments
Type DataReference
GetExternalLoadFileData
Type DataReference
Required Arguments
Type string
ExternalLoadFileData
This entity contains information for the DataFile added to the outline
Properties
Description
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
380 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Read Only No
File
Type DataReference
Read Only No
FileDataProperty
Type DataReference
Read Only No
Master
Makes the Data file as a Master or not. Only one Data file can be a Master.
Type bool
Read Only No
Methods
GetDataProperty
Type DataReference
ModifyFileData
Required Arguments
Type string
SetAsMaster
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 381
External Data
Type bool
SetDelimiterCharacter
Required Arguments
Type string
Type DataReference
SetDelimiterType
Required Arguments
Type DelimiterType
Type string
Type DataReference
Example
solution1.SetDelimiterType(
FileData=fileData,
FileDataProperty=fileDataProperty,
Delimiter=DelimiterType.Comma,
DelimiterString=",")
SetFormatType
Required Arguments
Type DataReference
Type FormatType
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
382 of ANSYS, Inc. and its subsidiaries and affiliates.
SetStartImportAtLine
Required Arguments
Type DataReference
Type int
ExternalLoadFileDataProperty
Contains information displayed on the properties view
Properties
ColumnsData
Type List<DataReference>
Read Only No
ConversionOption
Type VariableConversionOption
Read Only No
CoordinateSystemType
Specifies whether to use the Cartesian or Cylindrical coordinate system. The default value is Cartesian
Type CoordinateSystemType
Read Only No
DelimiterCharacter
Contains the delimiter character. Based on this value, number of columns are calculated
Type string
Read Only No
DelimiterType
Contains either the predefined delimiter or the user defined delimiter type
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 383
External Data
Type DelimiterType
Read Only No
Dimensions
You can choose to either import data from 2D or 3D models. If the 2D option is selected, you will be
able to import data only at the X and Y coordinates. The Z coordinate is not supported for the 2D option.
Type DimensionsType
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
FileIdentifier
A string that can be used to identify the file in the downstream Mechanical application. The data iden-
tifiers, from the Table pane, are appended to this string so that you can pick the correct source data in
the downstream Mechanical application.
Type string
Read Only No
FormatString
Contains the FormatString. Based on this value, number of columns are calculated
Type string
Read Only No
FormatType
This can be either Delimited or User-Defined. If the value is Delimited - Delimiter Character field is valid
If the value is User-Defined - FormatString field is valid
Type FormatType
Read Only No
LengthUnit
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
384 of ANSYS, Inc. and its subsidiaries and affiliates.
OriginX
Type double
Read Only No
OriginXUnit
Type string
Read Only No
OriginY
Type double
Read Only No
OriginYUnit
Type string
Read Only No
OriginZ
Type double
Read Only No
OriginZUnit
Type string
Read Only No
ScaleX
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 385
External Data
ScaleXToolTip
Type string
Read Only No
ScaleXValid
Type bool
Read Only No
ScaleY
Type string
Read Only No
ScaleYToolTip
Type string
Read Only No
ScaleYValid
Type bool
Read Only No
ScaleZ
Type string
Read Only No
ScaleZToolTip
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
386 of ANSYS, Inc. and its subsidiaries and affiliates.
ScaleZValid
Type bool
Read Only No
StartImportAtLine
The line number at which you want the data import to start. Line numbers start at 1.
Type int
Read Only No
ThetaXY
Type double
Read Only No
ThetaXYUnit
Type string
Read Only No
ThetaYZ
Type double
Read Only No
ThetaYZUnit
Type string
Read Only No
ThetaZX
Type double
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 387
External Data
ThetaZXUnit
Type string
Read Only No
Methods
GetColumnData
Type DataReference
Required Arguments
Type string
SetColumnDataType
Required Arguments
Type DataReference
Type string
SetCoordinateSystemType
Required Arguments
Type CoordinateSystemType
SetDimensionLengthUnit
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
388 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Type string
SetDimensionType
Required Arguments
Type DimensionsType
SetFormatString
Required Arguments
Type string
SetLengthUnit
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 389
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
390 of ANSYS, Inc. and its subsidiaries and affiliates.
External Model Setup
Methods
AddDataFile
Adds a data file to the outline
Type DataReference
Required Arguments
Type string
AddRepositoryFile
Adds a data file to the outline
Type DataReference
Required Arguments
Type DataReference
Index Inserts the data files in the specified location in the internal list. It is 0-based.
Type int
GetExternalModelData
Query to return the reference to the container's ExternalLoadData data entity.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 391
External Model Setup
GetExternalModelOutput
Query to return the reference to the container's ExternalDataOutput data entity.
Type DataReference
InsertDataFile
Adds a data file to the outline
Type DataReference
Required Arguments
Type string
Index Inserts the data files in the specified location in the internal list. It is 0-based.
Type int
ModifyRepositoryFile
Changes the file path of the existing FileData
Required Arguments
Type DataReference
Type DataReference
RereadDataFiles
When you modify an External Model system's data file outside of the Workbench and you need to cause
the Workbench to re-read the data file.
ScanForFileChanges
This command is useful, when you modify an External Data system's data file outside of the Workbench
and you need to cause the Workbench to re-read the data file.
Data Entities
ExternalModelData
This is the root level entity for the external data add-in
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
392 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
FilesData
Type List<DataReference>
Read Only No
Methods
DeleteFileData
Required Arguments
Type DataReference
DuplicateFileData
Required Arguments
Type DataReference
GetExternalModelFileData
Type DataReference
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 393
External Model Setup
ExternalModelFileData
This entity contains information for the DataFile added to the outline
Properties
Description
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
File
Type DataReference
Read Only No
FileDataProperty
Type DataReference
Read Only No
Methods
GetDataProperty
Type DataReference
ModifyFileData
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
394 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
ExternalModelFileDataProperty
Contains information displayed on the properties view
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
ElementOffset
Type int
Read Only No
LengthUnit
Type string
Read Only No
NodeAndElementRenumberingMethod
By default this value is Automatic, specifies whether the user would like us to automatically renumber
his mesh elements to prevent unique id conflicts during assembly
Type NodeAndElementRenumberingMethodType
Read Only No
NodeOffset
Type int
Read Only No
NumberOfCopies
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 395
External Model Setup
Read Only No
OriginX
Type double
Read Only No
OriginXUnit
Type string
Read Only No
OriginY
Type double
Read Only No
OriginYUnit
Type string
Read Only No
OriginZ
Type double
Read Only No
OriginZUnit
Type string
Read Only No
ThetaXY
Type double
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
396 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
ThetaXYUnit
Type string
Read Only No
ThetaYZ
Type double
Read Only No
ThetaYZUnit
Type string
Read Only No
ThetaZX
Type double
Read Only No
ThetaZXUnit
Type string
Read Only No
TransformOriginal
Whether or not we are going to transform the first instance of the model
Type bool
Read Only No
Methods
SetLengthUnit
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 397
External Model Setup
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
398 of ANSYS, Inc. and its subsidiaries and affiliates.
Finite Element Modeler
Methods
AddMeshFile
This command adds a Mesh File to the input meshes collection of the specified Container. Note that
we allow the User to import the same file multiple times. Finally, note that the default Unit System will
be the one of the Assembly Mesh.
Type DataReference
Required Arguments
Type string
Type ModelType
Edit
This command will launch the FE Modeler Editor (if not already running) and will either import the list
of input meshes or open the currently existing database. Note that the Editor can be run in either Inter-
active mode or Batch mode.
Optional Arguments
Interactive An optional boolean (True by default) which indicates if the Editor must be launched in In-
teractive mode (with a GUI so that the User can interact with it). If False, the Editor is run in
Batch mode.
Type bool
Exit
The Exit command will close the potentially opened Editor associated with the Container argument.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 399
Finite Element Modeler
GetFEMInputMesh
Returns the reference of one of the container's InputMesh data entity. Note that you will retrieve one
of its specialized classes: FEMUpstreamInputMesh or FEMUserInputMesh
Type DataReference
Required Arguments
Type string
GetFEMMesh
Returns the reference of the container's FEMMesh data entity.
Type DataReference
Required Arguments
Type string
GetFEMModel
Returns the reference of the container's FEMModel data entity.
Type DataReference
Required Arguments
Type string
GetFEMSetup
Returns the reference of the container's FEMSetup data entity.
Type DataReference
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
400 of ANSYS, Inc. and its subsidiaries and affiliates.
GetGeometry
Returns the reference of the container's FEMGeometry data entity.
Type DataReference
Required Arguments
Type string
SendCommand
The SendCommand command will execute the script contents, specified in Command, in the FE
Modeler Editor associated with the specified Container. Note that if the associated FE Modeler Editor
is not running when this command is issued, it will be launched and eventually closed at the end of
the command. This command requires the Editor (if already up and running) not to be busy.
Required Arguments
Data Entities
FEMInputMesh
This object represents an input mesh for the FE Model. This input mesh can either be a Mesh File added
by the User or data coming from an upstream container through a connection. In the first case, the
object will be of type 'UserInputMeshObject' ; in the other case, the object will be of type 'UpstreamIn-
putMeshObject'. Many useful properties can be retrieved from this input mesh object.
Properties
BodyGrouping
The body grouping property of the input mesh (when importing it from a file). This entity is displayed
as a Property for the User to modify.
Type BodyGrouping
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 401
Finite Element Modeler
FileFormat
The format of the mesh file. Even if the input type is an upstream connection, there is an associated
transfer file.
Type ModelType
FileReference
The file reference of the mesh file. Even if the input type is an upstream connection, there is an associated
tranfer file.
Type DataReference
IDHandling
The ID Handling property of the input mesh. This entity is displayed as a Property for the User to
modify.
Type IDHandling
Read Only No
UnitSystem
The Unit System of the input mesh (when importing it from a file). This entity is displayed as a Property
for the User to modify.
Type String[]
Read Only No
Methods
Delete
This method removes an existing input mesh from an FE Modeler Model component.
SwitchInputOrder
This method switches the displayed order of two input meshes in the collection of an FE Modeler
Model component.
Required Arguments
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
402 of ANSYS, Inc. and its subsidiaries and affiliates.
FEMMesh
This output object is used for transferring the mesh associated with the generated Faceted representation
of the Geometry. The mesh data will be stored in an ACMO-formatted file whose reference can be re-
trieved using the 'ACMOFile' public property. Note that this mesh can be morphed if a Parametric study
has been performed in the FE Modeler Editor.
Properties
ACMOFile
The reference of the ACMO file representing the Associated Mesh of the Faceted Geometry.
Type DataReference
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
FEMModel
This object represents the Assembly Mesh as well as the main storage location for some internal data
for the container.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
GeometryImportAnalysisType
Analysis Type preference. Import 3D objects or 2D objects (objects must be in the x-y plane)
Type GeometryAnalysisType
Read Only No
InputMeshes
Type List<DataReference>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 403
Finite Element Modeler
UnitSystem
The Unit System name of the Assembly Mesh. This entity is displayed as a Property for the User to
modify.
Type String[]
Read Only No
FEMSetup
This output object is used for transferring various generated data: The Faceted representation of the
Geometry will be stored in an 'fedb' file whose reference can be retrieved using the 'FEModelerFile'
public property. The ANSYS Input file for the ANSYS solver will be stored in an 'inp' file whose reference
can be retrieved using the 'ANSYSInputFile' public property. The NURBS representation of the geometry
will be stored in an 'x_t' file whose reference can be retrieved using the 'ParasolidFile' public property.
The Materials used in the mesh will be stored in an XML file whose reference can be retrieved using
the 'FiniteElementModelMaterials' public property.
Properties
ANSYSInputFile
The reference of the 'inp' file representing the ANSYS input for the solver.
Type DataReference
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
FEModelerFile
Type DataReference
FiniteElementModelMaterials
The reference of the 'xml' file representing the Materials of the mesh.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
404 of ANSYS, Inc. and its subsidiaries and affiliates.
ParasolidFile
Type DataReference
FEMUpstreamInputMesh
An input mesh object representing an upstream connection
Properties
BodyGrouping
The body grouping property of the input mesh (when importing it from a file). This entity is displayed
as a Property for the User to modify.
Type BodyGrouping
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
FileFormat
The format of the mesh file. Even if the input type is an upstream connection, there is an associated
transfer file.
Type ModelType
FileReference
The file reference of the mesh file. Even if the input type is an upstream connection, there is an associated
tranfer file.
Type DataReference
IDHandling
The ID Handling property of the input mesh. This entity is displayed as a Property for the User to
modify.
Type IDHandling
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 405
Finite Element Modeler
Read Only No
UnitSystem
The Unit System of the input mesh (when importing it from a file). This entity is displayed as a Property
for the User to modify.
Type String[]
Read Only No
FEMUserInputMesh
An input mesh object rpresenting a Mesh File added by the User.
Properties
BodyGrouping
The body grouping property of the input mesh (when importing it from a file). This entity is displayed
as a Property for the User to modify.
Type BodyGrouping
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
FileFormat
The format of the mesh file. Even if the input type is an upstream connection, there is an associated
transfer file.
Type ModelType
FileReference
The file reference of the mesh file. Even if the input type is an upstream connection, there is an associated
tranfer file.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
406 of ANSYS, Inc. and its subsidiaries and affiliates.
IDHandling
The ID Handling property of the input mesh. This entity is displayed as a Property for the User to
modify.
Type IDHandling
Read Only No
UnitSystem
The Unit System of the input mesh (when importing it from a file). This entity is displayed as a Property
for the User to modify.
Type String[]
Read Only No
Geometry
This entity represents the transfer of the Faceted representation of the Geometry, as well as its associated
Mesh, to a downstream system. This object is basically a wrapper for the MeshObject and SetupObject
data entities.
Properties
ACMOFile
The reference of the ACMO file representing the associated Mesh of the Faceted Geometry. This file is
ACMO-formatted.
Type DataReference
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
FacetedGeometry
The reference of the Geometry file representing the associated Mesh of the Faceted Geometry. This file
is a .fedb format.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 407
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
408 of ANSYS, Inc. and its subsidiaries and affiliates.
FLUENT
FLUENT Setup
This container holds Setup data for an instance of FLUENT.
Methods
CopyLauncherSettings
Copies the FLUENT Launcher Settings from one FLUENT Setup or Solution container to another FLUENT
Setup or Solution container.
Edit
Opens the FLUENT editor to allow modification of FLUENT data.
This command will open the editor only if one is not already open on this system. If this system’s editor
is already open and in interactive mode, then it will be raised to the front.
Exit
Exits the FLUENT editor.
If no editor is open on the component in question, this command will have no effect.
GetFluentLauncherSettings
Returns the Data Entity which contains the Setup container's settings for the FLUENT Launcher.
Import
Imports the FLUENT mesh and FLUENT case settings into the FLUENT editor from an existing FLUENT
.msh or .cas file; replacing the current FLUENT mesh and FLUENT case settings. If the imported file
contains only a mesh, then the FLUENT case settings will be set to FLUENT's default values.
ImportRepositoryFile
Imports the FLUENT mesh/case file from EKM Repository
Required Arguments
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 409
FLUENT
Type FileType
SendCommand
Execute a scheme, FLUENT GUI, or FLUENT TUI command(s) in the currently open FLUENT session.
FLUENT GUI commands cannot be run if the currently open FLUENT session is running in no GUI mode.
If the FLUENT editor is not open, it will be opened in no GUI mode before executing the command(s)
and then closed after the command(s) is executed.
Example
The following code shows how to execute the commands in a FLUENT journal file:
Data Entities
ChartVariable
Entity representing a variable in Convergence Chart
Properties
Color
Type Color
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
LineWidth
Type float
Read Only No
QuantityName
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
410 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
SymbolSize
Type uint
Read Only No
Methods
DeleteChartVariable
ConvergenceChart
Entity to store a convergence chart information.
Properties
AxisX
Associated X Axis
Type DataReference
Read Only No
AxisY
Associated Y Axis
Type DataReference
Read Only No
ChartType
Type MonitorChartType
Read Only No
Variables
Type DataReferenceSet
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 411
FLUENT
XAxis
Type string
Read Only No
Methods
GetAxis
Type DataReference
Required Arguments
Type string
GetChartVariable
Type DataReference
Required Arguments
Type string
GetChartVariables
Type DataReferenceSet
FluentLauncherSettings
Allows you to specify FLUENT Launcher settings for Fluent Setup/Solution cells.
Properties
CachePassword
Specify whether or not you want to save the HP-MPI password for later use.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
412 of ANSYS, Inc. and its subsidiaries and affiliates.
Type bool
Read Only No
ClusterHeadNode
Type string
Read Only No
ClusterJobTemplate
A custom submission policy created by an IT administrator to define the job parameters for an application
and employed by the cluster users to submit jobs. Relevant for Microsoft Job Scheduler.
Type string
Read Only No
ClusterNodeGroup
Used to set specific node group(s) on which to run the job. Relevant for Microsoft Job Scheduler.
Type string
Read Only No
ClusterProcessorUnit
Select the unit type (node/socket/core) on which the job would be running. Relevant for Microsoft Job
Scheduler.
Type ProcessorUnit
Read Only No
ConvertUNCPath
Specify whether or not to convert a local path to a UNC path if any matching shared directory is found.
Type bool
Read Only No
CreateJobSubmissionXML
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 413
FLUENT
Read Only No
DisplayMesh
Specify whether or not to show the mesh after the mesh file or the case/data file has been read into
FLUENT.
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
EmbedGraphicsWindows
Specify whether or not to embed the graphics windows in the FLUENT application window, or to have
the graphics windows free-standing.
Type bool
Read Only No
EnvPath
Read Only No
Initialization
Type InitializationMethods
Read Only No
InitSolutionDataFile
Spepcify the solution data file to be used for initializing the solution.
Type string
Read Only No
Interconnect
Specify the interconnect that you wish to use for parallel calculations
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
414 of ANSYS, Inc. and its subsidiaries and affiliates.
(e.g., ethernet, myrinet, infniband, etc.).
Type string
Read Only No
JobScheduler
Use available Resource Manager (LSF, SGE, PBSPro) to launch FLUENT job
Type SchedulerSpecification
Read Only No
JobSubmissionXmlFile
Type string
Read Only No
LSFCheckpointPeriod
Type int
Read Only No
LSFQueue
Type string
Read Only No
LSFUseAutomaticCheckpointing
Specify whether or not you want to use automatic checkpointing with LSF. The specific interval for
checkpointing is determined by the LSFCheckpointPeriod property.
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 415
FLUENT
MachineFileName
Specify the name of the file that contains a list of machine names to run the parallel job.
Type string
Read Only No
MachineList
Type string
Read Only No
MachineSpec
Type MachineSpecification
Read Only No
MpiType
Specify the MPI type that you wish to use for the parallel calculations
Type string
Read Only No
NumberOfProcessors
Specify the number of processors you wish to use for the parallel calculations (e.g., 2, 4, etc.).
Type int
Read Only No
NumberOfProcessorsMeshing
Specify the number of processors you wish to use for the meshing parallel calculations (e.g., 2, 4, etc.).
Type int
Read Only No
Precision
Type CasePrecision
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
416 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
PrePostOnly
Specify whether or not you want to run FLUENT in PrePost mode, which only allows you to set up or
postprocess a problem (i.e., no calculations can be performed)
Type bool
Read Only No
RemoteFluentRootPath
Type string
Read Only No
RemoteHostName
Specify the name of the head machine on the remote Linux cluster.
Type string
Read Only No
RemoteRshCommand
Specify the command to connect to the remote node (the default is RSH).
Type RshSpecification
Read Only No
RemoteRshOtherCommand
Specify the custom RSH spawn command used to connect to the remote Linux machine.
Type string
Read Only No
RemoteRunOnLinux
Specify whether or not you want to run your FLUENT simulation on 64-bit Linux machines.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 417
FLUENT
Type bool
Read Only No
RemoteUseHost
Specify whether or not to use the remote cluster head node that FLUENT will connect to for spawning
(e.g., via rsh or ssh).
Use the RemoteHostName property to specify the name of the remote cluster head node.
Type bool
Read Only No
RemoteUseWorkingDirectory
Specify whether or not to use a working directory for remote Linux nodes.
Use the RemoteWorkingDirectory property to specify the name of the working directory.
Type bool
Read Only No
RemoteWorkingDirectory
Specify the name of the working directory for remote Linux nodes.
Type string
Read Only No
RunParallel
Specify whether or not you want to run the parallel version of FLUENT.
Type bool
Read Only No
SetupCompilationEnvironment
Specify whether or not you want to define settings for compiling user-defined functions (UDFs) with
FLUENT.
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
418 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
SGEPE
Specify the SGE parallel environment where you want to submit your FLUENT jobs.
Type string
Read Only No
SGEQMaster
Type string
Read Only No
SGEQueue
Specify the name of the queue where you want to submit your FLUENT jobs.
Type string
Read Only No
SGESettings
Type string
Read Only No
SGEUseSettings
Type bool
Read Only No
ShowLauncher
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 419
FLUENT
Type bool
Read Only No
StartWhenResourcesAvailable
Specify whether or not to start the FLUENT job when resources are available.
Type bool
Read Only No
UDFPath
Specify the path to the UDF compilation script (available when SetupCompilationEnvironment is TRUE).
Type string
Read Only No
UseJobScheduler
Type bool
Read Only No
UseLSFCheckpoint
Type bool
Read Only No
UseLSFQueue
Type bool
Read Only No
UseSharedMemory
Specify whether or not to use shared memory on the local machine or to use distributed memory on
a cluster.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
420 of ANSYS, Inc. and its subsidiaries and affiliates.
Type bool
Read Only No
UseUpstreamLauncherSettings
Specify whether or not the current system's Solution cell should use FLUENT Launcher's property settings
from the current system's Setup cell.
Type bool
Read Only No
WorkbenchColorScheme
Specify whether or not to use the Workbench color scheme in the graphics window, or the classic black
background color.
Type bool
Read Only No
SetupData
Data entity of Setup cell. Allows you to change attributes of Setup cell.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
GenerateSetupOutput
Allows you to generate case file for Setup cell if mesh file is input or mesh operations are defined
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 421
FLUENT
FLUENT Solution
This container holds Solution data for an instance of FLUENT.
Methods
Continue
Continue solving from current solution. This command should only be used when the Solution component
is either Interrupted or Up-to-Date.
CopyLauncherSettings
Copies the FLUENT Launcher Settings from one FLUENT Setup or Solution container to another FLUENT
Setup or Solution container.
Edit
Opens the FLUENT editor to allow modification of FLUENT data.
This command will open the editor only if one is not already open on this system. If this system’s editor
is already open and in interactive mode, then it will be raised to the front.
Exit
Exits the FLUENT editor.
If no editor is open on the component in question, this command will have no effect.
GetComponentSettingsForRsmDpUpdate
This query is used to obtain the ComponentSettingsForRsmDpUpdate object for Journaling and
Scripting
GetConvergenceChart
Returns the convergence chart of a given name in a container.
Type DataReference
Required Arguments
Type string
GetConvergenceCharts
Returns the collection of convergence charts in a container. If no convergence charts are in the container,
the collection is empty.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
422 of ANSYS, Inc. and its subsidiaries and affiliates.
Return Collection of the convergence charts in the container.
Type DataReferenceSet
GetFluentLauncherSettings
Returns the Data Entity which contains the Setup container's settings for the FLUENT Launcher.
GetFluentSolutionProperties
Returns the Data Entity which manages settings and data for the FLUENT Solution component.
GetSolutionSettings
This query is used to obtain the solution settings object for Journaling and Scripting
ImportInitialData
Imports an existing FLUENT .dat file as initial conditions for the FLUENT editor.
Discards the currently available Solution Data (and all stored previous solution points).
ImportRepositoryFinalData
Command to import final data file from repository
Required Arguments
Type DataReference
MarkUpToDate
Accepts an interrupted Solution as Up-to-Date.
The specified Solution component should be in Interrupted state. As a result of this command, the
Solution will be marked Up-to-date.
SendCommand
Execute a scheme, FLUENT GUI, or FLUENT TUI command(s) in the currently open FLUENT session.
FLUENT GUI commands cannot be run if the currently open FLUENT session is running in no GUI mode.
If the FLUENT editor is not open, it will be opened in no GUI mode before executing the command(s)
and then closed after the command(s) is executed.
Example
The following code shows how to execute the commands in a FLUENT journal file:
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 423
FLUENT
Data Entities
AxisContinuous
Data entity for Scenegraph axis.
Properties
AutomaticRange
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
QuantityName
Type XAxisQuantity
Read Only No
RangeMaximum
Type double
Read Only No
RangeMinimum
Type double
Read Only No
Scale
Type Scale
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
424 of ANSYS, Inc. and its subsidiaries and affiliates.
Title
Type string
Read Only No
ChartVariable
Entity representing a variable in Convergence Chart
Properties
Color
Type Color
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
LineWidth
Type float
Read Only No
QuantityName
Type string
Read Only No
SymbolSize
Type uint
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 425
FLUENT
Methods
DeleteChartVariable
ChartVariableData
Entity representing a variable in Convergence Chart
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
VariableDimension
Type string
Read Only No
VariableIndex
Type int
Read Only No
VariableType
Type MonitorChartType
Read Only No
ConvergenceChart
Entity to store a convergence chart information.
Properties
AxisX
Associated X Axis
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
426 of ANSYS, Inc. and its subsidiaries and affiliates.
Type DataReference
Read Only No
AxisY
Associated Y Axis
Type DataReference
Read Only No
ChartType
Type MonitorChartType
Read Only No
Variables
Type DataReferenceSet
Read Only No
XAxis
Type string
Read Only No
Methods
GetAxis
Type DataReference
Required Arguments
Type string
GetChartVariable
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 427
FLUENT
Type DataReference
Required Arguments
Type string
GetChartVariables
Type DataReferenceSet
FluentLauncherSettings
Allows you to specify FLUENT Launcher settings for Fluent Setup/Solution cells.
Properties
CachePassword
Specify whether or not you want to save the HP-MPI password for later use.
Type bool
Read Only No
ClusterHeadNode
Type string
Read Only No
ClusterJobTemplate
A custom submission policy created by an IT administrator to define the job parameters for an application
and employed by the cluster users to submit jobs. Relevant for Microsoft Job Scheduler.
Type string
Read Only No
ClusterNodeGroup
Used to set specific node group(s) on which to run the job. Relevant for Microsoft Job Scheduler.
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
428 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
ClusterProcessorUnit
Select the unit type (node/socket/core) on which the job would be running. Relevant for Microsoft Job
Scheduler.
Type ProcessorUnit
Read Only No
ConvertUNCPath
Specify whether or not to convert a local path to a UNC path if any matching shared directory is found.
Type bool
Read Only No
CreateJobSubmissionXML
Type bool
Read Only No
DisplayMesh
Specify whether or not to show the mesh after the mesh file or the case/data file has been read into
FLUENT.
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
EmbedGraphicsWindows
Specify whether or not to embed the graphics windows in the FLUENT application window, or to have
the graphics windows free-standing.
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 429
FLUENT
EnvPath
Read Only No
Initialization
Type InitializationMethods
Read Only No
InitSolutionDataFile
Spepcify the solution data file to be used for initializing the solution.
Type string
Read Only No
Interconnect
Specify the interconnect that you wish to use for parallel calculations
Type string
Read Only No
JobScheduler
Use available Resource Manager (LSF, SGE, PBSPro) to launch FLUENT job
Type SchedulerSpecification
Read Only No
JobSubmissionXmlFile
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
430 of ANSYS, Inc. and its subsidiaries and affiliates.
LSFCheckpointPeriod
Type int
Read Only No
LSFQueue
Type string
Read Only No
LSFUseAutomaticCheckpointing
Specify whether or not you want to use automatic checkpointing with LSF. The specific interval for
checkpointing is determined by the LSFCheckpointPeriod property.
Type bool
Read Only No
MachineFileName
Specify the name of the file that contains a list of machine names to run the parallel job.
Type string
Read Only No
MachineList
Type string
Read Only No
MachineSpec
Type MachineSpecification
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 431
FLUENT
MpiType
Specify the MPI type that you wish to use for the parallel calculations
Type string
Read Only No
NumberOfProcessors
Specify the number of processors you wish to use for the parallel calculations (e.g., 2, 4, etc.).
Type int
Read Only No
NumberOfProcessorsMeshing
Specify the number of processors you wish to use for the meshing parallel calculations (e.g., 2, 4, etc.).
Type int
Read Only No
Precision
Type CasePrecision
Read Only No
PrePostOnly
Specify whether or not you want to run FLUENT in PrePost mode, which only allows you to set up or
postprocess a problem (i.e., no calculations can be performed)
Type bool
Read Only No
RemoteFluentRootPath
Type string
Read Only No
RemoteHostName
Specify the name of the head machine on the remote Linux cluster.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
432 of ANSYS, Inc. and its subsidiaries and affiliates.
This property is only available on Windows.
Type string
Read Only No
RemoteRshCommand
Specify the command to connect to the remote node (the default is RSH).
Type RshSpecification
Read Only No
RemoteRshOtherCommand
Specify the custom RSH spawn command used to connect to the remote Linux machine.
Type string
Read Only No
RemoteRunOnLinux
Specify whether or not you want to run your FLUENT simulation on 64-bit Linux machines.
Type bool
Read Only No
RemoteUseHost
Specify whether or not to use the remote cluster head node that FLUENT will connect to for spawning
(e.g., via rsh or ssh).
Use the RemoteHostName property to specify the name of the remote cluster head node.
Type bool
Read Only No
RemoteUseWorkingDirectory
Specify whether or not to use a working directory for remote Linux nodes.
Use the RemoteWorkingDirectory property to specify the name of the working directory.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 433
FLUENT
Type bool
Read Only No
RemoteWorkingDirectory
Specify the name of the working directory for remote Linux nodes.
Type string
Read Only No
RunParallel
Specify whether or not you want to run the parallel version of FLUENT.
Type bool
Read Only No
SetupCompilationEnvironment
Specify whether or not you want to define settings for compiling user-defined functions (UDFs) with
FLUENT.
Type bool
Read Only No
SGEPE
Specify the SGE parallel environment where you want to submit your FLUENT jobs.
Type string
Read Only No
SGEQMaster
Type string
Read Only No
SGEQueue
Specify the name of the queue where you want to submit your FLUENT jobs.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
434 of ANSYS, Inc. and its subsidiaries and affiliates.
This property is only available when using compute nodes on Linux.
Type string
Read Only No
SGESettings
Type string
Read Only No
SGEUseSettings
Type bool
Read Only No
ShowLauncher
Type bool
Read Only No
StartWhenResourcesAvailable
Specify whether or not to start the FLUENT job when resources are available.
Type bool
Read Only No
UDFPath
Specify the path to the UDF compilation script (available when SetupCompilationEnvironment is TRUE).
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 435
FLUENT
UseJobScheduler
Type bool
Read Only No
UseLSFCheckpoint
Type bool
Read Only No
UseLSFQueue
Type bool
Read Only No
UseSharedMemory
Specify whether or not to use shared memory on the local machine or to use distributed memory on
a cluster.
Type bool
Read Only No
UseUpstreamLauncherSettings
Specify whether or not the current system's Solution cell should use FLUENT Launcher's property settings
from the current system's Setup cell.
Type bool
Read Only No
WorkbenchColorScheme
Specify whether or not to use the Workbench color scheme in the graphics window, or the classic black
background color.
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
436 of ANSYS, Inc. and its subsidiaries and affiliates.
FluentSolutionProperties
Entity that manages settings and data for the FLUENT Solution component.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
EnableDataInterpolation
It allows to generate the interpolation file at the end of calculation. It can be used as inial data for next
calculation even if inout mesh data has changed.
Type bool
Read Only No
EnableSolutionMonitoring
It allows to generate the solution monitoring data which can be viewed using commands at Solution
cell.
Type bool
Read Only No
FLUENT TGridData
This container holds TGrid data for an instance of FLUENT.
Data Entities
TGridCADImportOptions
Entity represents CAD import properties from upstream geometry to Fluent Meshing cell
Properties
CT_EdgeProximity
Enables the use of the edge proximity size function for creating the conformal tessellation, based on
the number of cells per gap specified.
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 437
FLUENT
CT_SaveSizeField
Enables user to save the size field in a file, which is computed based on the defined parameters i.e. Min
Size, Max Size, Curvature Normal Angle, Cells Per Gap.
Type bool
Read Only No
CT_SizeFieldFileLoc
Type string
Read Only No
CT_SizeFieldFileName
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
FeatureAngle
Allows user to specify the feature angle to determine the features to be imported. The default value is
40.
Type double
Read Only No
TessellationOption
Type string
Read Only No
Units
Specifies the length unit to scale the mesh on import. Models created in other units will be scaled ac-
cordingly. The default is meters (m).
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
438 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Read Only No
TGridData
Data entity of Fluent Meshing cell. Allows you to change attributes of Fluent Meshing cell.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
RunParallel
Specify whether or not you want to run the parallel version of FLUENT.
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 439
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
440 of ANSYS, Inc. and its subsidiaries and affiliates.
Geometry
Geometry
This container holds imported or generated geometry from an instance of DesignModeler.
Methods
Edit
The Edit command starts DesignModeler session, if it is not already running. If DesignModeler session
is already running, this command brings the DesignModeler window in focus.
If a CAD file is assigned to geometry component, the file is loaded in the DesignModeler.
Available options:
Optional Arguments
Type bool
IsSpaceClaimGeometry Whether to edit geometry in SpaceClaim. If the user wants to use SpaceClaim
as the geometry editor, then IsSpaceClaimGeometry should be set to true. The
default value of IsSpaceClaimGeometry is false. If the user edits the geometry
using DesignModeler then "IsSpaceClaimGeometry" will be false.
Type bool
Exit
Exit command shuts down the running session of DesignModeler. Before shuting down, DesignModeler
generates the un-generated features and saves its database.
DesignModeler session can not be closed if it is busy in generating features or seeking user's input. In
such situations, this command throws an ApplicationBusyException exception.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 441
Geometry
Export
The export command exports geometry data in DesignModeler to the location specified in its FilePath
argument. The export file CAD format is dedcued from the extension of FilePath.
Available options:
Required Arguments
Type string
Example
Suppose the geometry in the container "Geometry" needs to exported to IGES and STEP formats. This can
be achieved by the following example.
geometry1 = GetDataContainer("Geometry")
geometry1.Export(FilePath="C:/Models/geometry1.iges")
geometry1.Export(FilePath=AbsUserPathName("Models/geometry1.step"))
GetGeometryProperties
Return a reference to DataEntity managing property settings of geometry container.
Type DataReference
Refresh
Refresh command refreshes the input data in a geometry component by consuming all changed data
from upstream (source) components. This command also updates the modified parameters in Design-
Modeler.
After succesful execution of this command, the geometry component goes into "update required" state.
Optional Arguments
Type List<DataReference>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
442 of ANSYS, Inc. and its subsidiaries and affiliates.
SendCommand
The SendCommand sends javascript or python command string to DesignModeler for execution. If
DesignModeler is not open, it will be launched to execute commands, and then closed. If DesignModeler
is already running, it will keep running after the command execution.
If DesignModeler is busy and not available for executing the instruction, the SendCommand throws an
ApplicationBusyException exception.
Available options:
The following command will add a sketch with an elliptical curve in DesignModeler
Required Arguments
Optional Arguments
Type string
Example
system1 = GetSystem(Name="Geom")
geometry1 = system1.GetContainer(ComponentName="Geometry")
geometry1.SendCommand( Command = """var ps1 = new Object();
ps1.Plane = agb.GetActivePlane();
ps1.Origin = ps1.Plane.GetOrigin();
ps1.XAxis = ps1.Plane.GetXAxis();
ps1.YAxis = ps1.Plane.GetYAxis();
ps1.Sk1 = ps1.Plane.NewSketch();
ps1.Sk1.Name = "Sketch1";
with (ps1.Sk1) { ps1.El7 = Ellipse( 8.0, 10.0, 9.0, 6.0, 5.0, 12.0); }
agb.Regen();""")
SetFile
Adds a Geometry file to the Geometry System. The file processed by DesignModeler
Available options:
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 443
Geometry
Required Arguments
Type string
Optional Arguments
Type Output<DataReference>
Type string
Type DataReference
Example
geometry1 = GetDataContainer("Geometry")
geometry1.SetFile("C:/Models/block.iges")
geometry2 = GetDataContainer("Geometry 1")
geometry2.SetFile(FilePath=AbsUserPathName("Models/block.prt.1"), PlugInName="ProEngineer[1]")
Stop
Stop command shuts down the running session of DesignModeler immeditely, without saving its unsaved
data.
The DesignModeler session can not be stopped if it is busy in importing or exporting CAD files. In such
situations, this command throws an ApplicationBusyException exception.
UpdateCAD
The UpdateCAD command updates geometry component using parameter values from DesignModeler.
If the parameters are coming from external CAD systems through attach features in DesignModeler,
then the attach feature is refreshed to update the parameters. The DesignModeler model is re-generated
using the updated parameter values.
UpdateICManagerParam
Update IC Manager Param updates any of the exposed ICManager parameters
Required Arguments
Type string
Type double
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
444 of ANSYS, Inc. and its subsidiaries and affiliates.
Data Entities
Geometry
Geometry data object
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
GeometryFilePath
The location of file currently assigned to geometry component. DesignModeler process this file when
started through Edit command.
Type string
Read Only No
GeometryImportAnalysisType
Analysis Type preference. Import 3D objects or 2D objects (objects must be in the x-y plane)
Type AnalysisType
Read Only No
GeometryImportCadAssociativity
Associativity preference. Indicates if action should be taken to allow associativity. This option is present
because some CAD systems take too long to compute associativity.
Type bool
Read Only No
GeometryImportCadAttributes
Import Attributes preference. Allows import of CAD system attributes into the Mechanical application
models. Enable this option to import Motion Loads.
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 445
Geometry
GeometryImportCadAttributesFilter
Import Attributes filter Key. (Displayed only when Attributes is selected.) This field can have any number
of prefixes with each prefix delimited by a semicolon. If the filter is set to an empty string all applicable
entities will be imported as Attributes.
Type string
Read Only No
GeometryImportComparePartsOnUpdate
Compare Parts On Update preference. Runs a post update comparison of parts from the original model
and the new one. Marking those which have no topological or geometric changes as unmodified. This
marking saves the time for remeshing.
Type ComparePartsOnUpdateMethod
Read Only No
GeometryImportComparePartsTolerance
Compare Parts Tolerance Preference. Sets one of three tolerance values for comparison when running
Compare Parts On Update
Type ComparePartsTolerance
Read Only No
GeometryImportCoordinateSystems
Import Coordinate Systems preference. Specifies whether coordinate systems created in the CAD applic-
ation should be imported into the Mechanical application.
Type bool
Read Only No
GeometryImportDecomposeDisjointFaces
Decompose Disjoint Face preference. Use to turn on/off the breaking of disjoint faces into multiple
faces.
Type bool
Read Only No
GeometryImportFlattenAssembly
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
446 of ANSYS, Inc. and its subsidiaries and affiliates.
GeometryImportImportUsingInstances
Import Using Instances preference. Processes a CAD model by honoring its part instances to produce
faster attach times and smaller database sizes.
Type bool
Read Only No
GeometryImportLineBodies
Import Line Bodies preference. (If mixed dimension parts, Mixed Import Resolution preference is used.)
Type bool
Read Only No
GeometryImportMaterialProperties
Import Material Properties preference. Allows import of material data defined in the CAD system. Only
a subset of material data will be imported. This will include Young's Modulus, Poisson Ratio, Mass
Density, Specific Heat, Thermal Conductivity and Thermal Expansion Coefficient. Limited additional data
may be imported depending on CAD support.
Type bool
Read Only No
GeometryImportMixedResolutionOption
Mixed Import Resolution preference. Allows parts of mixed dimension to be imported as components
of assemblies which have parts of different dimension.
Type MixedImportPref
Read Only No
GeometryImportNamedSelections
Import Named Selections preference. Creates a named selection based on data generated in the CAD
system or in the DesignModeler application.
Type bool
Read Only No
GeometryImportNamedSelectionsFilter
Import Named Selections filter Key. (Displayed only when Named Selections is selected.) This field can
have any number of prefixes with each prefix delimited by a semicolon. If the filter is set to an empty
string all applicable entities will be imported as Named Selections.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 447
Geometry
GeometryImportParameters
Type bool
Read Only No
GeometryImportParametersFilter
Import Parameter filter Key. (Displayed only when Parameters is selected.) Allows user to specify a key
that must appear at the beginning or end of a CAD parameter name to be imported. If the filter is set
to an empty string all CAD parameters will be imported.
Type string
Read Only No
GeometryImportProcessEnclosures
Enclosure and Symmetry preference. Use to turn on/off the processing of enclosure and symmetry
named selections.
Type bool
Read Only No
GeometryImportSavePartFile
Reader Mode Saves Updated File preference. When set to Yes, the interface will save the part file of a
model at the end of an update process using the same file name in the same directory.
Type bool
Read Only No
GeometryImportSmartUpdate
Smart CAD Update preference. Speeds up refresh of models that have unmodified components. If set
to Yes and changes are made to other preferences, these will not be respected if the component is
smart updated.
Type bool
Read Only No
GeometryImportSolidBodies
Import Solid Bodies preference. (If mixed dimension parts, Mixed Import Resolution preference is used.)
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
448 of ANSYS, Inc. and its subsidiaries and affiliates.
GeometryImportSpaceClaimExplodeUnsharedComponents
GeometryImportSpaceClaimExplodeUnsharedComponents
Type bool
Read Only No
GeometryImportSTLAngleAlgorithmCutAngle
Type double
Read Only No
GeometryImportSTLAngleAlgorithmToleranceAngle
Type double
Read Only No
GeometryImportSTLCurvatureAlgorithmIgnoreSecondaryNodes
Type bool
Read Only No
GeometryImportSTLCurvatureAlgorithmPlanesToleranceAngle
Type double
Read Only No
GeometryImportSTLCurvatureAlgorithmSharpEdgesAngle
Type double
Read Only No
GeometryImportSTLSDTAlgorithm
Analysis Type preference. Import 3D objects or 2D objects (objects must be in the x-y plane)
Type STLSDTAlgorithm
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 449
Geometry
GeometryImportSurfaceBodies
Import Surface Bodies preference. (If mixed dimension parts, Mixed Import Resolution preference is
used.)
Type bool
Read Only No
GeometryImportWeightclass
Type ImportWeightclass
Read Only No
GeometryImportWorkPoints
Import Work Points preference. Specifies whether work points created in the CAD application should
be imported into the Mechanical application.
Type bool
Read Only No
PlugInName
Current PlugInName - Returns TempPlugin if active DM session is editing. Otherwise return the real
plugin name. This is also not persisted.
Type string
Read Only No
TeamcenterConnection
The source string obtained from the Teamcenter, pointing to the NX geometry.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
450 of ANSYS, Inc. and its subsidiaries and affiliates.
Graphics
Graphics
This container holds charts and graphics objects in the project.
Data Entities
AxisContinuous
A chart axis that spans a set of continuous values. An example is an axis of an XY plot.
Properties
AutoScale
This property will define whether or not automatic scaling should be applied to the axis, or whether
the RangeMin and RangeMax should be used.
Type bool
Read Only No
Label
Type string
Read Only No
Logarithmic
This property controls whether the axis scaling is to be logarithmic or linear. The default is linear scaling.
Type bool
Read Only No
RangeMax
Type double
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 451
Graphics
RangeMin
Type double
Read Only No
ShowGrid
Type bool
Read Only No
TitleBackgroundColor
This defines the background color of an axis title. This is particularly useful when you want to be able
to identify which variable is associated with which axis. The default is transparent.
Type Color
Read Only No
Usability
Determine whether this axis represents a usability axis. A usability axis presents discrete allowable values
rather than continuous values.
Type bool
Read Only No
AxisDiscrete
A chart axis that represents a set of discrete values. An example is an axis of a bar chart.
Properties
AutoScale
This property will define whether or not automatic scaling should be applied to the axis, or whether
the RangeMin and RangeMax should be used.
Type bool
Read Only No
Label
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
452 of ANSYS, Inc. and its subsidiaries and affiliates.
RangeMax
The index of the last division of the discrete data to be used. If this is -1 then it is undefined and will
be determined dependent on the data.
Type uint
Read Only No
RangeMin
The index of the first division of the discrete data to be used. If this is -1 then it is undefined and will
be determined dependent on the data.
Type uint
Read Only No
ShowGrid
Type bool
Read Only No
TitleBackgroundColor
This defines the background color of an axis title. This is particularly useful when you want to be able
to identify which variable is associated with which axis. The default is transparent.
Type Color
Read Only No
ChartXY
This entity provides general properties for an XY (i.e. two dimensional) chart. Plotting details are determ-
ined from the associated variables and axes.
Properties
Legend
Type DataReference
Read Only No
Style
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 453
Graphics
Read Only No
Title
Type string
Read Only No
Variables
The variables to be displayed in this chart. This can be a list of Variable, VariableXY or VariableXYZ data
entities.
Type List<DataReference>
Read Only No
XAxis
Type DataReference
Read Only No
XAxisSecondary
Type DataReference
Read Only No
YAxis
Type DataReference
Read Only No
YAxisSecondary
Type DataReference
Read Only No
ChartXYZ
This chart is a canvas for an XYZ plot, the manor of plotting will be determined by the specified variables.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
454 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
Legend
Type DataReference
Read Only No
Style
Type DataReference
Read Only No
Title
Type string
Read Only No
Variables
The variables to be displayed in this chart. This can be a list of Variable, VariableXY or VariableXYZ data
entities.
Type List<DataReference>
Read Only No
XAxis
Type DataReference
Read Only No
YAxis
Type DataReference
Read Only No
ZAxis
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 455
Graphics
Read Only No
CorrelationMatrix
A Correlation Matrix uses a tabular graphic to display the strength of the relationships between multiple
parameters in a study.
Properties
CorrelationRange
This range defines the values and the distribution of correlation values to be applied to the color range.
This defaults from -1 to 1.
Type List<float>
Read Only No
Legend
Type DataReference
Read Only No
Style
Type DataReference
Read Only No
Title
Type string
Read Only No
Variables
The variables to be displayed in this chart. This can be a list of Variable, VariableXY or VariableXYZ data
entities.
Type List<DataReference>
Read Only No
Legend
This entity provides a legend for chart data.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
456 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
BackgroundColor
Type Color
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Enabled
Type bool
Read Only No
ForegroundColor
Type Color
Read Only No
Orientation
Type OrientationStyle
Read Only No
MultiAxisChart
Specialization of a chart to represent a parallel coordinate plot or a spider chart. Multi-axis charts use
an independent axis for each supplied variable.
Properties
ChartType
Sets the type of rendering (e.g. Parallel Coordinate Plot, Spider Plot) for this multi-axis chart.
Type ChartStyle
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 457
Graphics
Read Only No
Legend
Type DataReference
Read Only No
Style
Type DataReference
Read Only No
Title
Type string
Read Only No
Variables
The variables to be displayed in this chart. This can be a list of Variable, VariableXY or VariableXYZ data
entities.
Type List<DataReference>
Read Only No
PieChart
Pie chart data object that allows us to represent a displayable pie chart.
Properties
DivisionLabels
In a multi-axis chart we are plotting each variable as an axis, but what we plot are actually displaying
are the rows of each variable, as such we need labels for each row.
Type DataReference
Read Only No
Legend
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
458 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
ShowPercentages
Type bool
Read Only No
Style
Type DataReference
Read Only No
Title
Type string
Read Only No
Variables
The variables to be displayed in this chart. This can be a list of Variable, VariableXY or VariableXYZ data
entities.
Type List<DataReference>
Read Only No
RenderStyle
This entity supplies the render properties for any graphics object.
Properties
BarOffset
This property controls the amount of space (relative to the BarWidth) before drawing a bar for this
variable.
For example, if two variables are being drawn in a bar chart and you set the offset of the second variable
to be 0.5, that variable will be shifted by half the BarWidth to avoid overlap.
Type float
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 459
Graphics
BarWidth
This property controls the width of bars in a bar chart. The range of allowable values is 0 to 1, and sets
the percentage of the available space used for the bars of the variable.
Type float
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
DotStyle
Type DotStyles
Read Only No
FillColors
Define the fill color for this variable in the plot. All filled regions will use this color except where the
style is defined as gradient in which case the GradientColor is used.
Type List<Color>
Read Only No
FillStyle
Type FillStyles
Read Only No
GradientAxis
The axis that defines plot color if gradient shading is enabled. The axis must be continuous.
Type Axis
Read Only No
LineColors
Defines the line color of this variable in a plot. The first value in the list will be used if the line style is
not gradient. Gradient line style will blend between the provided colors.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
460 of ANSYS, Inc. and its subsidiaries and affiliates.
Type List<Color>
Read Only No
LineStyle
Type LineStyles
Read Only No
LineWidth
Sets the width of the line drawn for this variable in pixels.
Type uint
Read Only No
NumberOfColorBands
Controls the number of color bands to be used in a gradient fill. A value of 0 (the default) will result in
a continuous gradient.
Type uint
Read Only No
OutlineColors
Define the outline colors for symbols. If not set (the default) then LineColors is used.
Type List<Color>
Read Only No
ShowLinearInterpolationOfLines
When set to true, causes the ends of a line chart to extend to the edge of the chart. This is primarily
used to represent a constant line from a single value.
Type bool
Read Only No
Smoothing
Enables smoothing of the rendered object. In 3D this results in a smoothed rather than faceted surface.
In 2D this results in a smooth line rather than a straight line between points.
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 461
Graphics
SymbolSize
Set the size of a symbol in pixels when a symbol is drawn for this variable. The rendered symbol size
may be slightly smaller or larger than expected if symbol does not correctly fit into the specified number
of pixels.
Type uint
Read Only No
Variable
The data entity that defines a variable to be plotted.
Properties
AutoBounds
Defines whether the bounds are to be used from BoundsMin/BoundsMax or whether they are to be
automatically generated based on the data.
Type bool
Read Only No
BoundsMax
Defines the maximum rendered value for the data. Any larger values will be ignored.
Type float
Read Only No
BoundsMin
Defines the minimum rendered value for the data. Any smaller values will be ignored.
Type float
Read Only No
DisplayAs
Type VariableStyle
Read Only No
FilterBoundsMax
If bounds filtering is enabled, sets the maximum variable value that will cause it to be filtered from the
plot. This is different from BoundsMin in that any variable that exceeds this value will be excluded from
the plot. This primarily applies to Parallel Coordinate Plots.
Type float
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
462 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
FilterBoundsMin
If bounds filtering is enabled, sets the minimum variable value that will cause it to be filtered from the
plot. This is different from BoundsMin in that any variable that exceeds this value will be excluded from
the plot. This primarily applies to Parallel Coordinate Plots.
Type float
Read Only No
IsFilterBoundsEnabled
When this is true, any variables that are outside the filter bounds will be excluded from the plot. This
primarily applies to Parallel Coordinate Plots.
Type bool
Read Only No
IsIncludedInLegend
Setting this parameter to 'false' will exclude this variable from any legend it may be included in.
This property is only valid for XY and XYZ charts and will be ignored otherwise.
Type bool
Read Only No
Label
The label of the variable. This is optional and is typically determined from the name of the input variable.
Type string
Read Only No
RelativeOrder
Define the order of this variable among all the variables in a chart.
Type int
Read Only No
VariableXY
This is the base class for a data entity that defines a variable to be plotted.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 463
Graphics
Properties
AutoBounds
Defines whether the bounds are to be used from BoundsMin/BoundsMax or whether they are to be
automatically generated based on the data.
Type bool
Read Only No
BoundsMax
Defines the maximum rendered value for the data. Any larger values will be ignored.
Type float
Read Only No
BoundsMin
Defines the minimum rendered value for the data. Any smaller values will be ignored.
Type float
Read Only No
DisplayAs
Type VariableStyle
Read Only No
FilterBoundsMax
If bounds filtering is enabled, sets the maximum variable value that will cause it to be filtered from the
plot. This is different from BoundsMin in that any variable that exceeds this value will be excluded from
the plot. This primarily applies to Parallel Coordinate Plots.
Type float
Read Only No
FilterBoundsMin
If bounds filtering is enabled, sets the minimum variable value that will cause it to be filtered from the
plot. This is different from BoundsMin in that any variable that exceeds this value will be excluded from
the plot. This primarily applies to Parallel Coordinate Plots.
Type float
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
464 of ANSYS, Inc. and its subsidiaries and affiliates.
IsFilterBoundsEnabled
When this is true, any variables that are outside the filter bounds will be excluded from the plot. This
primarily applies to Parallel Coordinate Plots.
Type bool
Read Only No
IsIncludedInLegend
Setting this parameter to 'false' will exclude this variable from any legend it may be included in.
This property is only valid for XY and XYZ charts and will be ignored otherwise.
Type bool
Read Only No
Label
The label of the variable. This is optional and is typically determined from the name of the input variable.
Type string
Read Only No
RelativeOrder
Define the order of this variable among all the variables in a chart.
Type int
Read Only No
VariableXYZ
This is the base class for a data entity that defines a variable to be plotted.
Properties
AutoBounds
Defines whether the bounds are to be used from BoundsMin/BoundsMax or whether they are to be
automatically generated based on the data.
Type bool
Read Only No
BoundsMax
Defines the maximum rendered value for the data. Any larger values will be ignored.
Type float
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 465
Graphics
Read Only No
BoundsMin
Defines the minimum rendered value for the data. Any smaller values will be ignored.
Type float
Read Only No
DisplayAs
Type VariableStyle
Read Only No
FilterBoundsMax
If bounds filtering is enabled, sets the maximum variable value that will cause it to be filtered from the
plot. This is different from BoundsMin in that any variable that exceeds this value will be excluded from
the plot. This primarily applies to Parallel Coordinate Plots.
Type float
Read Only No
FilterBoundsMin
If bounds filtering is enabled, sets the minimum variable value that will cause it to be filtered from the
plot. This is different from BoundsMin in that any variable that exceeds this value will be excluded from
the plot. This primarily applies to Parallel Coordinate Plots.
Type float
Read Only No
IsFilterBoundsEnabled
When this is true, any variables that are outside the filter bounds will be excluded from the plot. This
primarily applies to Parallel Coordinate Plots.
Type bool
Read Only No
IsIncludedInLegend
Setting this parameter to 'false' will exclude this variable from any legend it may be included in.
This property is only valid for XY and XYZ charts and will be ignored otherwise.
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
466 of ANSYS, Inc. and its subsidiaries and affiliates.
Label
The label of the variable. This is optional and is typically determined from the name of the input variable.
Type string
Read Only No
RelativeOrder
Define the order of this variable among all the variables in a chart.
Type int
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 467
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
468 of ANSYS, Inc. and its subsidiaries and affiliates.
ICE
ICE
This container holds ICE data for an instance of IC Engine.
Methods
Refresh
Refresh ICE command.
Optional Arguments
UpstreamList A list of upstream data containers that supply data to this cell
Type List<DataContainerReference>
Reset
Reset ICE command.
Update
Update ICE command.
Data Entities
ICEData
ICE Data Object
Properties
CrankRadius
Type Quantity
Read Only No
CRLength
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 469
ICE
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
EVO
Type Quantity
Read Only No
ICCombustionSimulationType
Type ICCombustionSimulationType
Read Only No
ICIVCandEVOOption
Type ICIVCandEVOoption
Read Only No
ICSimulationType
Type ICSimulationType
Read Only No
IVC
Type Quantity
Read Only No
LiftCurvePath
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
470 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
MinLift
Type Quantity
Read Only No
PistonOffset
Type Quantity
Read Only No
SetSolverProp
Type string
Read Only No
ICE Setup
This container holds ICE setup data for an instance of IC Engine.
Methods
Refresh
Refresh ICE solver setup command.
Optional Arguments
UpstreamList A list of upstream data containers that supply data to this cell
Type List<DataContainerReference>
Reset
Reset ICE solver setup command.
Update
Update ICE solver setup command.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 471
ICE
Data Entities
ICESetupData
ICE Setup Data Object
Properties
CrankAngleSelector
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
ICKeyGridOption
Type YN
Read Only No
ICResetMeshOnFailure
Type bool
Read Only No
PostIterationJournal
Type string
Read Only No
PreIterationJournal
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
472 of ANSYS, Inc. and its subsidiaries and affiliates.
SolverSettingEditor
Type string
Read Only No
UserBCProfileFile
Type string
Read Only No
UserSettingsFilePath
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 473
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
474 of ANSYS, Inc. and its subsidiaries and affiliates.
ICEM
ICEM CFD
This container holds ICEM CFD data for an instance of ICEM.
Data Entities
SimulationGeneratedMesh
Mesh data object that resides in the ICEM CFD container.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Subsets
ICEM CFD creates Subsets instead of Parts from Named Selections if set.
Type bool
Read Only No
TransferFile
The ICEM CFD downstream files are *.msh "Imported FLUENT Mesh File Type", *.poly "POLYFLOWMesh",
and *.inp "ANSYS Input File".
Type DataReference
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 475
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
476 of ANSYS, Inc. and its subsidiaries and affiliates.
IcePak
IcePak Setup
This container holds Setup data for an instance of IcePak.
Methods
Edit
User can launch the Icepak application by executing the Edit command
Optional Arguments
Type bool
SystemCoordinate Optional parameter to specify the system coordinate to be displayed in the application
title
Type string
Exit
Close the Icepak session
Import
Import on the Setup container with an existing Icepak project or the compressed tzr Icepak project will
launch an Icepak session and opens the imported project
Import on the Solution container allow users to set different set of case and data files for post pro-
cessing.By default, the case and data files from the latest solution are available on the solution compon-
ent.
Required Arguments
FilePath Path to the project or tzr file when operated on Setup container. Path to the case file to be im-
ported when operated on the Solution container
Type string
Example
When the Import is called on the Setup container
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 477
IcePak
Icepak.Import(FilePath=r"E:\DSModels\ICE\demo1_files\dp0\IPK\Icepak\IcepakProj")
When the Import is called on the Setup container with tzr file
Icepak.Import(FilePath=r"c:\Temp\test.tzr")
Icepak.Import(FilePath=r"D:\IcepakProj00.cfd.cas")
Data Entities
IcePakSetup
Represents the IcepakSetup data entity
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
WorkbenchColorScheme
Setting this property will force Icepak to use the Workbench color scheme. Unsetting this property will
allow Icepak to use the default color scheme set inside Icepak
Type bool
Read Only No
IcePak Solution
This container holds Solution data for an instance of IcePak.
Methods
Import
Import on the Setup container with an existing Icepak project or the compressed tzr Icepak project will
launch an Icepak session and opens the imported project
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
478 of ANSYS, Inc. and its subsidiaries and affiliates.
Import on the Solution container allow users to set different set of case and data files for post pro-
cessing.By default, the case and data files from the latest solution are available on the solution compon-
ent.
Required Arguments
FilePath Path to the project or tzr file when operated on Setup container. Path to the case file to be im-
ported when operated on the Solution container
Type string
Example
When the Import is called on the Setup container
Icepak.Import(FilePath=r"E:\DSModels\ICE\demo1_files\dp0\IPK\Icepak\IcepakProj")
When the Import is called on the Setup container with tzr file
Icepak.Import(FilePath=r"c:\Temp\test.tzr")
Icepak.Import(FilePath=r"D:\IcepakProj00.cfd.cas")
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 479
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
480 of ANSYS, Inc. and its subsidiaries and affiliates.
Mechanical APDL
Mechanical APDL
This container holds data for a Mechanical APDL analysis.
Methods
AddFile
Copies the specified file to the working directory of the Mechanical APDL editor and registers the file
with the Workbench project.
AddInputFile
Specifies an input file containing APDL commands for the Mechanical APDL editor for execution when
the editor opens. Copies the file to the application working directory and registers it with the Workbench
project.
Edit
Opens the Mechanical APDL editor to allow modification of Analysis data.
Exit
Exits the Mechanical APDL editor.
GetAnalysisSettings
Query to return the reference to the container's AnalysisSettings data entity.
GetComponentSettingsForRsmDpUpdate
This query is used to obtain the ComponentSettingsForRsmDpUpdate object for Journaling and
Scripting
GetMapdlInputFile
Query to return the reference to the container's MapdlSetup data entity.
GetMapdlSetup
Query to return the reference to the container's MapdlSetup data entity.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 481
Mechanical APDL
GetSolutionSettings
This query is used to obtain the solution settings object for Journaling and Scripting
SendCommand
Sends commands to the Mechanical APDL editor.
SwitchToBackgroundMode
Switch the Update in progress into background mode. This will enable operations that are not allowed
during an Update in foreground mode (e.g. Project Save).
This command is not normally useful in a script. Journals may record the invocation of this command
after an Update invoke, as the result of GUI activity while the Update is in progress. However, replay of
these journals will always wait for the Update invoke to complete before invoking the next command,
rendering this step ineffectual.
Data Entities
ExtendedComponentSettingsForRsmDpUpdate
Extended Component settings when solved as part of design point update via RSM Currently used for
Addins with solvers that would like to take advantage of SMP
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
LimitOnNumberOfCores
The number of processes that the RSM-based design point update should not exceed during execution.
Type int
Read Only No
SerialOnly
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
482 of ANSYS, Inc. and its subsidiaries and affiliates.
SharedMemoryParallel
A boolean flag indicating whether or not to restrict the solver to using SMP, instead of distributed
parallel
Type bool
Read Only No
UseLimitOnNumberOfCores
Type bool
Read Only No
MapdlInputFile
Represents an input file for the Mechanical APDL editor.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Methods
Delete
PublishMapdlParameter
SwitchInputOrder
Switches the order of two input files for the Mechanical APDL editor.
UnpublishMapdlParameter
MapdlReferenceFile
Represents a reference file for the Mechanical APDL editor.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 483
Mechanical APDL
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Methods
Delete
MapdlSetup
Represents the settings used to launch the Mechanical APDL editor.
Properties
CommandLineOptions
Type string
Read Only No
CustomExecutablePath
Type string
Read Only No
DatabaseMemory
Defines the portion of workspace (memory) to be used for the database. The default is 512 MB for 64-
bit machines, 256 MB for 32-bit machines.
Type int
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
484 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
Distributed
Type bool
Read Only No
DownloadDistributedFiles
Indicates whether or not to download files from slave node scratches during distributed solves
Type bool
Read Only No
GPUAccelerator
Specifies the type of GPU Accelerators. By default this is set to none meaning no GPU acceleration is
used.
Type GPUAccelerator
Read Only No
Graphics
Specifies the type of graphics device. This option applies only to interactive mode. For UNIX/Linux sys-
tems, graphics device choices are X11, X11C, or 3D. For Windows systems, graphics device options are
WIN32 or WIN32C, or 3D.
Type string
Read Only No
JobName
Specifies the initial jobname, a name assigned to all files generated by the program for a specific
model. If you omit the -j option, the jobname is assumed to be file.
Type string
Read Only No
License
Defines which ANSYS product will run during the session (ANSYS Multiphysics, ANSYS Structural, etc.).
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 485
Mechanical APDL
MachineList
Type string
Read Only No
MPIType
Type MPIType
Read Only No
NumberOfGpusPerMachine
Specifies the number of accelerators to use when running with GPU Acceleration.
Type int
Read Only No
Processors
Specifies the number of processors to use when running Distributed ANSYS or Shared-memory ANSYS.
Type int
Read Only No
ReadStartAns
Type bool
Read Only No
WorkspaceMemory
Specifies the total size of the workspace (memory) in megabytes. If you omit the -m option, the default
is 1 GB (1024 MB) for 64-bit machines, 512 MB for 32-bit machines.
Type int
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
486 of ANSYS, Inc. and its subsidiaries and affiliates.
Mechanical
Methods
Edit
Opens the Mechanical editor and attaches geometry.
Optional Arguments
Hidden Specify if Mechanical will open in hidden mode. The default value is false.
Type bool
Interactive Specify if Mechanical will open in interactive mode. The default value is true.
Type bool
StartAsReadOnly Specify if Mechanical will open in read-only mode. The default value is false.
Type bool
Example
To edit the enhanced model component with default optional parameter values:
enhancedModel.Edit()
enhancedModel.Edit(Interactive=True)
Exit
Exit the Mechanical editor
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 487
Mechanical
Optional Arguments
SaveDatabase Indicates whether the Mechanical database will be saved prior to exiting
Type bool
Mechanical Model
This container holds Model data for an instance of ANSYS Mechanical.
Methods
Edit
Opens the Mechanical editor and attaches geometry.
Optional Arguments
Hidden Specify if Mechanical will open in hidden mode. The default value is false.
Type bool
Interactive Specify if Mechanical will open in interactive mode. The default value is true.
Type bool
StartAsReadOnly Specify if Mechanical will open in read-only mode. The default value is false.
Type bool
Example
To edit the model component with default optional parameter values:
model.Edit()
model.Edit(Interactive=True)
Exit
Exit the Mechanical editor
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
488 of ANSYS, Inc. and its subsidiaries and affiliates.
Optional Arguments
SaveDatabase Indicates whether the Mechanical database will be saved prior to exiting
Type bool
Export
Exports a .dsdb file for the model component.
Required Arguments
Type string
ExportASMJournal
Exports an ASM Journal (.wbjn) and supporting files for the model component.
Required Arguments
FilePath The path and name of the .wbjn file to be written. Supporting files written alongside.
Type string
ExportGeometry
Exports a PartManager database (.pmdb) file for the geometry in the model component.
Required Arguments
Type string
ExportMesh
Exports a .acmo file for the mesh in the model component.
Required Arguments
Type string
GetMechanicalMesh
Query to return the reference to the container's MechanicalMesh data entity.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 489
Mechanical
GetMechanicalMeshFile
Query to return the reference to the container's MechanicalMeshFile data entity.
Type DataReference
GetMechanicalModel
Query to return the reference to the container's MechanicalModel data entity.
Type DataReference
GetMechanicalSystemType
Query to return the reference to the container's MechanicalSystemType data entity.
Type DataReference
GetSimulationImportOptions
Query to return the data reference to the simulation import options
Type DataReference
Required Arguments
Type string
SendCommand
Executes a JScript or python command in the Mechanical editor.
If the Mechanical editor is not open, then the editor's GUI will not be available, causing some commands
to fail. In this case, consider calling the container's Edit method to open the editor before using Send-
Command.
Furthermore, if the Mechanical editor is not open, SendCommand will start the editor without the GUI,
issue the specified command, and then close the editor. For multiple SendCommands, this may degrade
performance.
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
490 of ANSYS, Inc. and its subsidiaries and affiliates.
Optional Arguments
Type string
Example
To execute some arbitrary command (in this case, causing a dialog box to appear) in the Mechanical editor:
model.SendCommand(Command="WBScript.Out(\"My Text\",true);" )
To run a JScript file already saved to disk using Run Macro from Mechanical:
setup.SendCommand(Command="WB.AppletList.Applet(\"DSApplet\").App.Script.doToolsRunMacro(\"C:\\\\macro.js\"
Data Entities
GeneralModelAssemblyProperties
Class used to expose general properties for the model assembly workflow
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
GroupObjectsBySource
Type bool
Read Only No
LengthUnit
Type string
Read Only No
ObjectRenaming
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 491
Mechanical
Type ObjectRenamingType
Read Only No
MechanicalMesh
This is the mesh data entity object that will exist in the model container.
Properties
Caption
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
MeshId
Type int
Read Only No
MechanicalModel
The model data entity in the model container.
Properties
AcpAllowRenumberingList
Read Only No
AcpRenumberingInformation
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
492 of ANSYS, Inc. and its subsidiaries and affiliates.
AllowMeshing
Type bool
Read Only No
Caption
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
EdaFile
Type DataReference
Read Only No
File
Type DataReference
Read Only No
IsResetNotRequired
Type bool
Read Only No
ModelConversionAssociativityMap
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 493
Mechanical
ModelId
Model identifier that corresponds with the ID on Model tree node in Mechanical
Type int
Read Only No
PrototypeId
Prototype identifier which corresponds to the ID on the Geometry tree node in Mechanical
Type int
Read Only No
MechanicalSystemType
This entity provides string based information about the physics, analysis, and solver settings for the
Mechanical system component.
Properties
AnalysisTypeDisplayString
Type string
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
PhysicsTypeDisplayString
Type string
SolverTypeDisplayString
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
494 of ANSYS, Inc. and its subsidiaries and affiliates.
MeshConversionOptionsEntity
(Beta) Entity to control the Skin Detection algorithm for importing cdb files.
Properties
BodyGroupingType
Type BodyGroupingType
Read Only No
CutAngle
Only displayed if Forbid Close Components equals Yes. It is the angle used to cut closed surfaces to
separate the elements into components.
Type Quantity
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
ForbidCloseComponents
Option to split closed surfaces into several components.If Yes then the algorithm cuts closed surfaces
into several components. It provides a simple method to avoid problematic faces on closed surfaces.
Type bool
Read Only No
GeometryImportAnalysisType
Type GeometryAttachType
Read Only No
NodalComponentKey
If the nodal components will be processed during CDB components the nodal component key will allow
filtering of which components to process
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 495
Mechanical
Read Only No
ProcessNodalComponents
Type bool
Read Only No
ToleranceAngle
The tolerance angle to seperate two elements into seperate components. If the angle between the
normals of two adjacent elements is less than or equal to the Tolerance Angle then the two elements
are in the same component, otherwise, they are separated.
Type Quantity
Read Only No
ModelOutputSettingsForACP
Entity to control the properties of mesh file generated by Mechanical Model.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
LengthUnit
Type string
Read Only No
SimulationImportOptions
Import options for model assembly available on the downstream model
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
496 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
NumberOfCopies
By default this value is 0, specifies how many additional copies of the upstream model are needed
Type int
Read Only No
RenumberMeshElementsAutomatically
By default this value is true, specifies whether the user would like us to automatically renumber his
mesh elements to prevent unique id conflicts during assembly
Type bool
Read Only No
RigidTransform
Type RigidTransformOptions
Read Only No
Source
Type DataReference
Read Only No
Mechanical Results
This container holds Results data for an instance of ANSYS Mechanical.
Methods
Edit
Opens the Mechanical editor and attaches geometry.
Optional Arguments
Hidden Specify if Mechanical will open in hidden mode. The default value is false.
Type bool
Interactive Specify if Mechanical will open in interactive mode. The default value is true.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 497
Mechanical
Type bool
StartAsReadOnly Specify if Mechanical will open in read-only mode. The default value is false.
Type bool
Example
To edit the results component with default optional parameter values.
result.Edit()
result.Edit(Interactive=True)
Exit
Exit the Mechanical editor
Optional Arguments
SaveDatabase Indicates whether the Mechanical database will be saved prior to exiting
Type bool
GetMechanicalSystemType
Query to return the reference to the container's MechanicalSystemType data entity.
Type DataReference
GetModalOptionsForCdb
Query to return the component reference for a given container and component base name.
Type DataReference
GetSimulationImportOptionsForResult
Query to return the component reference for a given container and component base name.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
498 of ANSYS, Inc. and its subsidiaries and affiliates.
Type DataReference
GetSimulationResultFile
Query to return the component reference for a given container and component base name.
Type DataReference
GetStaticOptionsForCdb
Query to return the component reference for a given container and component base name.
Type DataReference
SendCommand
Executes a JScript or python command in the Mechanical editor.
If the Mechanical editor is not open, then the editor's GUI will not be available, causing some commands
to fail. In this case, consider calling the container's Edit method to open the editor before using Send-
Command.
Furthermore, if the Mechanical editor is not open, SendCommand will start the editor without the GUI,
issue the specified command, and then close the editor. For multiple SendCommands, this may degrade
performance.
Required Arguments
Optional Arguments
Type string
Example
To execute some arbitrary command (in this case, causing a dialog box to appear) in the Mechanical editor:
model.SendCommand(Command="WBScript.Out(\"My Text\",true);" )
To run a JScript file already saved to disk using Run Macro from Mechanical:
setup.SendCommand(Command="WB.AppletList.Applet(\"DSApplet\").App.Script.doToolsRunMacro(\"C:\\\\macro.js\"
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 499
Mechanical
Data Entities
ModalOptionsForCdb
ModalOptionsForCdb
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Mode
Time
Type int
Read Only No
ScaleFactor
Scale Factor
Type double
Read Only No
SimulationImportOptionsForResult
Import options for model assembly available on the downstream model
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
LengthUnit
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
500 of ANSYS, Inc. and its subsidiaries and affiliates.
NumberOfCopies
By default this value is 0, specifies how many additional copies of the upstream model are needed
Type int
Read Only No
RenumberMeshElementsAutomatically
By default this value is true, specifies whether the user would like us to automatically renumber his
mesh elements to prevent unique id conflicts during assembly
Type bool
Read Only No
RigidTransform
Type RigidTransformOptions
Read Only No
Source
Type string
Read Only No
StaticOptionsForCdb
StaticOptionsForCdb
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
ScaleFactor
Scale Factor
Type double
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 501
Mechanical
Time
Time
Type double
Read Only No
Mechanical Setup
This container holds Set Up data for an instance of ANSYS Mechanical.
Methods
Edit
Opens the Mechanical editor and attaches geometry.
Optional Arguments
Hidden Specify if Mechanical will open in hidden mode. The default value is false.
Type bool
Interactive Specify if Mechanical will open in interactive mode. The default value is true.
Type bool
StartAsReadOnly Specify if Mechanical will open in read-only mode. The default value is false.
Type bool
Example
To edit the setup component with default optional parameter values.
setup.Edit()
setup.Edit(Interactive=True)
Exit
Exit the Mechanical editor
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
502 of ANSYS, Inc. and its subsidiaries and affiliates.
Optional Arguments
SaveDatabase Indicates whether the Mechanical database will be saved prior to exiting
Type bool
Export
Writes either an APDL input file (for use with the ANSYS solver) or a CAE Representation file (for use
with any solver).
Required Arguments
Path If the SetupDataType is 'InputFile', this should be a file path. If the SetupDataType is
'CAERepresentation', this should be a folder path.
Type string
SetupDataType Type of setup data to write to disk. Available options are: 'InputFile' and 'CAERepresenta-
tion'.
Type string
GetMechanicalSetupFile
Query to return the reference to the container's MechanicalSetupFile data entity.
Type DataReference
GetMechanicalSystemType
Query to return the reference to the container's MechanicalSystemType data entity.
Type DataReference
SendCommand
Executes a JScript or python command in the Mechanical editor.
If the Mechanical editor is not open, then the editor's GUI will not be available, causing some commands
to fail. In this case, consider calling the container's Edit method to open the editor before using Send-
Command.
Furthermore, if the Mechanical editor is not open, SendCommand will start the editor without the GUI,
issue the specified command, and then close the editor. For multiple SendCommands, this may degrade
performance.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 503
Mechanical
Required Arguments
Optional Arguments
Type string
Example
To execute some arbitrary command (in this case, causing a dialog box to appear) in the Mechanical editor:
model.SendCommand(Command="WBScript.Out(\"My Text\",true);" )
To run a JScript file already saved to disk using Run Macro from Mechanical:
setup.SendCommand(Command="WB.AppletList.Applet(\"DSApplet\").App.Script.doToolsRunMacro(\"C:\\\\macro.js\"
SetDesignAssessmentFile
Set the design assessment
Required Arguments
Type string
Data Entities
DesignAssessmentSetupSettingsType
The data entity that holds the setup properties for a Design Assessment.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
SolverTarget
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
504 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Read Only No
UserAttributeFile
Type string
Read Only No
Mechanical Solution
This container holds Solution data for an instance of ANSYS Mechanical.
Methods
Edit
Opens the Mechanical editor and attaches geometry.
Optional Arguments
Hidden Specify if Mechanical will open in hidden mode. The default value is false.
Type bool
Interactive Specify if Mechanical will open in interactive mode. The default value is true.
Type bool
StartAsReadOnly Specify if Mechanical will open in read-only mode. The default value is false.
Type bool
Example
To edit the solution component with default optional parameter values.
solution.Edit()
solution.Edit(Interactive=True)
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 505
Mechanical
Exit
Exit the Mechanical editor
Optional Arguments
SaveDatabase Indicates whether the Mechanical database will be saved prior to exiting
Type bool
Export
Exports the results(*.db, *.rth, *.rmg, and *.rst) files to given DirectoryPath.
Required Arguments
Type string
GetComponentSettingsForRsmDpUpdate
This query is used to obtain the ComponentSettingsForRsmDpUpdate object for Journaling and
Scripting
GetExpertProperties
This query is used to obtain the ExpertProperties object for Journaling and Scripting
GetMechanicalSystemType
Query to return the reference to the container's MechanicalSystemType data entity.
Type DataReference
GetSolutionSettings
Returns a DataReference to the Solution Settings object for this container
Type DataReference
SendCommand
Executes a JScript or python command in the Mechanical editor.
If the Mechanical editor is not open, then the editor's GUI will not be available, causing some commands
to fail. In this case, consider calling the container's Edit method to open the editor before using Send-
Command.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
506 of ANSYS, Inc. and its subsidiaries and affiliates.
Furthermore, if the Mechanical editor is not open, SendCommand will start the editor without the GUI,
issue the specified command, and then close the editor. For multiple SendCommands, this may degrade
performance.
Required Arguments
Optional Arguments
Type string
Example
To execute some arbitrary command (in this case, causing a dialog box to appear) in the Mechanical editor:
model.SendCommand(Command="WBScript.Out(\"My Text\",true);" )
To run a JScript file already saved to disk using Run Macro from Mechanical:
setup.SendCommand(Command="WB.AppletList.Applet(\"DSApplet\").App.Script.doToolsRunMacro(\"C:\\\\macro.js\"
Data Entities
ExtendedComponentSettingsForRsmDpUpdate
Extended Component settings when solved as part of design point update via RSM Currently used for
Addins with solvers that would like to take advantage of SMP
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
LimitOnNumberOfCores
The number of processes that the RSM-based design point update should not exceed during execution.
Type int
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 507
Mechanical
SerialOnly
Type bool
Read Only No
SharedMemoryParallel
A boolean flag indicating whether or not to restrict the solver to using SMP, instead of distributed
parallel
Type bool
Read Only No
UseLimitOnNumberOfCores
Type bool
Read Only No
SimulationSolutionSettings
Mechanical specific simulation solution settings entity used for Journaling and Scripting. Not based on
the common Infrastructure.Rsm.Queries entity.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Queue
Type string
SolveManager
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
508 of ANSYS, Inc. and its subsidiaries and affiliates.
SolveProcessSetting
Type string
Read Only No
UpdateOption
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 509
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
510 of ANSYS, Inc. and its subsidiaries and affiliates.
Mesh
Mesh
This container holds Mesh data for an instance of the Meshing application.
Methods
Edit
Opens the Meshing editor. If the editor has never been opened, the command will import the geometry
file associated with the Geometry cell in the Mesh system.
Optional Arguments
Interactive Specifies whether the editor should open in interactive mode. The default value is true.
Type bool
Example
To edit the mesh component with default optional parameter values:
mesh.Edit()
mesh.Edit(Interactive=True )
Exit
Exits the Meshing editor.
Optional Arguments
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 511
Mesh
Export
Saves the current state of the Meshing editor and exports a *.meshdat file. If the Meshing editor is not
currently open, the cached state (the state of the editor the last time it was closed) of the Meshing
editor will be exported.
Required Arguments
Type string
ExportASMJournal
Exports an ASM Journal (.wbjn) and supporting files for the model component.
Required Arguments
FilePath The path and name of the .wbjn file to be written. Supporting files written alongside.
Type string
ExportGeometry
Exports a PartManager database (.pmdb) file for the geometry in the model component.
Required Arguments
Type string
ExportMesh
Exports a .acmo file for the mesh in the model component.
Required Arguments
Type string
GetMechanicalMeshFile
Returns the data reference to the container's MechanicalMeshFile data entity.
Type DataReference
GetMechanicalModel
Returns the data reference to the container's MechanicalModel data entity.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
512 of ANSYS, Inc. and its subsidiaries and affiliates.
Type DataReference
GetMechanicalSystemType
Returns the data reference to the container's MechanicalSystemType data entity.
Type DataReference
GetMeshingImportOptions
Query to return the data reference to the meshing import options
Type DataReference
Required Arguments
Type string
Import
Import a mesh data file. This action will delete the geometry container from the Mesh system and
convert the Mesh cell into a file container. It is not possible to view meshes that are imported through
this command in the Meshing editor; however, the files imported can be transferred to downstream
mesh consumers (such as CFX, FLUENT, etc.) by way of normal component to component data transfer.
Required Arguments
Type string
Type MeshFileType
Example
To import a data file into the mesh component with default optional parameter values:
mesh.Import(FilePath=r"C:\temp\data.cfx", MeshType="CFX")
ImportRepositoryMesh
Import a mesh data file from a repository location. This action will delete the geometry container from
the Mesh system and convert the Mesh cell into a file container. It is not possible to view meshes that
are imported through this command in the Meshing editor; however, the files imported can be transferred
to downstream mesh consumers (such as CFX, FLUENT, etc.) by way of normal component to component
data transfer.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 513
Mesh
Required Arguments
Type DataReference
Type MeshFileType
SendCommand
Sends commands to the Meshing editor using JScript or Python syntax.
If the Meshing editor is not open, then the editor's GUI will not be available to the script, causing some
commands to fail. In this case, consider calling Edit() to open the editor before using SendCommand.
Furthermore,if the Meshing editor is not open,SendCommand will start the editor without GUI,issue the
specified command,and then close the editor. For multiple SendCommands,this may degrade perform-
ance.
Required Arguments
Optional Arguments
Type string
Example
To execute some arbitrary command (in this case, causing a dialog box to appear) in the Meshing editor:
mesh.SendCommand(Command=r"WBScript.Out("My Text",true);" )
Data Entities
GeneralMeshAssemblyProperties
Class used to expose general properties for the mesh assembly workflow
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
514 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
GroupObjectsBySource
Type bool
Read Only No
LengthUnit
Type string
Read Only No
ObjectRenaming
Type ObjectRenamingType
Read Only No
MechanicalModel
The data entity that contains the identifiers which maintain a relationship between the Mesh data
contain and the objects in the Meshing editor tree.
Properties
Caption
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
ModelId
Identifier which corresponds to the Model object in the Meshing editor tree. This ID can be used in
conjunction with SendCommand to perform operations such as inserting mesh controls or manipulating
mesh settings within the Meshing editor itself.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 515
Mesh
Type int
Read Only No
PrototypeId
Identifier which corresponds to the Geometry object in the Meshing editor tree. This ID can be used in
conjunction with SendCommand to perform operations such as inserting mesh controls or manipulating
mesh settings within the Meshing editor itself.
Type int
Read Only No
MechanicalSystemType
This entity provides string based information about the physics, analysis, and solver settings for the
Mesh component. As the Mesh component may be used independent of any specific physics, analysis,
or solver, the properties exposed by this entity may take a value of "Any", meaning simply that it is up
to the user to initialize and correctly configure the mesh settings within the Meshing editor.
Properties
AnalysisTypeDisplayString
The string which represents the current analysis type setting - this value will always be "Any".
Type string
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
ICEngineAutoSetup
Type bool
Read Only No
ICEngineMeshSettings
The string is a hyper link which opens the IC Engine mesh setting dialog.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
516 of ANSYS, Inc. and its subsidiaries and affiliates.
PhysicsTypeDisplayString
The string which represents current physics type setting - the value can be "Any" or "CFD".
Type string
RefMeshSize
Type Quantity
Read Only No
SolverTypeDisplayString
The string which represents the current solver setting - the value can be "Any", "FLUENT", "CFX", or
"POLYFLOW".
Type string
MeshingImportOptions
Import options for model assembly available on the downstream model
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
NumberOfCopies
By default this value is 0, specifies how many additional copies of the upstream mesh are needed
Type int
Read Only No
RenumberMeshElementsAutomatically
By default this value is true, specifies whether the user would like us to automatically renumber his
mesh elements to prevent unique id conflicts during assembly
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 517
Mesh
RigidTransform
Type RigidTransformOptions
Read Only No
Source
Type DataReference
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
518 of ANSYS, Inc. and its subsidiaries and affiliates.
Microsoft Office Excel Analysis
Methods
GetExcelSetup
Get the DataReference of the MSExcelSetup entity. There is only one MSExcelSetup entity per Analysis
container. An exception is thrown if the entity is not found.
Type DataReference
Example
The following example shows how the user can get a setup entity to set a different NamedRangeKey value.
system1 = GetSystem(Name="XLS")
analysis1 = system1.GetContainer(ComponentName="Analysis")
setup1 = analysis1.GetExcelSetup()
setup1.NamedRangeKey = "MyPrefix"
Data Entities
MSExcelFile
This entity represents an Excel file added to the Analysis container in order to expose data as Workbench
parameters and perform calculations based on parameters. It is created by the MSExcelSetup.AddFile
method which copies and registers the original user's file into the project files.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 519
Microsoft Office Excel Analysis
ErrorMessage
Type string
Read Only No
FileName
Type string
Read Only No
MacroName
Type string
Read Only No
OriginalFilePath
Type string
Read Only No
State
Type Status
Read Only No
UseMacro
Type bool
Read Only No
Methods
GetRange
Gets the DataReference of an MSExcelRange entity from its name. An exception is thrown if the entity
is not found.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
520 of ANSYS, Inc. and its subsidiaries and affiliates.
Type DataReference
Required Arguments
Type string
Example
The following example shows how the user can get an MSExcelRange named "WB_Thickness".
system1 = GetSystem(Name="XLS")
analysis1 = system1.GetContainer(ComponentName="Analysis")
setup1 = analysis1.GetExcelSetup()
file1 = setup1.GetFile()
range1 = file1.GetRange(Name="WB_Thickness")
write range1.CellRange
write range1.Value
GetRanges
Type DataReferenceSet
Example
The following example shows how the user can get all the MSExcelRange entities of an MSExcelFile.
system1 = GetSystem(Name="XLS")
analysis1 = system1.GetContainer(ComponentName="Analysis")
setup1 = analysis1.GetExcelSetup()
file1 = setup1.GetFile()
ranges = file1.GetRanges()
PublishParameter
Publishes an MSExcelRange as a Parameter in the Workbench project. The IsOutput argument allows
to publish the range as an input or an output parameter. The method returns the created Parameter
entity.
Type DataReference
Required Arguments
Type DataReference
Optional Arguments
IsOutput True to specify that the range is published as an output parameter, or false for input parameter.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 521
Microsoft Office Excel Analysis
Type bool
Example
The following example shows how to publish ranges as input or output parameters.
system1 = GetSystem(Name="XLS")
analysis1 = system1.GetContainer(ComponentName="Analysis")
setup1 = analysis1.GetExcelSetup()
file = setup1.AddFile(FilePath="C:\Test\ProcessCalculation.xlsx")
ValvePosition = file.GetRange(Name="WB_Valve_Position")
T1 = file.GetRange(Name="WB_T1")
input1 = file.PublishParameter( ValvePosition )
output1 = file.PublishParameter( T1 )
Reload
Reloads an MSExcelFile to synchronize the data between the Microsoft Office Excel application and
Workbench. For instance, it is necessary to call this method when the ExcelSetup.NamedRangeKey has
been modified, in order to filter the named ranges based on the new NamedRangeKey's value. It is also
necessary to reload the file if the workbook has been edited outside of Workbench, for instance to
change a formula. The method recreates MSExcelRange and Parameter entities as required. The existing
results in Workbench are invalidated.
Example
The following example shows how to reload a file.
system1 = GetSystem(Name="XLS")
analysis1 = system1.GetContainer(ComponentName="Analysis")
setup1 = analysis1.GetExcelSetup()
file = setup1.GetFile()
file.Reload()
UnpublishParameter
Unpublishes an MSExcelRange as a Parameter from the Workbench project, which means deleting the
Parameter entity that was created in association to this MSExcelRange.
Required Arguments
Type DataReference
Example
The following example shows how to publish and unpublish ranges as input or output parameters.
system1 = GetSystem(Name="XLS")
analysis1 = system1.GetContainer(ComponentName="Analysis")
setup1 = analysis1.GetExcelSetup()
file = setup1.AddFile(FilePath="C:\Test\ProcessCalculation.xlsx")
ValvePosition = file.GetRange(Name="WB_Valve_Position")
input1 = file.PublishParameter( ValvePosition )
T1 = file.GetRange(Name="WB_T1")
output1 = file.PublishParameter( T1 )
file.UnpublishParameter(ValvePosition)
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
522 of ANSYS, Inc. and its subsidiaries and affiliates.
file.UnpublishParameter(T1)
MSExcelRange
This entity represents an Excel named range that matches the prefix string define by the Parameter
Key. The MSExcelRange entities are created automatically when an Excel file is added, or reloaded, by
filtering all the named ranges found in the Excel workbook with the Parameter Key. The MSExcelRange
is not published as a parameter by default: use the MSExcelFile.PublishParameter method to expose
the range as an input or output parameter in the Workbench project. The named ranges can contain
a single cell for the value, or two cells for the value and the unit string.
Properties
CellRange
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Value
Type Quantity
Read Only No
ValueQuantityName
Type string
Read Only No
Methods
GetParameter
Gets the Parameter entity associated with a published MSExcelRange entity. If the MSExcelRange is not
published as a parameter, the method returns null.
Return The Parameter associated with the MSExcelRange, or null if it is not pub-
lished.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 523
Microsoft Office Excel Analysis
Type DataReference
Example
The following example shows how the user can get the parameter associated with a range.
system1 = GetSystem(Name="XLS")
analysis1 = system1.GetContainer(ComponentName="Analysis")
setup1 = analysis1.GetExcelSetup()
file1 = setup1.GetFile()
range1 = file1.GetRange(Name="WB_Thickness")
parameter1 = range1.GetParameter()
write parameter1.Name
MSExcelSetup
This entity holds properties to setup the data exchange with the Microsoft Office Excel application and
information about the state of the connection with the instance of Microsoft Office Excel. There is one
unique MSExcelSetup entity instance per Analysis container.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
ExcelStatus
Status of the connection with the instance of the Microsoft Office Excel application.
Type ExcelConnectionState
ExcelVersion
Version number of the Microsoft Office Excel instance connected with Workbench.
Type string
NamedRangeKey
The Named Ranges Key is a prefix string used to filter the named ranges found in the Excel workbook.
The default value is set using the value of the related user preference. It is possible to use an empty
string in order to retrieve all named ranges.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
524 of ANSYS, Inc. and its subsidiaries and affiliates.
UnitSystemName
The name of the unit system used for the Analysis container.
Type string
Read Only No
Methods
AddFile
Adds a file to an MSExcelSetup entity by providing its FilePath. The method copies and registers the
file into the Workbench project and returns an MSExcelFile entity if successful. The method also creates
an MSExcelRange entity for each named range matching the ExcelSetup.NamedRangeKey prefix string
("" by default). If the file does not exist, is not an Excel file or cannot be registered into the project, the
method throws an exception. If a file was already added to the MSExcelSetup, the method throws an
exception as well because only one file can be handled in each Analysis container. To use another file,
the user has to Reset the data container first.
Type DataReference
Required Arguments
FilePath The Path of the original Microsoft Office Excel file to add.
Type string
Example
The following example shows how to add a file to the MSExcelSetup entity.
system1 = GetSystem(Name="XLS")
analysis1 = system1.GetContainer(ComponentName="Analysis")
setup1 = analysis1.GetExcelSetup()
file = setup1.AddFile(FilePath="C:\Test\ProcessCalculation.xlsx")
write file.FileName
ranges = file.GetRanges()
DeleteFile
Deletes a file from an MSExcelSetup entity and from the Workbench project file management. All the
MSExcelRange entities and associated Parameter entities are deleted as well.
Required Arguments
Type DataReference
Example
The following example shows how to delete a file from an MSExcelSetup entity.
system1 = GetSystem(Name="XLS")
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 525
Microsoft Office Excel Analysis
analysis1 = system1.GetContainer(ComponentName="Analysis")
setup1 = analysis1.GetExcelSetup()
file = setup1.GetFile()
setup1.DeleteFile(file)
GetFile
Gets the MSExcelFile entity associated to the MSExcelSetup entity. If the MSExcelSetup entity has no
file, the method returns null. If the optional argument Name is specified but does not correspond to a
file associated to the MSExcelSetup, the method throws an exception.
Type DataReference
Optional Arguments
Type string
Example
The following example shows how the user can get a file entity from a setup entity to retrieve one of its
properties.
system1 = GetSystem(Name="XLS")
analysis1 = system1.GetContainer(ComponentName="Analysis")
setup1 = analysis1.GetExcelSetup()
file1 = setup1.GetFile()
write file1.Name
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
526 of ANSYS, Inc. and its subsidiaries and affiliates.
Parameters
Parameters
This container hold project-level Parameters and Design Points.
Methods
GetAllNamedExpressions
Returns all named expressions associated with a given container.
Type DataReferenceSet
GetAllParameters
Returns the set of all parameters associated with all entity properties in a given container. Parameters
not associated with containers are not returned.
Type DataReferenceSet
Example
In this example 'paramSet' becomes the set of parameters associated with the properties of any entity that
resides within the Results container of system1.
results1 = system1.GetContainer(ComponentName="Results")
paramSet = results1.GetAllParameters()
Data Entities
DesignPoint
The data entity which describes a project-level design point.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 527
Parameters
Read Only No
Exported
Type bool
Read Only No
HasValidRetainedData
Indicates whether the data model and files for this design point is retained in the project and valid.
This can happen for a retained DP; or a non-retained DP before previously retained data is deleted.
Type bool
IsUpToDate
Type bool
Note
Type string
Read Only No
Retained
Type bool
Read Only No
UpdateOrder
Type double
Read Only No
Methods
AreParameterValuesEqual
Comparison to see if all parameter values within two different design points are equivalent.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
528 of ANSYS, Inc. and its subsidiaries and affiliates.
Return True if all parameter values are equal.
Type bool
Required Arguments
Type DataReference
CopyParameterExpressions
Copies all input parameter expressions from one design point to another.
Required Arguments
Type DataReference
Delete
Deletes a design point, the associated directory, and all design point files from the project.
Duplicate
Creates a new design point in which all parameters have the same values as in the specified original
design point.
Type DataReference
GetParameterValue
Type Object
Required Arguments
Type DataReference
SetParameterExpression
Sets the expression of the specified input parameter in the given design point.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 529
Parameters
Required Arguments
Type string
Type DataReference
Example
The following example illustrates the setting of a parameter expression for a given design point.
dp = Parameters.GetDesignPoint("0")
param = Parameters.GetParameter("P1")
dp.SetParameterExpression(param, "cos(1)")
SetParameterExpressions
Required Arguments
Parameter
The data entity which describes a project-level Parameter.
Properties
Description
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
ErrorMessage
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
530 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only Yes
Expression
The parameter definition as an expression. This property may be a constant expression, or it may depend
on the values of other parameters.
Type string
Read Only No
ExpressionType
Indicates whether the expression is constant, derived from another expression, or undefined.
Type ExpressionType
Usage
Type ParameterUsage
Value
The current value of the parameter. For derived parameters, this value is the evaluated expression result.
Type Object
ValueQuantityName
Type string
Read Only No
Methods
Delete
Deletes a parameter.
A parameter can only be deleted when it is no longer associated with any properties/entities in the
project.
Disassociate
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 531
Parameters
Required Arguments
Entity The data model entity that holds the property to be disassociated.
Type DataReference
Type string
DisassociateInContext
Disassociates a data model property for a given context from an existing parameter.
Required Arguments
Entity The data model entity that holds the property to be disassociated.
Type DataReference
Type string
Optional Arguments
Type DataReference
Example
The following example illustrates proper DisassociateParameterInContext invocation:
entity1 = ...
parameter1 = Parameters.GetParameter(Name="p1")
parameter1.DisassociateParameterInContext(entity1, "SampleProperty")
contextEntity1 = ...
parameter1.DisassociateParameterInContext(entity1, "SampleProperty", contextEntity1)
GetAssociatedEntityProperties
Returns the entity properties associated with a given parameter. If a container is specified, returns only
the entity properties for the given container.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
532 of ANSYS, Inc. and its subsidiaries and affiliates.
Type ParameterizedEntityPropertiesCollection
Optional Arguments
Container Optionally specifies a container for which the entity properties should be returned.
Type DataContainerReference
GetDependencies
For a derived parameter, returns the list of parameters referred to by this parameter's expression.
Return Data references to the parameters that this parameter is dependent upon.
Type List<DataReference>
SetQuantityName
Required Arguments
Type string
SetQuantityUnit
Set the unit string for a parameter across all design points.
Required Arguments
Type string
ParameterSummaryChart
This is a summary chart that will display all parameters against all design points. This is useful for un-
derstanding and visualizing the full parameter space, but is not very useful for comparing one parameter
against another. For parameter vs. parameter charts, see CreateParameterVsParameterChart.
Properties
Chart
This stores the data reference to any generated charts from the Graphics system. e.g. a result of Cre-
ateMultiAxisChart.
Type DataReference
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 533
Parameters
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsBaseDesignPointExcluded
Type bool
Read Only No
Variables
Type DataReferenceSet
Read Only No
Methods
Delete
ParameterVsParameterChart
This chart type can be used to plot one parameter against another or parameters vs. design points.
chart1 = Parameters.CreateParameterVsParameterChart()
chart1.XAxisBottom = Parameters.GetParameter("P1")
chart1.XAxisTop = Parameters.GetParameter("P2")
chart1.YAxisLeft = Parameters.GetParameter("P3")
chart1.YAxisRight = Parameters.GetParameter("P4")
Properties
Chart
This stores the data reference to any generated charts from the Graphics system. e.g. a result of Creat-
eChartXY.
Type DataReference
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
534 of ANSYS, Inc. and its subsidiaries and affiliates.
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsBaseDesignPointExcluded
Type bool
Read Only No
XAxisBottom
Type DataReference
Read Only No
XAxisTop
Type DataReference
Read Only No
YAxisLeft
Type DataReference
Read Only No
YAxisRight
Type DataReference
Read Only No
Methods
Delete
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 535
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
536 of ANSYS, Inc. and its subsidiaries and affiliates.
Polyflow
Polyflow Setup
This container holds Setup data for an instance of Polyflow.
Methods
AddFile
Allows to import any kind of file into the Inputs sub-directory of the current Polyflow system
setup1.AddFile(FilePath="D:/temp/viscosity.crv")
This command will copy the viscosity.crv file from the D:\temp directory
into the Inputs directory of the current Polyflow system.
Required Arguments
Type string
Edit
Starts the editor (Polydata) given a Polyflow Setup Container
setup1.Edit()
This command will launch the editor (Polydata) of the selected Setup cell.
Exit
Stops the editor (Polydata) or the solver (Polyflow) given a Polyflow Setup or Solution Container
setup1.Exit()
This command will stop the editor (Polydata) of the selected Setup cell.
solver1.Exit()
This command will stop the solver (Polyflow) of the selected Solution cell.
GetPolyflowMesh
Returns the PolyflowMesh object stored in the Polyflow Setup component.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 537
Polyflow
ImportMesh
Allows to import a mesh file (gambit *.neu file, *.poly file, *.msh Fluent Mesh file or Polyflow Mesh file).
For *.neu and¨*.poly and a *.msh fluent file, a mesh conversion is automatically performed to get
eventually a Polyflow Mesh file (*.msh)
setup1.ImportMesh(FilePath="D:/temp/swell.msh")
This command will copy the swell.msh file from the D:\temp directory
into the directory of the current Polyflow system.
Required Arguments
Type string
ImportSetup
Allows to import a setup file (*.dat file) into the current Polyflow system
setup1.ImportSetup(FilePath="D:/temp/swell.dat")
This command will copy the swell.dat file from the D:/temp directory
into the directory of the current Polyflow system.
Required Arguments
Type string
ImportUDF
Allows to import the udf file into the Inputs sub-directory of the current Polyflow system
setup1.ImportUDF(UdfFilePath="D:/temp/swell.udf")
This command will copy the swell.udf file from the D:/temp directory
into the Inputs directory of the current Polyflow system.
Required Arguments
Type string
SetMeshPreferences
Allows to specify which mesh of upstream polyflow system will be used in the current polyflow system
: one does not provide a mesh file name, but a specific key to the corresponding mesh. The Mesh restart
mode can take two values : "NoUpstreamMeshFile" or "SingleMeshFile"
setup1.SetMeshPreferences(
meshRestartMode="SingleMeshFile",
meshKey="mesh (t=0.5000000E+00)[formatted]"))
This command will take the mesh generated by the upstream polyflow system
at time t=0.5 (and that is formatted)
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
538 of ANSYS, Inc. and its subsidiaries and affiliates.
Note : the mesh keys can be found in the "last_result.pub" file generated by the Polyflow solver in the
upstream system!
Required Arguments
meshKey Mesh key (among the list of available meshes created by an upstream polyflow system)
Type string
Type MeshRestartMode
StartFuseTool
Starts Polyfuse given a Polyflow Setup Container
setup1.StartFuseTool()
This command will launch the mesh manipulation tool (Polyfuse) on the selected Setup cell.
StartMaterialsTool
Starts Polymat given a Polyflow Setup Container
setup1.StartMaterialsTool()
This command will launch the material parameters fitting tool (Polymat) on the selected Setup cell.
StartPreferences
Starts the Editor of Polydata preferences given a Polyflow Setup Container or Starts the Editor of Polyflow
preferences given a Polyflow Solution Container
Data Entities
PolydataPreference
Contains a reference to the preferences file for Polydata (setup editor). It is a provider of the preferences
file.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 539
Polyflow
File
Type DataReference
Read Only No
PolyflowMesh
Contains a reference to a Polyflow mesh file. It is a provider for a Polyflow mesh file.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
File
Type DataReference
Read Only No
MeshReadingMode
Tells if one wants a conversion of the input mesh (*.poly or fluent *.msh) into a polyflow *.msh or if
one wants a direct reading by polydata (when editing setup)
Type MeshReading
Read Only No
PolyflowSetup
Contains a reference to a Polyflow data file. It is a provider of the data file (containing the setup).
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
540 of ANSYS, Inc. and its subsidiaries and affiliates.
File
Type DataReference
Read Only No
Polyflow Solution
This container holds Solution data for an instance of Polyflow.
Methods
ClearTemporaryFiles
Clear temporary files generated by Polyflow solver (if the solver is not running!) given a Polyflow Solution
Container
solution1.ClearTemporaryFiles()
Exit
Stops the editor (Polydata) or the solver (Polyflow) given a Polyflow Setup or Solution Container
setup1.Exit()
This command will stop the editor (Polydata) of the selected Setup cell.
solver1.Exit()
This command will stop the solver (Polyflow) of the selected Solution cell.
GetComponentSettingsForRsmDpUpdate
This query is used to obtain the ComponentSettingsForRsmDpUpdate object for Journaling and
Scripting
GetPolyflowSolution
Returns the PolyflowSolution object stored in the Polyflow Solution component.
Type DataReference
GetSolutionSettings
This query is used to obtain the solution settings object for Journaling and Scripting
SetResultsPreferences
Allows to specify which result (res/rst/csv) of upstream polyflow system will be used in the current
polyflow system : one does not provide filenames, but specific keys to the corresponding result files.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 541
Polyflow
Note : the result (res,rst,csv) keys can be found in the "last_result.pub" file generated by the Polyflow
solver in the upstream system!
Required Arguments
csvKey Csv key (among the list of available csv created by an upstream polyflow system)
Type string
restartKey Restart key (among the list of available restart created by an upstream polyflow
system)
Type string
resultKey Result key (among the list of available results created by an upstream polyflow
system)
Type string
Type SolverRestartMode
Example
solution1.SetResultsPreferences(
solverRestartMode="Restart with a single Polyflow CSV file",
resultKey="undefined",
restartKey="undefined",
csvKey="csv (t=0.5000000E+00)[formatted]")
This command will take the csv generated by the upstream polyflow system at time t=0.5 (and that
is formatted)
StartCurveTool
Starts Polycurve (curves viewer) given a Polyflow Solution Container
solution1.StartCurveTool()
This command will launch Polycurve of the selected Solution cell.
StartDiagnosticsTool
Starts Diagnostics tool (Polydiag) given a Polyflow Solution Container
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
542 of ANSYS, Inc. and its subsidiaries and affiliates.
solution1.StartDiagnosticsTool()
This command will launch the Diagnostics tool (Polydiag) of the selected Solution cell.
StartListingViewer
Starts the listing viewer given a Polyflow Solution Container
solution1.StartListingViewer()
This command will launch the listing viewer tool (Polylst) on the selected Solution cell.
StartPreferences
Starts the Editor of Polydata preferences given a Polyflow Setup Container or Starts the Editor of Polyflow
preferences given a Polyflow Solution Container
StartStatisticsTool
Starts Polystat given a Polyflow Solution Container
solution1.StartStatisticsTool()
This command will launch the statistical analyzer tool (Polystat) on the selected Solution cell.
SwitchToBackgroundMode
Switch the Update in progress into background mode. This will enable operations that are not allowed
during an Update in foreground mode (e.g. Project Save).
This command is not normally useful in a script. Journals may record the invocation of this command
after an Update invoke, as the result of GUI activity while the Update is in progress. However, replay of
these journals will always wait for the Update invoke to complete before invoking the next command,
rendering this step ineffectual.
Data Entities
PolyflowPreference
Contains a reference to the preferences file for Polyflow (solver). It is a provider of the preferences file.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 543
Polyflow
File
Type DataReference
Read Only No
PolyflowSolution
Contains a reference to a Polyflow listing file. It is a provider of the listing file (containing a summary
of the simulation).
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
File
Data reference to the listing file generated by the Polyflow solver and containing a summary of the
simulation.
Type DataReference
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
544 of ANSYS, Inc. and its subsidiaries and affiliates.
Project
Project
This container holds the Systems, Components and Templates in the project.
Data Entities
Component
Data entity representing a component of a system in the schematic.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Notes
Type string
Read Only No
Methods
Clean
Delete the heavyweight data (e.g. solution and/or results) of this component to reduce the size of the
project.
DeleteShare
Optional Arguments
System The target system holding the shared component. Used if the component is shared in more than
one system.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 545
Project
Type DataReference
DeleteTransfer
Required Arguments
Type DataReference
GetContainer
Type DataContainerReference
GetTaskObject
This method is available only in AIM. For the given project schematic component, return it's anchor
object.
Return The anchor object associated with the project schematic component.
Type DataReference
Refresh
Refreshes the input data for a component by reading all changed data from upstream (source) compon-
ents. Does not perform any calculations or updates based on the new data.
RemoveFromSystem
Required Arguments
System A reference to the system containing the component to be deleted. This is needed in case the
component is shared between more than one system.
Type DataReference
ReplaceWithShare
Replaces a component in a system with a shared copy of a component from another system. The data
sources of any downstream components are updated to include the new component.
Required Arguments
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
546 of ANSYS, Inc. and its subsidiaries and affiliates.
Optional Arguments
Type DataReference
Type DataReference
Example
The following example illustrates a replace of a component with a shared copy of another system's com-
ponent.
componentToShare = sys2.GetComponent("componentName")
componentToReplace = sys1.GetComponent("componentName")
componentToReplace.ReplaceWithShare(ComponentToShare=componentToShare)
Note that you do not need to specify the TargetSystem and SourceSystem. They are only retained
for legacy compatibility.
Reset
Resets the component by removing all user input and result data.
TransferData
Required Arguments
Type DataReference
TransferSpecificData
Create a data transfer connection between two existing components, specifying the type of data to be
transferred. This is used in some situations where more than one type of data can be exchanged between
two components.
Required Arguments
Type DataReference
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 547
Project
Update
Updates the component by refreshing the input from all upstream components and then performs a
local calculation based on current data.
Optional Arguments
Type bool
UpdateUpstreamComponents
Updates all components upstream of the given component, without updating the component itself.
ComponentTemplate
This entity provides information used in the creation of a new component in the project. A component
template has no user modifiable properties and is typically only referenced when creating a new system
that includes data connections.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Methods
CreateComponent
Required Arguments
Type DataReference
Optional Arguments
Type SystemPropertyDictionary
Type Output<DataReference>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
548 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
UpstreamComponent A list of upstream components which will provide transfer data to the created
component.
Type List<DataReference>
Example
The following example illustrates Component creation from a template.
system1 = CreateSystem(...)
template = GetComponentTemplate("MyTemplate")
template.CreateComponent(System=system1)
Optional properties allow you to modify component creation, including the establishment of upstream
component connections.
system1 = CreateSystem(...)
upstreamComponent = ...
template = GetComponentTemplate("MyTemplate")
template.CreateComponent(Name="MyComponent", System=system1, UpsatreamComponent=[upstreamComponent], AllSys
CustomProjectTemplate
A project snippet template containing multiple systems and their links.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
SystemNames
The names of the systems to create, one for each entry in the SystemTemplates list.
Type List<string>
Read Only No
SystemTemplates
Type List<DataReference>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 549
Project
Methods
CreateProject
Delete
Deletes the project template from the toolbox and user's Workbench application data.
SchematicSettings
This data entity holds properties that control the appearance of the Project Schematic.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Notes
Type string
Read Only No
System
A collection of components brought together to complete a specific type of analysis or data generation
within a project.
Properties
AnalysisType
Type string
Read Only No
Components
Type List<DataReference>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
550 of ANSYS, Inc. and its subsidiaries and affiliates.
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Notes
Type string
Read Only No
Physics
Type List<string>
Read Only No
Solver
Type List<string>
Methods
CloseAnsoftApplication
Closes the editor opened for the supplied system. This is a no-operation, if no editor is opened.
Optional Arguments
SaveBeforeClose Optional parameter which controls whether the system state is saved before the ap-
plication close. This is currently ignored and is effectively "true" for all invocations.
Type bool
Delete
Deletes the system and all contained data from the project.
Duplicate
Creates a new system containing a copy of all the data in this system.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 551
Project
Type DataReference
Optional Arguments
ComponentsToShare The components to share into the new system. Used if the system being duplicated
has shared components, and we wish to continue using those shares in the new
system.
Type List<DataReference>
Type string
Type PositionType
Type DataReference
Example
The following example illustrates System duplication. No components are shared. The new, copied system
will appear to the right of the existing system. Its name will be "MyNewSystme".
mySystem = CreateSystem(...)
mySystem2 = mySystem.Duplicate(ComponentsToShare=[],
Position="Right",
RelativeTo=mySystem,
Name="MyNewSystem")
GetComponent
Query to return the component reference for a given component base name in the system.
Type DataReference
Required Arguments
Type string
GetContainer
Query to return the container for a given component base name in the system.
Type DataContainerReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
552 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
GetReplaceableTemplates
A query to return the list of templates that can be used to replace the current system.
Return The list of System Template references that can be used to replace this system.
Type List<DataReference>
Move
Required Arguments
Type PositionType
RelativeTo The system that the moved system is positioned relative to.
Type DataReference
RecreateDeletedComponents
Recreates new versions of any components that have been deleted from the system.
Refresh
Refreshes the input data for all components in the system by reading changed data from upstream
sources. Does not perform any calculations or updates based on the new data.
SendAnsoftCommand
Send a Visual Basic command string or a script file understood by the Ansoft applications to the editor
associated with the system. Only one of the "Command" or "CommandFile" arguments can be specified.
Return The return value from the command. This is only supported when using
Python single-line arguments - if PyCommand is used, the command's
output is returned - all others, the empty string is returned.
Type Object
Optional Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 553
Project
CommandFile File containing VB script commands that can also be directly executed from the application's
Tools->Run Script
Type string
Type string
Example
Required example does not exist.
Update
Updates all components in the system by refreshing the input from all upstream sources, and then
performing local calculation based on current data.
Optional Arguments
Type bool
Template
A template that is used to create a system within the project.
Properties
AnalysisType
Type string
Read Only No
DisplayName
The user-visible name for the type of systems created from this template.
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
554 of ANSYS, Inc. and its subsidiaries and affiliates.
Physics
Type List<string>
Read Only No
Solver
Type List<string>
SystemType
The system type, displayed in the User Interface in the header of the system block.
Type string
Read Only No
SystemTypeAbbreviation
The system type abbreviation, used to create the system unique directory name and also serves as the
system object's base name.
Type string
Read Only No
Methods
CreateSystem
Type DataReference
Optional Arguments
Type List<DataReference>
DataTransferFrom A list of data transfer specifications to transfer data into the new system. This is used
to create follow-on systems. This and DataTransferTo are mutually exclusive.
Type List<TransferDataToNewComponentSpec>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 555
Project
DataTransferTo A list of data transfer specifications to transfer data from the new system into existing
components. This is used to create a preceding system. This and DataTransferFrom
are mutually exclusive.
Type List<TransferDataFromNewComponentSpec>
Type string
Type PositionType
Type DataReference
Example
Two examples are presented. This first section gets the template for a "Fluid Flow (CFX)" system, and then
creates an empty, stand-alone system in the default position.
In the second part of the example, we create a Static Structural (ANSYS) system connected to the
previous Fluid Flow system. The Geometry component from the Fluid Flow system (component1)
is shared with the new Static Structural system. The Solution component from the Fluid Flow system
(component2) transfers results data into the Setup component of the Static Structural system. The
new system is created to the right of the existing system.
ReplaceSystem
Replace an existing system with one based on the selected System Template.
There are a number of restrictions on the template that can be used to replace an existing system. See
system.GetReplaceableTemplates() to determine the list of allowable templates.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
556 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type DataReference
Optional Arguments
Type string
Data Entities
FileType
FileType defines file type information including a short description.
Properties
Description
Type string
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
ExtensionPatterns
The possible file extension patterns to match in a regular expression. The patterns are used to check
whether this file type can handle a set of file extensions.
Type List<string>
Extensions
The possible file extensions (with the leading "."). These extensions can be displayed to the user in a
file dialog filter, for example.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 557
Project
Type List<string>
Project Files
This container holds Files registered with the File Manager.
Methods
GetFiles
Gets all the File References that are associated with the specified container.
Type DataReferenceSet
Example
This example prints the location of files for two different components of a system.
system1 = GetSystem(Name="Static1")
geometry1 = system1.GetContainer(ComponentName="Geometry")
for fileRef in geometry1.GetFiles():
print fileRef.Location
>>> C:\Users\myUser\Projects\static1_files\dp0\SYS\DM\SYS.agdb
>>> E:\data\Models\pipe.x_t
model1 = system1.GetContainer(ComponentName="Model")
for fileRef in model1.GetFiles():
print fileRef.Location
>>> C:\Users\myUser\Projects\static1_files\dp0\global\MECH\SYS.engd
>>> C:\Users\myUser\Projects\static1_files\dp0\global\MECH\SYS.mechdb
Data Entities
FileReference
The data entity that represents a file that is part of the project.
Properties
Directory
A string that contains the path to the directory containing the file.
Type string
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
558 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Read Only No
Exists
Type bool
FileName
Type string
LastModifiedTime
Type DateTime
Location
The full path to the local file including the directory and file name.
Type string
Read Only No
Size
Type long
Methods
Copy
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 559
Project
Required Arguments
Type string
Overwrite Specifies whether to overwrite an existing files of the same name. Note:
A registered file may not be overwritten.
Type bool
Example
The following example illustrates proper CopyFileByReference command invocation:
fileRef = GetRegisteredFileQuery(FilePath=r"path_to_file")
fileRefCopy = fileRef.Copy(DestinationDirectoryPath=r"path_to_copy_file", Overwrite=True, CopyReferenceCoun
Delete
Optional Arguments
BackUp Specifies whether to back up the file before deletion. This optional argument's default
value is true.
Type bool
DeleteIfShared Specifies whether a registered file should be deleted even if it is still in use. This optional
argument's default value is true. If this argument's value is false, an exception will be
thrown if a shared file is encountered. To avoid the exception, set ErrorIfShared to false.
Type bool
ErrorIfShared Specifies whether to throw an exception when trying to delete a shared file if DeleteIf-
Shared is set to false.
Type bool
Example
The following example illustrates a deletion of a registered file via a file reference. The file will be deleted
if even if it is still in use. Note that the file will be backed up.
fileRef = GetRegisteredFile(FilePath=r"C:\Users\anyuser\path-to-file.extension")
fileRef.Delete(DeleteIfShared=True,
BackUp=True)
The next example illustrates a deletion of a registered file via a file reference without a forced dele-
tion. If the file is shared, an error will not occur, and the file reference count will be decremented.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
560 of ANSYS, Inc. and its subsidiaries and affiliates.
fileRef = GetRegisteredFile(FilePath=r"C:\Users\anyuser\path-to-file.extension")
fileRef.Delete(ErrorIfShared=False)
Move
Required Arguments
Type string
Optional Arguments
BackUp Specifies whether to back up the file before the move. This optional argument's default value is
true.
Type bool
Example
The following example illustrates proper MoveFileByReference command invocation:
fileRef = GetRegisteredFileQuery(FilePath=r"path_to_file")
fileRefCopy = fileRef.Move(NewDirectoryPath=r"path_to_move_file", Backup=False)
Rename
Renames a file.
Required Arguments
New- The new file name, excluding the directory path. To change the directory, see MoveFileCommand.
Name
Type string
Optional Arguments
BackUp Specifies whether to back up the file before renaming it. This optional argument's default value is
true.
Type bool
Example
The following example illustrates proper RenameFileByReference command invocation:
fileRef = GetRegisteredFileQuery(FilePath=r"path_to_file")
fileRefCopy = fileRef.Rename(NeName="new_file_name", BackUp=True)
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 561
Project
Repair
Repairs a file that is referenced in the project but cannot be found on disk. If the file is expected to be
found under the project directory, then this command will copy the new file to the expected location
rather than link to the new file in its current location. Use SetFilePathCommand to link to a file in a new
location.
Required Arguments
Type string
RepositoryFileSource
RepositoryFileSourceEntity defines repository file information including a server, workspace and filepath
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
FileName
Type string
IsMissingInRepository
Type bool
Read Only No
LastDownloadRepositoryModificationTime
Type DateTime
Read Only No
LastDownloadTime
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
562 of ANSYS, Inc. and its subsidiaries and affiliates.
Type long
Read Only No
LocalFileExists
Type bool
LocalLocation
String representation of local path to specify the local copy of repository file
Type string
Read Only No
Size
Type long
SourceFileInfo
Type RepositoryFileInfo
Read Only No
Project Messages
This container holds current project messages.
Data Entities
StoredMessage
A data entity representing a message (error, warning, information, etc.) that is visible to the user.
Properties
Association
The data model entity to which the message applies (a component, for example).
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 563
Project
DateTimeStamp
Type DateTime
Details
Type string
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
MessageType
Type MessageType
Summary
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
564 of ANSYS, Inc. and its subsidiaries and affiliates.
Study
Study
This container holds Study data for an instance of Study.
Common Methods
CreateDataManager
The Data Manager is a utility object intended for use by the ImportEngineeringData command. It is
used to load an applicable manager for the type of data being managed as well the source of the data
which the manager will use to bring the data into the project.
Type DataReference
Optional Arguments
Provider The management provider for the requested Source of data. The provider understands how to
convert the data in the sources to AIM.
Type string
Sources The source of the data which will be managed by the Data Manager. If this argument is not
provided the Source must be set or provided before the Data Manager is used.
Type List<string>
Example
This example creates a Data Manager in the study.
dataManagerThermal = study1.CreateDataManager(
Sources=[r"C:\ANSYSDev\Program Files\Ansys Inc\v151\Addins\EngineeringData\Samples\Thermal_Materials.xm
Provider="ANSYS")
CreateEntity
Create AIM objects of the requested Type.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 565
Study
Required Arguments
Type The entity Type to create. The entity Type can be seen in the GUI by hovering over the entity's object
icon. Also using dir(Study) will show object types for Get<Type> queries, for which the <Type> may
be able to be created.
Type string
Optional Arguments
AssociatedObject The object to associate this object to in the AIM dependency graph, which
will create a directed edge in the AIM dependency graph. See discussion on
Study and Tasks. This is deprecated in favor of Association.
Type DataReference
Association The object to associate this object to in the AIM dependency graph, which
will create a directed edge in the AIM dependency graph. See discussion on
Study and Tasks.
Type DataReference
Location If the entity has a location property, this will set the property to the provided
LocationSet.
Type Object
Location2 If the entity has a second location property, this will set the property to the
provided LocationSet.
Type Object
LocationWithHitPoints If the entity has a location property with hit points, this will set the property
to the provided LocationSet.
Type Object
LocationWithHitPoints2 If the entity has a second location property with hit points, this will set the
property to the provided LocationSet.
Type Object
Type DataReferenceSet
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
566 of ANSYS, Inc. and its subsidiaries and affiliates.
Example
This example shows the steps preceding the CreateEntity, and then creates a PhysicsRegion object.
system1 = GetSystem(Name="Study")
physicsDefinitionComponent1 = Study.CreateTask(
Type="Physics Definition",
System=system1)
study1 = system1.GetContainer(ComponentName="Study")
physicsDefinition1 = physicsDefinitionComponent1.GetTaskObject()
physicsRegion1 = study1.CreateEntity(
Type="PhysicsRegion",
Association=physicsDefinition1)
CreateTable
CreateTable is a convenience command which performs the following commands:
Creates a table and associates with the Parent. See the CreateEntity command, where
Type="Table" and AssociatedObject=Parent.
Adds columns corresponding to the Columns parameter. See the AddTableColumn command.
Type DataReference
Required Arguments
Columns A List of tuple (name and physical quantity). The name is used to identify the column and must
be unique to this table. The physical quantity (e.g. Density, Pressure, etc.) is used to verify the data
has the correct units. The use of integer indexes in other table related commands correspond to
the order of the columns, with 0 (zero) being the first item.
Type List<List<string>>
Parent The DataReference of the object to which this table should be created in the scope of
Type DataReference
Example
This example illustrates creating a table and setting data in the table.
# drContainer is the DataContainerReference of an object that has been previously created (e.g. study1)
# drParent is the DataReference of an object that has been previously created (e.g. material1)
table1 = drContainer.CreateTable(drParent, Columns=[("Temperature","Temperature"),("Displacement","Length")
table1.AddRow(Data=["100 [C]","1.0 [m]"])
table1.AddRow(Data=["200 [C]",".02 [m]"])
table1.AddRow(Data=["300 [C]",".06 [m]"])
table1.GetData()
GetAFDPhysicsOptions
Obtains a AFDPhysicsOptions instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 567
Study
Required Arguments
Type string
GetBoundary
Obtains a Boundary instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetBoundaryCondition
Obtains a BoundaryCondition instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetCappingSurface
Obtains a CappingSurface instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetConfiguration
Obtains a Configuration instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
568 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
GetConnection
Obtains a Connection instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetConnectionBehavior
Obtains a ConnectionBehavior instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetConstraint
Obtains a Constraint instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetContactBehavior
Obtains a ContactBehavior instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 569
Study
Required Arguments
Type string
GetContourResult
Obtains a ContourResult instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetConvection
Obtains a Convection instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetCurrent
Obtains a Current instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetDisplacement
Obtains a Displacement instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
570 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
GetEquipotential
Obtains a Equipotential instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetFluidBoundary
Obtains a FluidBoundary instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetForce
Obtains a Force instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetGeometryImportSource
Obtains a GeometryImportSource instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 571
Study
Required Arguments
Type string
GetHeatFlow
Obtains a HeatFlow instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetHeatFlux
Obtains a HeatFlux instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetHeatGeneration
Obtains a HeatGeneration instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetImport
Obtains a Import instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
572 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
GetInertiaLoad
Obtains a InertiaLoad instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetInitialConditions
Obtains a InitialConditions instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetInterfaceGenerator
Obtains a InterfaceGenerator instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetIsoSurface
Obtains a IsoSurface instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 573
Study
Required Arguments
Type string
GetLoad
Obtains a Load instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetMaterial
Obtains a Material instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetMaterialAssignment
Obtains a MaterialAssignment instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetMechanicalPhysicsOptions
Obtains a MechanicalPhysicsOptions instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
574 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
GetMesh
Obtains a Mesh instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetMeshControl
Obtains a MeshControl instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetMeshControlBodySizing
Obtains a MeshControlBodySizing instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetMeshControlEdgeSizing
Obtains a MeshControlEdgeSizing instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 575
Study
Required Arguments
Type string
GetMeshControlElementShape
Obtains a MeshControlElementShape instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetMeshControlFaceSizing
Obtains a MeshControlFaceSizing instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetMeshControlLocalInflation
Obtains a MeshControlLocalInflation instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetMeshDiagnostics
Obtains a MeshDiagnostics instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
576 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
GetMeshing
Obtains a Meshing instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetMoment
Obtains a Moment instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetMoveRotateControl
Obtains a MoveRotateControl instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetNumericalControls
Obtains a NumericalControls instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 577
Study
Required Arguments
Type string
GetOutputControls
Obtains a OutputControls instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetPhysicsCoupling
Obtains a PhysicsCoupling instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetPhysicsDefinition
Obtains a PhysicsDefinition instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetPhysicsOptions
Obtains a PhysicsOptions instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
578 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
GetPhysicsRegion
Obtains a PhysicsRegion instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetPhysicsRegionInterface
Obtains a PhysicsRegionInterface instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetPlane
Obtains a Plane instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetPoint
Obtains a Point instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 579
Study
Required Arguments
Type string
GetPressure
Obtains a Pressure instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetRadiation
Obtains a Radiation instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetReferenceFrame
Obtains a ReferenceFrame instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetResultObject
Obtains a ResultObject instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
580 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
GetResults
Obtains a Results instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetScalarConstraint
Obtains a ScalarConstraint instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetScalarLoad
Obtains a ScalarLoad instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetSelectionSet
Obtains a SelectionSet instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 581
Study
Required Arguments
Type string
GetSimulation
Obtains a Simulation instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetSingleValueResult
Obtains a SingleValueResult instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetSolutionControls
Obtains a SolutionControls instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetSolutionQualityMonitor
Obtains a SolutionQualityMonitor instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
582 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
GetSolvePhysics
Obtains a SolvePhysics instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetSolverSettings
Obtains a SolverSettings instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetStreamLine
Obtains a StreamLine instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetSupport
Obtains a Support instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 583
Study
Required Arguments
Type string
GetSuppressControl
Obtains a SuppressControl instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetTemperatureCondition
Obtains a TemperatureCondition instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetTemperatureConstraint
Obtains a TemperatureConstraint instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetTranscript
Obtains a Transcript instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
584 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
GetUserCommands
Obtains a UserCommands instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetValidMaterialContent
Query to return a list of valid material model tuples, where each tuple has the strings for use on the
CreateMaterialContent command. The tuple is in the following form (Model, Definition, Behavior)
Return A list of the valid material model tuples. The default list returned is in the
following form [(Model, Definition, Behavior), ..., (Model, Definition, Beha-
vior)].
Type List<Object>
Optional Arguments
IncludeName Include the user friendly name as the first element of a sub-list and second element is the
material model tuple. The list returned is in the following form [[Name, (Model, Definition,
Behavior)], ..., [Name, (Model, Definition, Behavior)]]
Type bool
Example
This example requests all the valid material properties including the names.
validContent = Study.GetValidMaterialContent(IncludeName=true)
GetVectorConstraint
Obtains a VectorConstraint instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 585
Study
Required Arguments
Type string
GetVectorLoad
Obtains a VectorLoad instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetVectorResult
Obtains a VectorResult instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetVirtualPrimitiveBox
Obtains a VirtualPrimitiveBox instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetVoltage
Obtains a Voltage instance by name from the supplied container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
586 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
GetVolumeExtractionRegion
Obtains a VolumeExtractionRegion instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetVolumeSimplificationRegion
Obtains a VolumeSimplificationRegion instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
GetWrap
Obtains a Wrap instance by name from the supplied container.
Type DataReference
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 587
Study
Properties
Automatic
Type bool
Read Only No
Axis
Type AxisType
Read Only No
DefineBy
Type AxisDefineBy
Read Only No
CappingSurface
A CappingSurface creates an analytic surface based on a set of bounding edges or faces.
Properties
CreateSelectionSet
Type bool
Read Only No
SelectionMethod
Type CappingSurfaceConstructionMethod
Read Only No
CappingSurfaceEdgesConstraint
Provides additional information to a Capping Surface when it is constructed based on a set of edges.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
588 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
Algorithm
Type ConstructionAlgorithm
Read Only No
Edges
Type LocationSet
Read Only No
FlipLoopOrientation
Sets the orientation of the edge loop, if the algorithm is a Convex Hull.
Type ReverseEdgeLoopOrientation
Read Only No
CappingSurfaceFacesConstraint
Provides additional information to a Capping Surface when it is constructed based on the internal loops
of a set of faces.
Properties
Algorithm
Type ConstructionAlgorithm
Read Only No
Faces
Type LocationSet
Read Only No
FlipLoopOrientation
Sets the orientation of the edge loop, if the algorithm is a Convex Hull.
Type ReverseEdgeLoopOrientation
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 589
Study
CappingSurfaceLoopsConstraint
Provides additional information to a Capping Surface when it is constructed based on a set of edge
loops.
Properties
Algorithm
Type ConstructionAlgorithm
Read Only No
EdgeLoopCount
Type int
Read Only No
EdgeLoops
Type List<LocationSet>
Read Only No
FlipLoopOrientation
Sets the orientation of the edge loop, if the algorithm is a Convex Hull.
Type ReverseEdgeLoopOrientation
Read Only No
CappingSurfaceVerticesConstraint
Provides additional information to a Capping Surface when it is constructed based on the internal loops
of a set of faces.
Properties
Algorithm
Type ConstructionAlgorithm
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
590 of ANSYS, Inc. and its subsidiaries and affiliates.
FlipLoopOrientation
Sets the orientation of the edge loop, if the algorithm is a Convex Hull.
Type ReverseEdgeLoopOrientation
Read Only No
Vertices
Type LocationSet
Read Only No
CartesianTriplet
Triplet represented in cartesian coordinates
Properties
X
X coordinate
Type Expression<Quantity>
Read Only No
Y coordinate
Type Expression<Quantity>
Read Only No
Z coordinate
Type Expression<Quantity>
Read Only No
Configuration
The entity that represents a Configuration Task. Holds the list of configure controls objects.
Configure controls:
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 591
Study
Properties
No Properties.
Methods
InsertVirtualPrimitiveBox
Required Arguments
Type Object
ContourResult
Displays the contour of a selected variable on a specified location.
Properties
CalculateAverage
Type bool
Read Only No
Location
Type LocationSet
Read Only No
RelativeTo
Type ReferenceFrame
Read Only No
Variable
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
592 of ANSYS, Inc. and its subsidiaries and affiliates.
CylindricalTriplet
Triplet represented in cylindrical coordinates
Properties
Phi
Angle from the +X axis in the XY plane (a.k.a. theta or phi) phi = arctan(y / x) 0 <= theta < 2PI
Type Expression<Quantity>
Read Only No
Rho
Type Expression<Quantity>
Read Only No
Type Expression<Quantity>
Read Only No
DataManager
The DataManager is used to access readers and writers. This allows engineering data to be read and
written to and from files.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
ProviderName
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 593
Study
Methods
DeleteDataManager
Example
This example creates and then deletes a DataManager
dataManagerThermal = study1.CreateDataManager(
Sources=[r"C:\ANSYSDev\Program Files\Ansys Inc\v151\Addins\EngineeringData\Samples\Thermal_Materials.xm
Provider="ANSYS")
Study.DeleteDataManager(dataManagerThermal)
FindByDescription
Finds items in the Data Manager, where the item's Description contains the supplied text.
Type List<string>
Required Arguments
Type string
Example
This example create a data manager and searches for a match in the description.
dataManagerThermal = study1.CreateDataManager(
Sources=[r"C:\ANSYSDev\Program Files\Ansys Inc\v151\Addins\EngineeringData\Samples\Thermal_Materials.xm
Provider="ANSYS")
matList = Study.FindByDescription(dataManagerThermal, "Thermal Properties")
FindByModel
Finds materials in the Data Manager, where the material contains a matching model for the supplied
arguments.
Type List<string>
Required Arguments
Type string
Optional Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
594 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Definition The optional string to identify the way in which model is defined.
Type string
Example
This example creates a data manager and searches for materials that have an Isotropic Elasticity model.
dataManagerGeneral = study1.CreateDataManager(
Sources=[r"C:\ANSYSDev\Program Files\Ansys Inc\v151\Addins\EngineeringData\Samples\General_Materials.xm
Provider="ANSYS")
matList = Study.FindByModel(dataManagerGeneral, "Elasticity", Behavior="Isotropic")
FindByName
Finds items in the Data Manager, where the item's name contains the supplied string.
Type List<string>
Required Arguments
Name The string to identify the name of the item to be searched for.
Type string
Example
This example creates a data manager and searches for any material having Alloy in the name.
dataManagerGeneral = study1.CreateDataManager(
Sources=[r"C:\ANSYSDev\Program Files\Ansys Inc\v151\Addins\EngineeringData\Samples\General_Materials.xm
Provider="ANSYS")
matList = Study.FindByName(dataManagerGeneral, "Alloy")
FindByRange
Finds items in the Data Manager, where the item has the property and a value within the specified
range.
Type List<string>
Required Arguments
MaximumQuantity The maximum quantity in the range to search for. i.e. 1 [kPa]
Type string
MinimumQuantity The minimum quantity in the range to search for. i.e. 10 [Pa]
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 595
Study
Type string
Example
This example creates a data manager and searches for any material having density in the range of 7000
[kg m^-3] to 9000 [kg m^-3].
dataManagerGeneral = study1.CreateDataManager(
Sources=[r"C:\ANSYSDev\Program Files\Ansys Inc\v151\Addins\EngineeringData\Samples\General_Materials.xm
Provider="ANSYS")
matList = Study.FindByRange(dataManagerGeneral, "Density", "7000 [kg m^-3]" ,"9000 [kg m^-3]")
GetValidContentNames
Return A List of strings containing the names of the items loaded into the
DataManager.
Type List<string>
Optional Arguments
Type string
Example
This example creates a data manager and returns the items it is managing.
dataManagerGeneral = study1.CreateDataManager(
Sources=[r"C:\ANSYSDev\Program Files\Ansys Inc\v151\Addins\EngineeringData\Samples\General_Materials.xm
Provider="ANSYS")
contents = Study.GetValidContentNames(dataManagerGeneral)
Density
The Density model provided via a specified expression.
Properties
Magnitude
The Magnitude is an expresion which evaluates to a Quantity with the correct units.
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
596 of ANSYS, Inc. and its subsidiaries and affiliates.
GeometryDimension
Dimension parameter imported from CAD.
Properties
Value
Type Quantity
Read Only No
GeometryImportSource
Defines an imported geometry source through direct file browsing or an active CAD attach source.
Provides the ability to update the geometry from the source system.
Properties
ActiveCADAttachSource
Type string
Read Only No
FilePath
Type string
Read Only No
MaterialAssignments
Type List<MaterialAssignment>
Read Only No
PlugInName
Displays the current plugin name when the source has been defined by an active CAD attach.
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 597
Study
SourceSelectionMode
Selection Types:
Type SourceSelectionType
Read Only No
SourceType
Type string
Methods
BrowseImportSourceOperation
Required Arguments
Type string
GenerateImportSourceOperation
UpdateGeometryImportSource
Updates a specific Geometry Import Source from the source CAD system. Any changed parameter values
associated with this import source are pushed to the source CAD system.
UpdateGeometryImportSourceFromCAD
Updates a specific Geometry Import Source from the source CAD system. Parameter values associated
with the import source are synchronized with the current values defined in the source CAD system.
GeometryPreferences
Defines geometry import preferences used during the initial geometry import and any subsequent up-
dates.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
598 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
DecomposeDisjointFaces
Enables the decomposition of disjoint faces into separate face entities. The default is No.
Type bool
Read Only No
DimensionKey
Allows the specification of a key that is used to filter processed CAD System Parameters during import.
The key must be present at the beginning or the end of a CAD Parameter's name to be valid for import.
The Dimension Key supports multiple prefixes/suffixes with each value separated by a semicolon. If the
value is empty, all Dimensions are imported. The default key is "DS".
Type string
Read Only No
ExplodeUnsharedComponents
Allows components containing multiple bodies to be exploded into independent parts if no shared
topology options have been defined.
Type bool
Read Only No
ImportCoordinateSystems
Specifies whether coordinate systems created in the CAD System are imported as Reference Frame
objects. The default is No.
Type bool
Read Only No
ImportDimensions
Enables Dimension processing. Dimension processing can have a negative impact on overall import
performance. The default is Yes.
Type bool
Read Only No
ImportNamedSelections
Enables processing of CAD System Named Selections that result in the creation of Selection Sets. The
default is No.
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 599
Study
ImportSheets
Type bool
Read Only No
ImportSolids
Type bool
Read Only No
MixedResolution
Allows parts of mixed dimension to be imported as components of assemblies which have parts of
different dimensions. The default is None.
The following options control what is imported when there are bodies of mixed dimension in a multi-
body part:
Type MixedResolutionType
Read Only No
NamedSelectionKey
Allows the specification of a key that is used to filter processed CAD System Named Selections during
import. The key must be present at the beginning or end of a CAD Named Selection's name to be valid
for import. The Selection Set Key supports multiple prefixes/suffixes with each value separated by a
semicolon. If the value is empty, all Selection Sets are imported. The default key is "NS".
Type string
Read Only No
ProcessAssociativity
Indicates if action should be taken to allow associativity. Associativity processing can have a negative
impact on import performance. The default is Yes.
Type bool
Read Only No
ProcessEnclosures
Enables the processing of enclosure and symmetry CAD System Named Selections. The default is Yes.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
600 of ANSYS, Inc. and its subsidiaries and affiliates.
Type bool
Read Only No
ReaderSaveUpdate
Enables saving of the internal part files generated from the geometry import during the import/update
action. The default is No.
Type bool
Read Only No
UseInstances
Honors a geometry import's part instances during processing to produce faster import times and allow
smaller database sizes. The default is Yes.
Type bool
Read Only No
GlobalMeshAdvancedAttributes
GlobalMeshAdvancedAttributes specifies the global advanced properties for Part Meshing.
Available options:
Properties
DefeaturingTolerance
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 601
Study
ElementMidsideNodes
Available options:
Type ElementMidsideNodes
Read Only No
LoopRemovalTolerance
Specifies the tolerance value for sheet loop removal. Any loop with radius less than or equal to Loop
Removal Tolerance value is removed by mesher. Setting the tolerance value to 0 means that no loops
will be removed.
Type Quantity
Read Only No
MeshBasedDefeaturing
Available options:
Type MeshBasedDefeaturing
Read Only No
ProcessorLimit
Specifies the number of processors to be used by part-based meshing task to enhance performance
and ranges from 0 to 64. Default value of 0 (when Use all processors = Yes) automatically ensures that
maximum number of available CPU cores are utilized.
Type uint
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
602 of ANSYS, Inc. and its subsidiaries and affiliates.
ShapeChecking
Available options:
Type ShapeChecking
Read Only No
StraightSidedElements
Available options:
No
Yes
Type StraightSidedElements
Read Only No
TriangleSurfaceMesher
Available options:
Type TriangleSurfaceMesher
Read Only No
UseAllProcessors
Available options:
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 603
Study
Type UseAllProcessors
Read Only No
GlobalMeshInflationAttributes
GlobalMeshInflationAttributes specifies the global inflation properties.
Available options:
Properties
CollisionAvoidance
Available options:
Type CollisionAvoidance
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
604 of ANSYS, Inc. and its subsidiaries and affiliates.
FilletRatio
Specifies whether fillets proportional to the prism height will be created in corner zones of tetrahedral
mesh.
Type double
Read Only No
FixFirstLayer
Determines whether the heights or ratios of the first inflation layer will be modified to avoid collision.
Available options:
No
Yes
Type FixFirstLayer
Read Only No
GapFactor
Type double
Read Only No
GrowthRateType
Determines height of inflation layers for given initial height and height ratio.
Available options:
Type GrowthRateType
Read Only No
MaxAngle
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 605
Study
MaxHeightOverBase
Type double
Read Only No
SmoothIterations
Type int
Read Only No
UsePostSmoothing
Available options:
No
Yes
Type UsePostSmoothing
Read Only No
GlobalMeshSizingAttributes
GlobalMeshSizingAttributes specifies the global mesh sizing attributes.
Available options:
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
606 of ANSYS, Inc. and its subsidiaries and affiliates.
CurvatureNormalAngle Specifies maximum allowable angle that one
element is allowed to span when Advanced
Size Function is Proximity and Curvature or
Curvature.
NumberOfCellsAcrossGap Specifies minimum number of elements to be
generated in gaps when Advanced Size
Function is Proximity and Curvature or Prox-
imity.
Smoothing Specifies the number of smoothing iterations.
AdaptiveResolution The scaling value for the arguments of various
functions for the adaptive size function.
Properties
AdaptiveResolution
Type double
Read Only No
CurvatureNormalAngle
Specifies maximum allowable angle that one element is allowed to span when Advanced Size Function
is Proximity and Curvature or Curvature.
Type Quantity
Read Only No
ElementSeedSize
Type Quantity
Read Only No
GrowthRate
Specifies the increase in edge length with each succeeding layer of elements.
Type double
Read Only No
MaxFaceSize
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 607
Study
MaxSize
Type Quantity
Read Only No
MinSize
Type Quantity
Read Only No
NumberOfCellsAcrossGap
Specifies minimum number of elements to be generated in gaps when Advanced Size Function is
Proximity and Curvature or Proximity.
Type int
Read Only No
ProximityMinSize
Specifies global minimum size when Advanced Size Function is Proximity and Curvature or Proximity.
Type Quantity
Read Only No
ProximitySizeFunctionSources
Specifies the source type to be used for size function calculation when Advanced Size Function is
Proximity or Curvature and proximity.
Available options:
Faces
Edges
FacesAndEdges
Type ProximitySizeFunctionSources
Read Only No
Smoothing
Available options:
Low
Medium
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
608 of ANSYS, Inc. and its subsidiaries and affiliates.
High
Type Smoothing
Read Only No
UseAdvancedSizeFunction
Available options:
Adaptive
Curvature
Proximity
Fixed
ProximityCurvature
Type UseAdvancedSizeFunction
Read Only No
UseFixedSizeFunctionForSheets
Specifies use of Fixed Size function for sheets if there are present in the geometry.
Type bool
Read Only No
GlobalParametersExtension
Frequency parameters for Results
Properties
Frequency
Type Quantity
FrequencyImaginary
Type Quantity
FrequencyReal
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 609
Study
Type Quantity
GlobalWrapSewAdvancedAttributes
GlobalWrapSewAdvancedAttributes specifies the global advanced properties for wrap and sew.
Available options:
Properties
Aggressive
Specifies whether mesh may deviate from geometry as a result of wrapper surface improvement.
Available options:
MeetTarget
MaintainGeometry
Type Aggressive
Read Only No
CreateIntersectingEdgesForOverlappingBodies
Available options:
No
Yes
Type CreateIntersectingEdgesForOverlappingBodies
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
610 of ANSYS, Inc. and its subsidiaries and affiliates.
EdgeExtractionAngle
Type Quantity
Read Only No
MetricValue
Type double
Read Only No
RefinementTolerance
Type Quantity
Read Only No
TargetMetric
Available options:
Skewness
SizeChange
AspectRatio
Type Metric
Read Only No
TessellationRefinement
Available options:
Type TessellationRefinement
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 611
Study
Zoning
Available options:
Part
Body
Face
Type Zoning
Read Only No
Import
Main Data Import Task user object. Holds the list of import source objects
Properties
No Properties.
Methods
AddActiveCADAttachSourceOperation
Creates a single Geometry Import Source within an Import Task. The import source object will be initial-
ized with its source selection mode set to Active CAD Attach.
AddGeometryImportSourceOperation
Type DataReference
Optional Arguments
Type string
ChooseImportSources
Multiple selection of import source files. The file list is processed and import source objects are created
within the Import Task.
Required Arguments
Type List<string>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
612 of ANSYS, Inc. and its subsidiaries and affiliates.
IsoSurface
Creates surfaces of constant value of the specified variable.
Properties
IsovalueMethod
Type IsovalueMethod
Read Only No
Isovalues
Type List<Quantity>
Read Only No
Location
Type LocationSet
Read Only No
NumberOfIsovalues
Type int
Read Only No
Variable
Type Expression<Quantity>
Read Only No
IsotropicElasticity
The Isotropic Elasticity material model.
Properties
Derivation
The Isotropic Elasticity values can be entered for one of the following combinations:
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 613
Study
which will then compute the other values using Hooke's law.
Type DerivationType
Read Only No
Magnitude
The Magnitude is used for an expresion to include variations of the data for any independent variable
(e.g. Temperature).
Type Expression<IsotropicElasticityDependents>
Read Only No
IsotropicResistivity
The input for resistivity which is isotropic.
Properties
Magnitude
Type Expression<Quantity>
Read Only No
IsotropicSecantCoefficientofThermalExpansion
The Isotropic Secant Coefficient of Thermal Expansion material model.
Properties
Magnitude
The Magnitude is an expresion which evaluates to a Quantity with the correct units.
Type Expression<Quantity>
Read Only No
IsotropicSeebeckCoefficient
Seebeck Coefficient : Isotropic model.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
614 of ANSYS, Inc. and its subsidiaries and affiliates.
Can be applied to Thermal analyses
Properties
Magnitude
Type Expression<Quantity>
Read Only No
IsotropicThermalConductivity
The Isotropic Thermal Conductivity material model.
Properties
Magnitude
The Magnitude is an expresion which evaluates to a Quantity with the correct units.
Type Expression<Quantity>
Read Only No
Legend
Specifies how the legend for the current object should be displayed.
Properties
Coloring
Type LegendColoring
Read Only No
NumberOfColors
Type int
Read Only No
Material
The material object holds all information that defines the behavior for a specific material.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 615
Study
Properties
Description
Type string
Read Only No
SourceInformation
Type SourceInformation
Methods
AddPropertyTable
This command is used to allow the expression of a property to reference data in the named table. This
is a reference and not a copy, and so if the table is used in the expression, and a change is made on
the referenced table and the change is in the data being referenced the value of the property will be
modified. The command creates table functions in the context of this expression which can be used
with constants, field variables, or another named expression. If the property does not support an expres-
sion an error will occur.
Return An int which corresponds to the Index passed in to the command and
indicates the comand successfully completed.
Type int
Required Arguments
Dependents A List of the column index(es) to use from the Table which correspond to the dependent
variable(s) of the Property. The indexes can be an Integer index or the String name of the
column.
Type List<Object>
Independents A List of the column index(es) to use from the Table for use in the expression and correspond
to the independent variables of the Property. The indexes can be an Integer index or the
String name of the column.
Type List<Object>
Index An integer which uniquely identifies the Table for use in the expression of the Property. In
the expression this table can be accessed via tableIndex(args). The table with an index of
one can be accessed in the expression as table(args) or table1(args).
Type uint
Property The String which provides the path of the property on the Parent.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
616 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Type DataReference
Optional Arguments
Bounds An enum which describes what will occur when the index is outside of the bounds of the
table. The valid enum values are; Constant, Fit, Zero, and Error. The default is Error.
Type TableInterpolationBeyondBounds
Interpolation An enum of the type of interpolation to use when accessing data from the table at a
given index. The valid enum values are; None, Linear, Cubic Spline. The default is Linear.
Type TableInterpolation
Example
CreateContent
Includes a physical quantity or the constitutive relation for the physical response of a material.
The material property is created based on the specified optional parameters "Definition" and "Behavior".
You can use the GetValidMaterialContentQuery query to obtain a list of available property/models with
the corresponding behavior and/or definition.
Optional Arguments
The behavior typically refers to how the material responds, e.g., the density property
could behave as an Ideal Gas or a Real Gas.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 617
Study
Type string
Definition The optional string to identify the way in which new material property/model will be defined.
In some cases the material property/model may be defined in different ways, e.g.,
Thermal Expansion can be defined using Secant or Instantaneous.
Type string
Type string
Example
This example assumes that a material has been created.
CreatePropertyTable
Type DataReference
Required Arguments
Fields A List of field variable names to be used as the independent variables for this property. The de-
pendent variables are defined by the Property.
Type List<string>
Property The String which provides the path of the property on the Parent.
Type string
Example
This example creates a new Table for the Isotropic Resistivity property in a material.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
618 of ANSYS, Inc. and its subsidiaries and affiliates.
table1.GetData()
DeleteContent
Required Arguments
Type string
Optional Arguments
Behavior The optional string to identify the behavior of the property/model that is to be deleted.
The behavior typically refers to how the material responds, e.g., the density property
could behave as an Ideal Gas or a Real Gas.
Type string
Definition The optional string to identify the way in which material property/model to be deleted was
defined.
In some cases the material property/model may be defined in different ways, e.g.,
Thermal Expansion can be defined using Secant or Instantaneous.
Type string
Example
This example deletes the Isotropic Elasticity model from an already created material.
ExportEngineeringData
Required Arguments
Source The source that this data will be exported to, via the Data Manager.
Type string
Optional Arguments
DataManager The data manager which is managing the requested engineering data. If not provided then
the DataManager associated with the Entity will be used. If the Entity has no associated
DataManager the default ANSYS Data Manager will be used.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 619
Study
Format The format which the Data Manager should use to save the entity. If it is not provided the
DataManager will determine it based on the Source. If the Source does not yet exist the Data
Manager will determine the format if it is a single type or throw an exception if the Format
is not provided.
Type string
Example
This example assumes that a material and data manager exist in the Study
ImportEngineeringData
ImportEngineeringData allows an engineering data object which can be managed to import data from
a source via a DataManager
Required Arguments
Name The name of the engineering data to import from the DataManager.
Type string
Optional Arguments
DataManager The data manager which is managing the requested engineering data. If not provided then
the DataManager associated with the Entity will be used. If the Entity has no associated
DataManager the default ANSYS Data Manager will be used.
Type DataReference
Source The source of the data which will be managed by the Data Manager. If it is not provided the
Source property of the DataManager will be used, if it is not set then an exception will occur.
Type string
Example
The example assumes that a material has already been created.
material1.ImportEngineeringData(Name="Aluminum Alloy")
RemovePropertyTable
Remove a table reference from a property to prevent its use in an expression. If the property does not
support an expression an error will occur.
Required Arguments
Index The integer which uniquely identifies the Table for use in the expression of the Property.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
620 of ANSYS, Inc. and its subsidiaries and affiliates.
Type uint
Property The String which provides the path of the property on the Parent.
Type string
Example
MaterialAssignment
Assigns a Material to a specified Location.
Properties
Location
Type LocationSet
Read Only No
Material
Type Material
Read Only No
MeshControlBodySizing
Body Sizing control which contains all sizing options a user can place on a Body reference
Properties
Behavior
Specifies whether size control settings can be changed by the mesher (Soft) or not (Hard).
Available options:
Soft
Hard
Type SizingBehavior
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 621
Study
CurvatureNormalAngle
Type Quantity
Read Only No
ElementSize
Specifies the maximum size for the edge, face or body sizing control.
Type Quantity
Read Only No
GrowthRate
Specifies increase in element edge length with each succeeding layer of elements.
Type double
Read Only No
LocalMinSize
Type Quantity
Read Only No
Location
A common property for all sub meshing objects with a defined Geometry Filter
Type LocationSet
Read Only No
UseAutomaticallyDefinedLocation
A common toggle for all sub meshing objects with a Location property so that it can be automatically
set. Currently only visible in Inflation object.
Type bool
Read Only No
MeshControlEdgeSizing
Specifies attributes for edge sizing.
Available options:
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
622 of ANSYS, Inc. and its subsidiaries and affiliates.
EdgeDivisions Specifies the number of divisions on each
edge.
BiasMethod Specifies bias option which is always smooth
transition.
BiasType Specifies option for bias type.
BiasGrowthRate Specifies value for bias growth rate.
Properties
Behavior
Specifies whether size control settings can be changed by the mesher (Soft) or not (Hard).
Available options:
Soft
Hard
Type SizingBehavior
Read Only No
BiasGrowthRate
Type double
Read Only No
BiasMethod
Type BiasMethod
Read Only No
BiasType
Available options:
Right
Left
CenterIn
CenterOut
Constant
Type BiasType
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 623
Study
CurvatureNormalAngle
Type Quantity
Read Only No
EdgeDivisions
Type int
Read Only No
EdgeSizingMethod
Available options:
ElementSize
EdgeDivisions
Type EdgeSizingMethod
Read Only No
ElementSize
Specifies the maximum size for the edge, face or body sizing control.
Type Quantity
Read Only No
GrowthRate
Specifies increase in element edge length with each succeeding layer of elements.
Type double
Read Only No
LocalMinSize
Type Quantity
Read Only No
Location
A common property for all sub meshing objects with a defined Geometry Filter
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
624 of ANSYS, Inc. and its subsidiaries and affiliates.
Type LocationSet
Read Only No
UseAutomaticallyDefinedLocation
A common toggle for all sub meshing objects with a Location property so that it can be automatically
set. Currently only visible in Inflation object.
Type bool
Read Only No
MeshControlElementShape
Mesh Method properties
Properties
LocalElementMidsideNodes
Type LocalElementMidsideNodes
Read Only No
Location
A common property for all sub meshing objects with a defined Geometry Filter
Type LocationSet
Read Only No
Shape
Type ElementShape
Read Only No
SourceLocation
Type LocationSet
Read Only No
TargetLocation
Type LocationSet
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 625
Study
Read Only No
UseAutomaticallyDefinedLocation
A common toggle for all sub meshing objects with a Location property so that it can be automatically
set. Currently only visible in Inflation object.
Type bool
Read Only No
MeshControlFaceSizing
Face Sizing control to be scoped to a topological selection of faces.
Properties
Behavior
Specifies whether size control settings can be changed by the mesher (Soft) or not (Hard).
Available options:
Soft
Hard
Type SizingBehavior
Read Only No
CurvatureNormalAngle
Type Quantity
Read Only No
ElementSize
Specifies the maximum size for the edge, face or body sizing control.
Type Quantity
Read Only No
GrowthRate
Specifies increase in element edge length with each succeeding layer of elements.
Type double
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
626 of ANSYS, Inc. and its subsidiaries and affiliates.
LocalMinSize
Type Quantity
Read Only No
Location
A common property for all sub meshing objects with a defined Geometry Filter
Type LocationSet
Read Only No
UseAutomaticallyDefinedLocation
A common toggle for all sub meshing objects with a Location property so that it can be automatically
set. Currently only visible in Inflation object.
Type bool
Read Only No
MeshControlLocalInflation
Specifies local inflation attributes.
Available options:
Properties
AspectRatio
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 627
Study
Type double
Read Only No
FirstAspectRatio
Specifies the aspect ratio of the inflations that are extruded from the inflation base.
Type double
Read Only No
FirstLayerHeight
Type Quantity
Read Only No
GrowthRate
Type double
Read Only No
InflationAlgorithm
Available options:
Post
Pre
Type InflationAlgorithm
Read Only No
InflationOption
Available options:
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
628 of ANSYS, Inc. and its subsidiaries and affiliates.
FirstAspectRatio Creates inflation layers using values of First
Aspect Ratio, Maximum Layers and Growth
Rate.
LastAspectRatio Creates constant inflation layers using values
of First Layer Height, Maximum Layers and
Aspect Ratio.
Type InflationOption
Read Only No
Location
A common property for all sub meshing objects with a defined Geometry Filter
Type LocationSet
Read Only No
MaximumLayers
Type int
Read Only No
MaximumThickness
Type Quantity
Read Only No
NumberOfLayers
Type int
Read Only No
TransitionRatio
Type double
Read Only No
UseAutomaticallyDefinedLocation
A common toggle for all sub meshing objects with a Location property so that it can be automatically
set. Currently only visible in Inflation object.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 629
Study
Type bool
Read Only No
MeshDiagnostics
MeshDiagnostics specifies the settings used to evaluate mesh quality.
Available options:
Properties
AverageMetric
Type double
Read Only No
Location
A common property for all sub meshing objects with a defined Geometry Filter
Type LocationSet
Read Only No
MaxMetric
Type double
Read Only No
MeshMetric
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
630 of ANSYS, Inc. and its subsidiaries and affiliates.
Available options:
Type MeshMetric
Read Only No
MinMetric
Type double
Read Only No
NumElements
Type int
Read Only No
NumNodes
Type int
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 631
Study
StandardDeviation
Type double
Read Only No
UseAutomaticallyDefinedLocation
A common toggle for all sub meshing objects with a Location property so that it can be automatically
set. Currently only visible in Inflation object.
Type bool
Read Only No
Methods
EvaluateMeshDiagnostics
Evaluates the output mesh metrics for a given Mesh Diagnostics control.
MeshDisplayProperties
Base class for display state objects with reference Ids or reference names.
Properties
No Properties.
MeshDisplayPropertiesWithIds
Object returned by mesh display state queries with reference Ids and their corresponding display state
properties.
Available properties:
Properties
No Properties.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
632 of ANSYS, Inc. and its subsidiaries and affiliates.
MeshDisplayPropertiesWithStrings
Object returned by mesh display state queries with reference names and their corresponding display
state properties.
Available properties:
Properties
No Properties.
Meshing
Meshing Task is used to determine (in a smart way) which meshing technology to use for meshing the
model. A mesh can be generated by either (1) selectively meshing parts or entire assemblies of parts,
or (2) filling in the volume of a surface mesh created by a Wrap task.
Available options:
Properties
EngineeringIntent
Defines the kind of physics that is being studied in this simulation process (used in part-based Meshing).
Available options:
Type EngineeringIntent
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 633
Study
MeshingRetries
Will tell the mesher to try again with finer sizing inputs if the first attempt at meshing fails.
Type bool
Read Only No
MeshResolution
Defines the resolution for automatically calculating global meshing inputs. Selecting a higher resolution
generates a better quality mesh.
Type int
Read Only No
UsePredefinedSettings
Automatically calculates the global sizing values based on the resolution value.
Type bool
Read Only No
MolarMass
The Molar Mass model.
Properties
Magnitude
Type Expression<Quantity>
Read Only No
MoveRotateControl
The Configuration control to move or rotate the geometry to a new Reference Frame.
Properties
PartSelections
Type LocationSet
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
634 of ANSYS, Inc. and its subsidiaries and affiliates.
RelativeTo
Type ReferenceFrame
Read Only No
Methods
GenerateConfigureControlCommand
OriginAndOrientationDefinitionMethod
Defines a reference frame from a local origin and 2 direction vectors
Properties
No Properties.
PhysicsCoupling
Provides the definition of a Physics Coupling Interface.
Properties
PhysicsRegion1
Type PhysicsRegion
Read Only No
RegionList1
The list of region names on the sources Physics Region that supply data.
Type String[]
Read Only No
RegionList2
Type String[]
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 635
Study
Side1Location
This can be set to AllCouplingSourceFaces or it will get/set the display test of a boundary/selection set
in the Source solution.
Type string
Read Only No
Side2Locations
Type LocationSet
Read Only No
PhysicsDefinition
Represents a physics solution.
Properties
CalculationType
Type CalculationType
Read Only No
Methods
GetAllBoundaryConditions
Type DataReferenceSet
GetAllContacts
Type DataReferenceSet
GetAllObjects
GetAllObjects may be used to get all of the objects for the given search criteria.
Return A DataReferenceSet of all the Parent children objects of the given Type.
Type DataReferenceSet
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
636 of ANSYS, Inc. and its subsidiaries and affiliates.
Optional Arguments
SearchLocation The criteria to use to do the match for the SearchString. This can be Exact, BeginsWith,
Contains, or EndsWith and the default is Exact.
Type SearchPosition
SearchString A search string to filter the return Components for the requested Type.
Type string
Example
This example displays all of the objects in a default solution.
system1 = GetSystem(Name="Study")
solutionComponent1 = Study.CreateTask(
Name="Solution",
System=system1)
study1 = system1.GetContainer(ComponentName="Study")
solution1 = study1.GetSolution(Name="Solution")
for item in solution1.GetAllObjects():
print item
GetAllPhysicsRegions
Type DataReferenceSet
GetBodiesOfUnknownPhysicsRegion
Gets a list of bodies that are not associated with a physics region.
Return A list of bodies that are not associated with any physics regions.
Type List<string>
Required Arguments
Type DataReference
GetBodiesOfUnknownPhysicsRegionAndTotalBodyCount
Gets a list of bodies that are not associated with a physics region and also the total number of bodies.
Return Total count of bodies and a list of bodies that are not associated with any
physics regions.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 637
Study
Required Arguments
Type DataReference
GetDuplicateMaterialAssignments
Type DataReferenceSet
Required Arguments
Type DataReference
Type ReferenceTopologyType
GetMaterialAssignments
Type DataReferenceSet
GetTopologyWithoutMaterial
Locates the topologies ( represented by their reference strings ) that currently don't have a material
assignment given an active Model.
Return A list of topology reference strings containing the names of the found
bodies.
Type List<string>
Required Arguments
Type DataReference
Type ReferenceTopologyType
PhysicsOptions
The common set of Physics Options.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
638 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
No Properties.
PhysicsRegion
Specifies the type and location of the fundamental physics in the simulation.
Properties
Location
Type LocationSet
Read Only No
PhysicsType
Type PhysicsType
Read Only No
Methods
GetAllBoundaryConditions
Type DataReferenceSet
GetDuplicateMaterialAssignments
Type DataReferenceSet
Required Arguments
Type DataReference
Type ReferenceTopologyType
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 639
Study
GetMaterialAssignments
Type DataReferenceSet
GetTopologyWithoutMaterial
Locates the topologies ( represented by their reference strings ) that currently don't have a material
assignment given an active Model.
Return A list of topology reference strings containing the names of the found
bodies.
Type List<string>
Required Arguments
Type DataReference
Type ReferenceTopologyType
Plane
The analytic definition of a flat plane where the Z axis is the normal direction.
Properties
ConstructionMethod
Type PlaneConstructionMethod
Read Only No
Normal
Type Vector3D
Origin
Type Point3DUnited
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
640 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only Yes
ScopedBodies
Type LocationSet
Read Only No
XAxis
Type Vector3D
YAxis
Type Vector3D
PlaneFromPlaneDefinition
Definition type for defining a plane from another plane.
Properties
BasePlane
Type Plane
Read Only No
PlaneFromReferenceFrameDefinition
Definition type for defining a plane from a reference frame.
Properties
Plane
Type PlaneOption
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 641
Study
ReferenceFrame
Type ReferenceFrame
Read Only No
PlaneOriginAndOrientationDefinition
Definition type for defining a plane from an origin and 2 axes.
Properties
No Properties.
PlaneTransformation
Extension for plane offset and rotation
Properties
RotationAngle
Type Expression<Quantity>
Read Only No
Suppress
Type bool
Read Only No
Point
Point represented by local coordinates relative to a reference frame.
Properties
CalculationMethod
Type PointCalculationMethod
Read Only No
DefineBy
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
642 of ANSYS, Inc. and its subsidiaries and affiliates.
Type CoordinateInputMethod
Read Only No
Location
Type LocationSet
Read Only No
RelativeTo
Type ReferenceFrame
Read Only No
PointDefinition
Collection of properties to define a UniversalPoint
Properties
CalculationMethod
Type PointCalculationMethod
Read Only No
DefineBy
Type CoordinateInputMethod
Read Only No
Location
Type LocationSet
Read Only No
RelativeTo
Type ReferenceFrame
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 643
Study
Read Only No
ReferenceFrame
Frame of reference for modeling and simulation data.
Properties
ConfigurationTransform
Type Transform4x4
DefinitionType
Type ReferenceFrameDefinitionType
Read Only No
EnablePivot
Type bool
Read Only No
ParentFrame
Type ReferenceFrame
Read Only No
PreferredCoordinateType
Type TripletType
Read Only No
ResultObject
Used to define and evaluate a quantitative result in an Analysis.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
644 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
CalculateAverage
Type bool
Read Only No
Location
Type LocationSet
Read Only No
RelativeTo
Type ReferenceFrame
Read Only No
Variable
Type Expression<Quantity>
Read Only No
Methods
Evaluate
Evaluates the Result's calculated and displayed values based on the current solution.
Results
The top-level object for a Results task.
Properties
CustomScaling
Type double
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 645
Study
Scaling
Type DeformationScaling
Read Only No
ResultSetParametersExtension
Parameters for Results
Properties
Mode
Type uint
Read Only No
PhaseAngle
Type double
Read Only No
SetNumber
Type uint
Read Only No
ReverseAboutXTransform
Rotates about the X axis by 180 degrees.
Properties
Suppress
Type bool
Read Only No
ReverseAboutYTransform
Rotates about the Y axis by 180 degrees
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
646 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
Suppress
Type bool
Read Only No
ReverseAboutZTransform
Rotates about the Z axis by 180 degrees
Properties
Suppress
Type bool
Read Only No
RotationTransform
Rotates the matrix about a vector relative to the local reference frame.
Properties
RelativeToType
Type RelativeToType
Read Only No
RotationAngle
Type Expression<Quantity>
Read Only No
Suppress
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 647
Study
SelectionSet
An object that can be used to reference any Location.
Properties
Location
The selected location: evaluates to a set of reference ids. See LocationSet for more detail.
Type LocationSet
Read Only No
Methods
GetSelectionSetNodeCount
Type uint
GetSelectionSetSelectableEntityCount
Type uint
Simulation
The top-level object that manages all data in a simulation study.
Properties
No Properties.
Methods
GetAllModels
Type DataReferenceSet
GetObjectsForReference
A query to get all data objects in the simulation which reference the topological entity with the given
reference ID.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
648 of ANSYS, Inc. and its subsidiaries and affiliates.
Return The list of data objects that references the given input Reference string.
Type List<DataReference>
Required Arguments
Reference The toplogical entities reference string such as "BODY1", "FACE16", etc
Type string
SingleValueResult
A result object that can be used to evaluate a single calculated value.
Properties
CalculateAverage
Type bool
Read Only No
Condition
Type string
Read Only No
Expression
An expression to be calculated.
Type Expression<Quantity>
Read Only No
Function
Type string
Read Only No
Location
Type LocationSet
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 649
Study
MeshEntity
Specifies the type of mesh location (node, element, face, edge) to be used to calculate the value.
Type EntityType
Read Only No
Method
Type Method
Read Only No
RelativeTo
Type ReferenceFrame
Read Only No
Value
Type Quantity
Read Only No
Variable
Type Expression<Quantity>
Read Only No
WeightType
Type WeightingType
Read Only No
SolutionQualityMonitor
Solution quality monitor objects are used to present graphical charts tracking aspects of the solution
quality, such as convergence.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
650 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
Component
Type string
Read Only No
Location
Type LocationSet
Read Only No
MonitorTypeName
Type string
Read Only No
SolverSettings
The common set of solver settings.
Properties
No Properties.
SpecificHeatConstantPressure
The specific heat at constant pressure model provided via a specified expression.
Properties
Magnitude
The Magnitude is an expresion which evaluates to a Quantity with the correct units.
Type Expression<Quantity>
Read Only No
SphericalTriplet
Triplet represented in spherical coordinates
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 651
Study
Properties
Phi
Angle in the XY plane counter-clockwise from the +X axis (a.k.a phi) phi = arctan(y / x)
Type Expression<Quantity>
Read Only No
Type Expression<Quantity>
Read Only No
Theta
Angle between the +Z axis and the vector (a.k.a. polar angle, theta) theta = arccos(z / r)
Type Expression<Quantity>
Read Only No
StreamLine
A result that displays flow paths within a vector field.
Properties
AnimationDuration
Type Quantity
Read Only No
Direction
Type DirectionType
Read Only No
Distribution
Type SeedPointDistributionType
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
652 of ANSYS, Inc. and its subsidiaries and affiliates.
EndTime
Type Quantity
Read Only No
EndTimeFactor
The amount my which the maximum integration time is scaled when creating animated streamlines.
Type float
Read Only No
FadeLineSegments
Type bool
Read Only No
FixedStepSize
The size of integration steps in streamline creation when using a fixed step size.
Type float
Read Only No
Location
Type LocationSet
Read Only No
MeshDistribution
Type SeedPointMeshDistributionType
Read Only No
NSteps
Type uint
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 653
Study
RibbonWidth
Type double
Read Only No
SegmentRatio
Type float
Read Only No
SkipFactor
How many nodes or elements are skipped when sampling mesh to generate seed points.
Type uint
Read Only No
StepSize
The method used to determine the size of integration steps in streamline creation.
Type StepSizeType
Read Only No
StreamLineColorOption
Type StreamlineColorOption
Read Only No
StreamLineDisplayStyle
Type StreamLineDisplayStyle
Read Only No
StreamLineShape
Type StreamLineShapeDef
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
654 of ANSYS, Inc. and its subsidiaries and affiliates.
StreamLineStyle
Type StreamLineStyle
Read Only No
SymbolScaleFactor
Type double
Read Only No
SymbolSegmentDensity
Type int
Read Only No
SymbolShape
Type SymbolShape
Read Only No
TubeDiameter
Type double
Read Only No
UniformDistributionSize
Type uint
Read Only No
Variable
Type Expression<Quantity>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 655
Study
VolumetricGridSpacing
Type Quantity
Read Only No
WireThickness
Type double
Read Only No
SummaryParametersExtension
Summary of Result values
Properties
Average
Type Quantity
Max
Type Quantity
Min
Type Quantity
Sum
The calculated Sum total of the Quantity being evaluated in this Result.
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
656 of ANSYS, Inc. and its subsidiaries and affiliates.
SumX
The calculated Sum total of the X-component of the Quantity evaluated in this Result.
Type Quantity
SumY
The calculated Sum total of the Y-component of the Quantity evaluated in this Result.
Type Quantity
SumZ
The calculated Sum total of the Z-component of the Quantity evaluated in this Result.
Type Quantity
SuppressControl
Settings for the suppression of geometry or mesh in a Configuration.
Properties
PartSelections
Type LocationSet
Read Only No
Methods
GenerateConfigureControlCommand
SutherlandThreeCoefficientDefinition
The three coefficient model definition.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 657
Study
Type string
Read Only No
EffectiveTemperature
Type Expression<Quantity>
Read Only No
ReferenceTemperature
Type Expression<Quantity>
Read Only No
ReferenceViscosity
Type Expression<Quantity>
Read Only No
SutherlandTwoCoefficientDefinition
The two coefficient model definition
Properties
CoefficientC1
Type Expression<Quantity>
Read Only No
CoefficientC2
Type Expression<Quantity>
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
658 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
ThreeCoefficientDefinition
The three coefficient definition
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
ReferenceTemperature
Type Expression<Quantity>
Read Only No
ReferenceViscosity
Type Expression<Quantity>
Read Only No
TemperatureExponent
Type Expression<Quantity>
Read Only No
Transcript
Controls the contents of a Transcript monitor.
Properties
Filename
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 659
Study
SourceType
Type TranscriptType
Read Only No
TranslationTransform
Translates a reference frame by a vector.
Properties
RelativeToType
Define the translation vector relative to Local or Parent. This is a simplification of the TranslationVector
RelativeTo property
Type RelativeToType
Read Only No
Suppress
Type bool
Read Only No
TwoCoefficientDefinition
The two coefficient definition.
Properties
DimensionalCoefficientB
Type Expression<Quantity>
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
660 of ANSYS, Inc. and its subsidiaries and affiliates.
TemperatureExponent
Type Expression<Quantity>
Read Only No
UniversalTriplet
Representation of a point or vector in cartesian, cylindrical, and spherical coordinates
Properties
CoordinateType
Type TripletType
Read Only No
UniversalVectorDefinition
Collection of properties to define a UniversalVector
Properties
CalculationMethod
Type VectorCalculationMethod
Read Only No
DefineBy
Type CoordinateInputMethod
Read Only No
Location
Type LocationSet
Read Only No
Magnitude
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 661
Study
Type Expression<Quantity>
Read Only No
RelativeTo
Type ReferenceFrame
Read Only No
ReverseDirection
Type bool
Read Only No
VectorDefineBy
Type UniversalVectorDefineBy
Read Only No
VectorResult
A result object that displays the magnitude and direction of a vector field.
Properties
CalculateAverage
Type bool
Read Only No
Distribution
Type SeedPointDistributionType
Read Only No
Location
Type LocationSet
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
662 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
MeshDistribution
Type SeedPointMeshDistributionType
Read Only No
RelativeTo
Type ReferenceFrame
Read Only No
SkipFactor
How many nodes or elements are skipped when sampling mesh to generate seed points.
Type uint
Read Only No
SymbolLength
Type SymbolLengthOptions
Read Only No
SymbolScaleFactor
Type double
Read Only No
SymbolShape
Type SymbolShape
Read Only No
UniformDistributionSize
Type uint
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 663
Study
Read Only No
Variable
Type Expression<Quantity>
Read Only No
VolumetricGridSpacing
Type Quantity
Read Only No
VirtualPrimitiveBox
This class represents box.
Properties
CreateSelectionSets
Type bool
Read Only No
VirtualPrimitiveBoxConstraint
This class extends VirtualPrimitiveBox class. Contains properties like Selection Method, Cushioning,
Location etc.
Properties
CushionXminus
Type Expression<Quantity>
Read Only No
CushionXplus
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
664 of ANSYS, Inc. and its subsidiaries and affiliates.
CushionYminus
Type Expression<Quantity>
Read Only No
CushionYplus
Type Expression<Quantity>
Read Only No
CushionZminus
Type Expression<Quantity>
Read Only No
CushionZplus
Type Expression<Quantity>
Read Only No
EntitiesInSelection
Type LocationSet
Read Only No
SelectionMethod
Gets or sets the options for choosing between box creation methods.
Type PrimitiveBoxCreationMethod
Read Only No
TypeOfCushion
Gets or sets the option to select between Uniform or Non-Uniform cushion around box.
Type BoxCushionType
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 665
Study
UniformCushionValue
Type Expression<Quantity>
Read Only No
Viscosity
The viscosity model provided via a specified expression.
Properties
Magnitude
The Magnitude is an expresion which evaluates to a Quantity with the correct units.
Type Expression<Quantity>
Read Only No
ViscosityCarreauShearAndTemperatureDependent
The Shear Rate and Temperature dependent model.
Properties
ActivationEnergy
Type Expression<Quantity>
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
InfiniteShearViscosity
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
666 of ANSYS, Inc. and its subsidiaries and affiliates.
PowerLawIndex
Type Expression<Quantity>
Read Only No
ReferenceTemperature
Type Expression<Quantity>
Read Only No
TimeConstant
Type Expression<Quantity>
Read Only No
ZeroShearViscosity
Type Expression<Quantity>
Read Only No
ViscosityCarreauShearRateDependent
The Shear Rate dependent model.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
InfiniteShearViscosity
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 667
Study
PowerLawIndex
Type Expression<Quantity>
Read Only No
TimeConstant
Type Expression<Quantity>
Read Only No
ZeroShearViscosity
Type Expression<Quantity>
Read Only No
ViscosityCrossShearAndTemperatureDependent
The Shear Rate and Temperature Dependent model.
Properties
ActivationEnergy
Type Expression<Quantity>
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
PowerLawIndex
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
668 of ANSYS, Inc. and its subsidiaries and affiliates.
ReferenceTemperature
Type Expression<Quantity>
Read Only No
TimeConstant
Type Expression<Quantity>
Read Only No
ZeroShearViscosity
Type Expression<Quantity>
Read Only No
ViscosityCrossShearRateDependent
The Shear Rate Dependent model.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
PowerLawIndex
Type Expression<Quantity>
Read Only No
TimeConstant
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 669
Study
ZeroShearViscosity
Type Expression<Quantity>
Read Only No
ViscosityHerschelBulkleyShearAndTemperatureDependent
The Shear Rate and Temperature dependent model.
Properties
ActivationEnergy
Type Expression<Quantity>
Read Only No
ConsistencyIndex
Type Expression<Quantity>
Read Only No
CriticalShearRate
Type Expression<Quantity>
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
PowerLawIndex
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
670 of ANSYS, Inc. and its subsidiaries and affiliates.
ReferenceTemperature
Type Expression<Quantity>
Read Only No
YieldStressThreshold
Type Expression<Quantity>
Read Only No
ViscosityHerschelBulkleyShearRateDependent
The Shear Rate dependent model.
Properties
ConsistencyIndex
Type Expression<Quantity>
Read Only No
CriticalShearRate
Type Expression<Quantity>
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
PowerLawIndex
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 671
Study
YieldStressThreshold
Type Expression<Quantity>
Read Only No
ViscosityNonNewtonianPowerLawShearAndTemperatureDependent
The Shear Rate and Temperature dependent model.
Properties
ActivationEnergy
Type Expression<Quantity>
Read Only No
ConsistencyIndex
Type Expression<Quantity>
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
MaximumViscosityLimit
Type Expression<Quantity>
Read Only No
MinimumViscosityLimit
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
672 of ANSYS, Inc. and its subsidiaries and affiliates.
PowerLawIndex
Type Expression<Quantity>
Read Only No
ReferenceTemperature
Type Expression<Quantity>
Read Only No
ViscosityNonNewtonianPowerLawShearRateDependent
The Shear Rate dependent model
Properties
ConsistencyIndex
Type Expression<Quantity>
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
MaximumViscosityLimit
Type Expression<Quantity>
Read Only No
MinimumViscosityLimit
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 673
Study
PowerLawIndex
Type Expression<Quantity>
Read Only No
VolumeExtractionRegion
Volume Extraction Region specifies the settings used when extracting a volume region for a wrap task.
Available options:
Properties
FeatureResolution
Sets the Feature Resolution factor to be used for all Mesh Regions.
Type double
Read Only No
Location
A common property for all sub meshing objects with a defined Geometry Filter
Type LocationSet
Read Only No
Point
Type Point
Read Only No
RegionBehavior
Available options:
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
674 of ANSYS, Inc. and its subsidiaries and affiliates.
Wrap Simplifies unclean geometry before sewing.
PassThroughToSew Bypasses simplification of unclean geometry
before sewing.
Type RegionBehavior
Read Only No
UseAutomaticallyDefinedLocation
A common toggle for all sub meshing objects with a Location property so that it can be automatically
set. Currently only visible in Inflation object.
Type bool
Read Only No
WrapMethod
Available options:
ShrinkWrap
CutWrap
Type WrapMethod
Read Only No
VolumeSimplificationRegion
Volume Simplification specifies the settings used when simplifying a model within a wrap task.
Available options:
Properties
FeatureResolution
Sets the Feature Resolution factor to be used for all Mesh Regions.
Type double
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 675
Study
Location
A common property for all sub meshing objects with a defined Geometry Filter
Type LocationSet
Read Only No
MergeBodies
If checked, geometry is simplified by unifying multiple solid surfaces into one and ignoring any interior
voids and faces. Otherwise, a conformal, well-connected surface mesh is created for each of the selected
bodies.
Type bool
Read Only No
RegionBehavior
Available options:
Type RegionBehavior
Read Only No
UseAutomaticallyDefinedLocation
A common toggle for all sub meshing objects with a Location property so that it can be automatically
set. Currently only visible in Inflation object.
Type bool
Read Only No
WrapMethod
Available options:
ShrinkWrap
CutWrap
Type WrapMethod
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
676 of ANSYS, Inc. and its subsidiaries and affiliates.
Wrap
Volume creation task uses specialized boundary wrapping to extract a well-connected surface mesh for
the selected geometry.
Properties
MeshResolution
Defines the resolution for automatically calculating global meshing inputs. Selecting a higher resolution
generates a better quality mesh.
Type int
Read Only No
Reassociate
Specifies whether the current output model should be used for reassociating so that reference Ids are
persistent or whether new references should be created.
Type bool
Read Only No
UsePredefinedSettings
Automatically calculates the global sizing values based on the resolution value.
Type bool
Read Only No
Properties
MaterialAbsorptionCoefficient
Read Only No
PathLength
Type Expression<Quantity>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 677
Study
Read Only No
Absorptivity
Set absorptivity parameters.
Properties
DiffuseHemispherical
Type Expression<Quantity>
Read Only No
DirectIR
Type Expression<Quantity>
Read Only No
DirectVisible
Type Expression<Quantity>
Read Only No
Acoustics
Set the acoustics initial conditions.
Properties
AcousticPressure
Type Expression<Quantity>
Read Only No
AcousticVelocity
Type AcousticVelocity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
678 of ANSYS, Inc. and its subsidiaries and affiliates.
AcousticVelocity
Set the velocity direction in different coordinate system.
Properties
CartesianVelocityComponents
Type List<Expression<Quantity>>
Read Only No
CylindricalVelocityComponents
Type List<Expression<Quantity>>
Read Only No
AdvancementControl
Configure advance control setting for solver.
Properties
EnergyControl
Type EnergyControl
Read Only No
FlowControl
Type FlowControl
Read Only No
RadiationControl
Read Only No
SpeciesControl
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 679
Study
Read Only No
TurbulenceControl
Read Only No
UseCommonSpeciesSetting
Type bool
Read Only No
UserVariableControl
Read Only No
Advection
Configure advection schemes for governing equations
Properties
AdvectionDefaultSetting
Select default advection scheme so that all equations except those of turbulence default to it
Type Option
Read Only No
AdvectionEquation
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
680 of ANSYS, Inc. and its subsidiaries and affiliates.
BlendFactor
Type Expression<Quantity>
Read Only No
FirstToHigherOrderBlending
Type bool
Read Only No
AFDPhysicsOptions
Configure physics options for fluid flow physics.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
AllowReverseFlow
Configure reverse flow for the boundary.
Properties
BackflowDirection
Sets the direction of the inflow stream should the flow reverse direction. If you choose Direction Vector,
you will define the flow direction components, and if you choose Normal to Boundary or From Neigh-
boring Cell, no inputs are required.
Type BackflowDirection
Read Only No
BackflowPressureSpecification
Type BackflowPressureSpecification
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 681
Study
Option
Type Option
Possible Values: No
Yes
Read Only No
AngularDiscretization
Configure parameters for angular discretization and pixelation for the DO mode.
Properties
PhiDivisions
Set Phi Divisions, which is the number of control angles used to discretize each octant of the angular
space.
Type int
Read Only No
PhiPixels
Set Phi Pixels, which is used to control the pixelation that accounts for any control volume overhang.
Type int
Read Only No
ThetaDivisions
Set Theta Divisions, which is the number of control angles used to discretize each octant of the angular
space.
Type int
Read Only No
ThetaPixels
Set Theta Pixels, which is used to control the pixelation that accounts for any control volume overhang.
Type int
Read Only No
Axis
Set the axis for reference frame or direction specification.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
682 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
CartesianDirection
Type List<Expression<double>>
Read Only No
Option
Type Option
Read Only No
Point1
Type List<Expression<Quantity>>
Read Only No
BackflowDirection
Sets the direction of the inflow stream should the flow reverse direction. If you choose Direction Vector,
you will define the flow direction components, and if you choose Normal to Boundary or From Neigh-
boring Cell, no inputs are required.
Properties
CartesianDirectionComponents
Type List<Expression<Quantity>>
Read Only No
CylindricalDirectionComponents
Type List<Expression<Quantity>>
Read Only No
Option
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 683
Study
Type Option
Read Only No
BackflowPressureSpecification
Select the option to specify the backflow pressure.
Properties
Option
Type Option
Read Only No
TotalPressureFrame
Type TotalPressureFrame
Read Only No
BeamDirection
Configure radiation beam direction.
Properties
Option
Type Option
Read Only No
Value
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
684 of ANSYS, Inc. and its subsidiaries and affiliates.
Type List<Expression<double>>
Read Only No
BeamWidth
Set beam width for an external semi-transparent wall in terms of the Theta and Phi extents.
Properties
Phi
Set Phi.
Type Expression<double>
Read Only No
Theta
Set Theta.
Type Expression<double>
Read Only No
Boundary
Set boundary.
Properties
BoundaryLocations
Type List<string>
Read Only No
BoundaryReferenceFrame
Set the reference frame for boundary from (physics region or all available reference frames).
Type BoundaryReferenceFrame
Read Only No
BoundaryType
Type Option
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 685
Study
Inlet
Opening
Outlet
Symmetry
Wall
Read Only No
Energy
Type Energy
Read Only No
Flow
Type Flow
Read Only No
ParticleBoundaryConditions
to be documented
Type ParticleBoundaryConditions
Read Only No
Radiation
Type Radiation
Read Only No
Regime
Type Regime
Read Only No
Turbulence
Type Turbulence
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
686 of ANSYS, Inc. and its subsidiaries and affiliates.
UserScalarBoundaryConditions
to be documented
Read Only No
UserVectorBoundaryConditions
to be documented
Read Only No
BoundaryReferenceFrame
Set the reference frame for boundary from (physics region or all available reference frames).
Properties
FrameName
Type DataObject
Read Only No
Option
Set the reference frame for boundary from (physics region or all available reference frames).
Type Option
Read Only No
CalculationControl
Configure calculation specific settings.
Properties
IterationControl
Type IterationControl
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 687
Study
ResidualControl
Type ResidualControl
Read Only No
SolutionMonitorControl
Read Only No
Clustering
Configure methods and settings for creating surface clusters.
Properties
FacesPerSurfaceCluster
sets the number of faces per surface cluster for the wall.
Type int
Read Only No
MaximumDistanceFromCriticalZone
Set maximum distance of a zone form a critical zone for which view factors will be calculated.
Type Expression<Quantity>
Read Only No
MaximumFacesPerSurfaceCluster
Set Maximum Faces Per Surface Cluster, which is maximum number of faces per surface cluster auto-
matically assigned to non-critical wall zones adjacent to fluid zones.
Type int
Read Only No
Components
Allows to specify the velocity component in different coordinate system.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
688 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
CartesianVelocityComponents
Type List<Expression<Quantity>>
Read Only No
CylindricalVelocityComponents
Type List<Expression<Quantity>>
Read Only No
Option
Type Option
Read Only No
ConnectionType
Choose connection type for interface.
Properties
PeriodicityType
Type PeriodicityType
Read Only No
ConvergenceCriteria
Configure convergence criteria for residual, monitor, etc.
Properties
ImbalanceConvergence
Type ImbalanceConvergence
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 689
Study
Read Only No
MonitorConvergence
Type MonitorConvergence
Read Only No
ResidualConvergence
Type ResidualConvergence
Read Only No
UserDefinedConvergence
Type UserDefinedConvergence
Read Only No
CoupledControls
Configure coupled controls.
Properties
FixedCycleControls
Type FixedCycleControls
Read Only No
CouplingControl
Configure settings for solution advancement.
Properties
FlowCoupling
Type FlowCoupling
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
690 of ANSYS, Inc. and its subsidiaries and affiliates.
PressureVelocityCoupling
Type PressureVelocityCoupling
Read Only No
UseImplicitBodyForce
Enable implicit body force treatment to take pressure gradient and body forces into account.
Type bool
Read Only No
VolumeFractionCoupling
Enable coupling of volume fraction, velocity corrections and shared pressure corrections simultaneously.
Type bool
Read Only No
DampingZone
Define how the Damping layer must behave.
Properties
MaximumDamping
Type Expression<Quantity>
Read Only No
Thickness
Set the thickness of the damping layer, starting from the NRBC.
Type Expression<Quantity>
Read Only No
DateAndTime
Configure parameters to specify date and time.
Properties
DayOfYear
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 691
Study
Type DayOfYear
Read Only No
TimeOfDay
Type TimeOfDay
Read Only No
DayOfYear
Configure parameters to specify day and month.
Properties
Day
Type int
Read Only No
Month
Type int
Read Only No
DesModel
Specifies turbulent flow to be calculated using the Detached Eddy Simulation model.
Properties
ShieldingFunction
Type Option
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
692 of ANSYS, Inc. and its subsidiaries and affiliates.
DiffuseSolarIrradiation
Configure Diffuse Solar Irradiation, which is the amount of energy per unit area due to diffuse solar ir-
radiation.
Properties
Value
Type Expression<Quantity>
Read Only No
Direction
Allows to choose between Cartesian or cylindrical component to specify direction.
Properties
CartesianVectorComponents
Type List<Expression<Quantity>>
Read Only No
CylindricalVectorComponents
Type List<Expression<Quantity>>
Read Only No
Option
Type Option
Read Only No
DirectSolarIrradiation
Configure Direct Solar Irradiation, which is the amount of energy per unit area due to direct solar irra-
diation.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 693
Study
Properties
Value
Type Expression<Quantity>
Read Only No
DiscretizationControl
Configure conversion of scalar transport equations to discrete algebraic equations
Properties
SpatialDiscretization
Type SpatialDiscretization
Read Only No
EARSMRgKEpsilonModelConstants
Configure K-Epsilon model constants.
Properties
C1_0
Type Expression<double>
Read Only No
C1_1
Type Expression<double>
Read Only No
C2
Type Expression<double>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
694 of ANSYS, Inc. and its subsidiaries and affiliates.
C2TurbulenceDissipationRate
Type Expression<double>
Read Only No
C3
Type Expression<double>
Read Only No
C4
Type Expression<double>
Read Only No
Cmu
Type Expression<Quantity>
Read Only No
TurbulenceDissipationRatePrandtlNumber
Set Effective Prandtl number for transport of the turbulent dissipation rate.
Type Expression<double>
Read Only No
TurbulenceKineticEnergyPrandtlNumber
Type Expression<double>
Read Only No
EARSMRgKOmegaBSLModelConstants
Configure KOmega BSL model constants.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 695
Study
Properties
Betai1
Type Expression<double>
Read Only No
Betai2
Type Expression<double>
Read Only No
BetaStarInfinite
Type Expression<double>
Read Only No
C1_0
Type Expression<double>
Read Only No
C1_1
Type Expression<double>
Read Only No
C2
Type Expression<double>
Read Only No
C3
Type Expression<double>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
696 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
C4
Type Expression<double>
Read Only No
Ceps1
Set C-epsilon1 for EARSMRg K-Omega Mean Base Line (BSL) Model.
Type Expression<double>
Read Only No
Ceps2
Set C-epsilon1 for EARSMRg K-Omega Mean Base Line (BSL) Model.
Type Expression<double>
Read Only No
Cmu
Type Expression<Quantity>
Read Only No
TurbulenceEddyFrequencyPrandtlNumber1
Set Prandtl Number (ratio of kinematic diffusivity to thermal diffusivity) under Turbulence Eddy Frequency
(omega) condition.
Type Expression<double>
Read Only No
TurbulenceEddyFrequencyPrandtlNumber2
Set Prandtl Number (ratio of kinematic diffusivity to thermal diffusivity) under Turbulence Eddy Frequency
(omega) condition.
Type Expression<double>
Read Only No
TurbulenceKineticEnergyPrandtlNumber1
Set Effective Prandtl number, which defines the ratio of the momentum diffusivity to the diffusivity of
turbulence kinetic energy via turbulent transport.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 697
Study
Type Expression<double>
Read Only No
TurbulenceKineticEnergyPrandtlNumber2
Set Effective Prandtl number, which defines the ratio of the momentum diffusivity to the diffusivity of
turbulence kinetic energy via turbulent transport.
Type Expression<double>
Read Only No
EARSMRgKOmegaModelConstants
Configure Rumsey Gatski KOmega model constants.
Properties
AlphaInfinite
Type Expression<double>
Read Only No
AlphaStarInfinite
Type Expression<double>
Read Only No
Beta
Type Expression<double>
Read Only No
BetaStarInfinite
Type Expression<double>
Read Only No
C1_0
Type Expression<double>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
698 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
C1_1
Type Expression<double>
Read Only No
C2
Type Expression<double>
Read Only No
C2TurbulenceEddyFrequency
Type Expression<double>
Read Only No
C3
Type Expression<double>
Read Only No
C4
Type Expression<double>
Read Only No
Cmu
Type Expression<Quantity>
Read Only No
Cs
Type Expression<double>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 699
Study
Read Only No
Gamma
Type Expression<double>
Read Only No
Mt0
Type Expression<double>
Read Only No
TurbulenceKineticEnergyPrandtlNumber
Type Expression<double>
Read Only No
ZetaStar
Type Expression<double>
Read Only No
EARSMWjKOmegaBSLModelConstants
Configure KOmega BSL model constants.
Properties
A1
Type Expression<double>
Read Only No
A3
Type Expression<double>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
700 of ANSYS, Inc. and its subsidiaries and affiliates.
A4
Type Expression<double>
Read Only No
AlphaInfinite
Type Expression<double>
Read Only No
AlphaStarInfinite
Set this parameter to damp the turbulent viscosity causing a low-Reynolds number correction.
Type Expression<double>
Read Only No
Betai1
Type Expression<double>
Read Only No
Betai2
Type Expression<double>
Read Only No
BetaStarInfinite
Type Expression<double>
Read Only No
Cmu
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 701
Study
Cs
Type Expression<double>
Read Only No
Mt0
Type Expression<double>
Read Only No
TurbulenceEddyFrequencyPrandtlNumber1
Set Prandtl Number (ratio of kinematic diffusivity to thermal diffusivity) under Turbulence Eddy Frequency
(omega) condition.
Type Expression<double>
Read Only No
TurbulenceEddyFrequencyPrandtlNumber2
Set Prandtl Number (ratio of kinematic diffusivity to thermal diffusivity) under Turbulence Eddy Frequency
(omega) condition.
Type Expression<double>
Read Only No
TurbulenceKineticEnergyPrandtlNumber1
Set Effective Prandtl number, which defines the ratio of the momentum diffusivity to the diffusivity of
turbulence kinetic energy via turbulent transport.
Type Expression<double>
Read Only No
TurbulenceKineticEnergyPrandtlNumber2
Set Effective Prandtl number, which defines the ratio of the momentum diffusivity to the diffusivity of
turbulence kinetic energy via turbulent transport.
Type Expression<double>
Read Only No
ZetaStar
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
702 of ANSYS, Inc. and its subsidiaries and affiliates.
Type Expression<double>
Read Only No
Energy
Allows to choose between different energy initial condition.
Properties
Option
Type Option
Read Only No
Temperature
Type Expression<Quantity>
Read Only No
Energy
Set boundary conditions related to Energy.
Properties
EntrainmentTemperature
Type Expression<Quantity>
Read Only No
ExternalEmissivity
Type Expression<Quantity>
Read Only No
ExternalHeatTransferCoefficient
Type Expression<Quantity>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 703
Study
Read Only No
ExternalRadiationTemperature
Type Expression<Quantity>
Read Only No
ExternalTemperature
Type Expression<Quantity>
Read Only No
HeatFlow
Type Expression<Quantity>
Read Only No
HeatFlux
Type Expression<Quantity>
Read Only No
HeatGenerationRate
Type Expression<Quantity>
Read Only No
Option
Type Option
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
704 of ANSYS, Inc. and its subsidiaries and affiliates.
Temperature
TotalEnthalpy
TotalTemperature
Read Only No
Temperature
Type Expression<Quantity>
Read Only No
TotalTemperature
Type Expression<Quantity>
Read Only No
EnergyControl
Configure solution advancement process for energy.
Properties
CourantNumber
Type Expression<Quantity>
Read Only No
EnergyPseudoTransient
Applies pseudo transient under-relaxation method. The under-relaxation is controlled through pseudo
time step size.
Type EnergyPseudoTransient
Read Only No
ImplicitRelaxFactor
Type Expression<Quantity>
Read Only No
Option
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 705
Study
Type Option
Read Only No
EnergyInterfaceConditions
Set energy condition at interface.
Properties
EnergyInterfaceConditionForSide
Read Only No
EnergyInterfaceModel
Type EnergyInterfaceModel
Read Only No
EnergyInterfaceModel
Allows to choose between energy interface definitions.
Properties
HeatGenerationRate
Type Expression<Quantity>
Read Only No
MaterialName
Type Option
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
706 of ANSYS, Inc. and its subsidiaries and affiliates.
Thickness
Type Expression<Quantity>
Read Only No
EnergyModel
Configure Energy Model.
Properties
EnergyModelForPhase
Read Only No
EnergyModelPhaseInteraction
Read Only No
Option
Type Option
Read Only No
TurbulenceEnergyInteraction
Type TurbulenceEnergyInteraction
Read Only No
EnergyNearWallTreatment
Incorporate near wall treatment for energy interaction model.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 707
Study
Properties
PFunction
Type Option
Read Only No
EnergyPeriodicityModel
Allows to choose between different energy periodicity models.
Properties
UpstreamBulkTemperature
Type Expression<Quantity>
Read Only No
EnergyPseudoTransient
Applies pseudo transient under-relaxation method. The under-relaxation is controlled through pseudo
time step size.
Properties
LengthScaleCalculationMethod
Allows one to choose how the length scale is determined when using pseudo transient solution ad-
vancement.
Type LengthScaleCalculationMethod
Read Only No
Option
Allows one to select how the pseudo transient time scale is calculated for the energy equation.
Type Option
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
708 of ANSYS, Inc. and its subsidiaries and affiliates.
PseudoTimestep
Type Expression<Quantity>
Read Only No
RelativeScaleFactor
Set time scaling factor relative to the one specified for flow advancement
Type Expression<double>
Read Only No
TimestepScalingFactor
Type Expression<Quantity>
Read Only No
EnergyRadiatorConditions
Set radiator condition at the interface.
Properties
ExternalHeatTransferCoefficient
Type Expression<Quantity>
Read Only No
ExternalTemperature
Type Expression<Quantity>
Read Only No
HeatFlow
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 709
Study
HeatFlux
Type Expression<Quantity>
Read Only No
ExternalBlackBodyTemperature
Configure External Black Body Temperature, which allows to take into account the influence of the
temperature of the gas and the walls beyond the inlet/exit boundaries.
Properties
BlackBodyTemperature
Type Expression<Quantity>
Read Only No
FASMultigridControls
Configure parameters related to the FAS multigrid solver (used only for Flow equations)
Properties
CorrectionReduction
Set the factor by which to reduce the magnitude of the multigrid corrections transferred from one level
to the next finer level.
Type Expression<double>
Read Only No
CorrectionSmoothing
Set the correction smoothing factor used to interpolate corrections from a coarser grid to a finer grid.
Type Expression<double>
Read Only No
CourantNumberReduction
Set the factor by which to reduce the Courant number for coarse grid levels.
Type Expression<double>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
710 of ANSYS, Inc. and its subsidiaries and affiliates.
MultigridLevels
Type int
Read Only No
PostSweeps
Set the number of sweeps to perform after coarser level corrections have been applied.
Type int
Read Only No
PreSweeps
Set the number of iterations of the multi-stage solver to be performed on a given grid level before
proceeding to a coarser grid level.
Type int
Read Only No
FixedCycleControls
Configure parameters that control the V, W and F cycles.
Properties
CoarseningRate
Controls the number of equations on each successively coarser grid level. Number of equations on each
level will be 1/CoarseningRate of the number on the previous level.
Type int
Read Only No
CoupledFixedCycleSmoother
Type Option
Read Only No
Factor
Type Expression<Quantity>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 711
Study
Read Only No
MaximumCoarseLevels
Set the maximum number of coarse levels that will be built by multigrid solver.
Type int
Read Only No
MaximumCycles
Type int
Read Only No
PostSweeps
Set the number of sweeps to perform after coarser level corrections have been applied.
Type int
Read Only No
PreSweeps
Type int
Read Only No
SymmetryWhenCoarsening
Type bool
Read Only No
FixedCycleControls
Configure parameters that control the V, W and F cycles.
Properties
CoarseningRate
Controls the number of equations on each successively coarser grid level. Number of equations on each
level will be 1/CoarseningRate of the number on the previous level.
Type int
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
712 of ANSYS, Inc. and its subsidiaries and affiliates.
Factor
Type Expression<Quantity>
Read Only No
MaximumCoarseLevels
Set the maximum number of coarse levels that will be built by multigrid solver.
Type int
Read Only No
MaximumCycles
Type int
Read Only No
PostSweeps
Set the number of sweeps to perform after coarser level corrections have been applied.
Type int
Read Only No
PreSweeps
Type int
Read Only No
ScalarFixedCycleSmoother
Type Option
Read Only No
SymmetryWhenCoarsening
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 713
Study
Read Only No
FlexibleCycleControls
Configure parameters that control the flexible multigrid cycle.
Properties
MaximumCoarseRelaxations
Set the maximum number of relaxations to be performed on each grid level above level 1 (coarse grid
levels).
Type int
Read Only No
MaximumCycles
Type int
Read Only No
MaximumFineRelaxations
Set the maximum number of relaxations to be performed on the level 1 grid (fine grid level).
Type int
Read Only No
Sweeps
Set the number of times to apply the smoothing method each time a relaxation is performed.
Type int
Read Only No
Flow
Configure the initial conditions.
Properties
GaugeStaticPressure
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
714 of ANSYS, Inc. and its subsidiaries and affiliates.
Option
Type Option
Read Only No
Velocity
Type Velocity
Read Only No
Flow
Configure flow specification for the boundary.
Properties
AllowReverseFlow
Type AllowReverseFlow
Read Only No
FlowDirection
Type FlowDirection
Read Only No
FullyDevelopedFlow
Type FullyDevelopedFlow
Read Only No
MassFlow
Type MassFlow
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 715
Study
Option
Type Option
Read Only No
Pressure
Type Pressure
Read Only No
ReferenceFrame
Select the parameters that define motion for a moving reference frame.
Type ReferenceFrame
Read Only No
Shear
Type Shear
Read Only No
SurfaceTensionGradient
Type Expression<double>
Read Only No
Velocity
Type Velocity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
716 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
WallVelocity
Type WallVelocity
Read Only No
FlowControl
Configure solution advancement process for momentum.
Properties
CourantNumber
Type Expression<Quantity>
Read Only No
FlowPseudoTransient
Applies pseudo transient under-relaxation method. The under-relaxation is controlled through pseudo
time step size.
Type FlowPseudoTransient
Read Only No
ImplicitRelaxFactor
Type Expression<Quantity>
Read Only No
Option
Type Option
Read Only No
FlowCoupling
Allows to choose solver formulations for density based solver.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 717
Study
Properties
FASMultigridControls
Configure parameters related to the FAS multigrid solver (used only for Flow equations)
Type FASMultigridControls
Read Only No
MultiStageControls
Type MultiStageControls
Read Only No
Option
Type Option
Read Only No
ResidualSmoothening
Type ResidualSmoothening
Read Only No
UseCASM
Enable convergence acceleration for stretched meshes to improve the convergence of the implicit
density based solver on meshes with high cell stretching.
Type bool
Read Only No
FlowDirection
Allows to specify the flow direction in different coordinate system.
Properties
AxialComponent
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
718 of ANSYS, Inc. and its subsidiaries and affiliates.
Type Expression<double>
Read Only No
CartesianDirectionComponents
Type List<Expression<Quantity>>
Read Only No
CylindricalDirectionComponents
Type List<Expression<Quantity>>
Read Only No
Option
Type Option
Read Only No
RadialComponent
Type Expression<double>
Read Only No
TangentialVelocity
Type Expression<Quantity>
Read Only No
FlowInterfaceConditions
Configure flow interface.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 719
Study
Properties
CalculatePressureJumpFromAverageConditions
Type bool
Read Only No
FacePermeability
Type Expression<Quantity>
Read Only No
FlowInterfaceConditionForSide
Read Only No
InertialResistance
Type Expression<Quantity>
Read Only No
LimitPolynomialVelocityRange
Enables this will limit the minimum and maximum velocity magnitudes used to calculate the pressure
jump.
Type bool
Read Only No
LossCoefficient
Type Expression<double>
Read Only No
MaximumVelocity
Type Expression<Quantity>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
720 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
MediumThickness
Type Expression<Quantity>
Read Only No
MinimumVelocity
Type Expression<Quantity>
Read Only No
PressureJump
Type Expression<Quantity>
Read Only No
ReverseFanDirection
Type List<Expression<Quantity>>
Read Only No
Swirl
Type Swirl
Read Only No
FlowModel
Configure Flow Model.
Properties
FlowModelPhaseInteraction
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 721
Study
OperatingConditions
Type OperatingConditions
Read Only No
StressStrainModel
Type StressStrainModel
Read Only No
FlowPeriodicityModel
Allows to choose between different flow periodicity models.
Properties
FlowDirection
Type FlowDirection
Read Only No
MassFlowRate
Type Expression<Quantity>
Read Only No
NumberOfIterations
Type int
Read Only No
PressureGradient
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
722 of ANSYS, Inc. and its subsidiaries and affiliates.
RelaxationFactor
Type Expression<double>
Read Only No
FlowPseudoTransient
Applies pseudo transient under-relaxation method. The under-relaxation is controlled through pseudo
time step size.
Properties
LengthScaleCalculationMethod
Allows one to choose how the length scale is determined when using pseudo transient solution ad-
vancement.
Type LengthScaleCalculationMethod
Read Only No
Option
Type Option
Read Only No
PseudoTimestep
Type Expression<Quantity>
Read Only No
TimestepScalingFactor
Type Expression<Quantity>
Read Only No
Verbosity
Set the verbosity. Enter a value of 1 to print pseudo time step size.
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 723
Study
Read Only No
FlowSolver
Configure flow solver.
Properties
Option
Type Option
Read Only No
FMGSettings
Configure FMG initialization settings
Properties
FMGCourantNumber
Type Expression<Quantity>
Read Only No
FMGGridLevel
Read Only No
NumberOfGridLevels
Type int
Read Only No
FullyDevelopedFlow
Configure the fully developed flow boundary condition.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
724 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
FlowRateWeighting
Set the flow rate weighting factor (what portion of the outflow is through the boundary).
Type Expression<Quantity>
Read Only No
GeneralHybridSettings
Configure general hybrid setting in the model.
Properties
NumberOfIterations
Type int
Read Only No
TuneForExternalAero
Type bool
Read Only No
GlobalPosition
Configure the parameters to define the position of solar radiation.
Properties
Latitude
Type Expression<Quantity>
Read Only No
Longitude
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 725
Study
TimeZone
Set the local time zone of the desired location in hours relative to GMT.
Type Expression<double>
Read Only No
HighOrderRhieChowScheme
Configure High Order Rhie Chow scheme
Properties
CurrentHighOrderRhieChowScheme
Type Option
Read Only No
HighOrderTermRelaxation
Configure relaxation of high order terms.
Properties
DefaultSetting
Type Option
Read Only No
Equation
Read Only No
Factor
Type Expression<Quantity>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
726 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
ImbalanceConvergence
Configure imbalance convergence.
Properties
ImbalanceDefaultSetting
Type ImbalanceDefaultSetting
Read Only No
Option
Type Option
Read Only No
ImbalanceDefaultSetting
Configure imbalance default settings.
Properties
ImbalanceTolerance
Type Expression<double>
Read Only No
Option
Type Option
Read Only No
InitialConditions
Set the initial condition.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 727
Study
Properties
Acoustics
Type Acoustics
Read Only No
Energy
Type Energy
Read Only No
Flow
Type Flow
Read Only No
GeneralHybridSettings
Type GeneralHybridSettings
Read Only No
GridLevel
Read Only No
InitializationMethod
Type Option
Read Only No
NumberOfGridLevels
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
728 of ANSYS, Inc. and its subsidiaries and affiliates.
Type int
Read Only No
Option
Type Option
Read Only No
ReferenceFrameForInitialConditions
Type ReferenceFrameForInitialConditions
Read Only No
SpeciesHybridSettings
Type SpeciesHybridSettings
Read Only No
Turbulence
Type Turbulence
Read Only No
TurbulenceHybridSettings
Type TurbulenceHybridSettings
Read Only No
UserScalarInitialConditions
to be documented
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 729
Study
UserVectorInitialConditions
to be documented
Read Only No
InitialConditions
Set the initial condition.
Properties
Acoustics
Type Acoustics
Read Only No
Energy
Type Energy
Read Only No
Flow
Type Flow
Read Only No
GeneralHybridSettings
Type GeneralHybridSettings
Read Only No
GridLevel
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
730 of ANSYS, Inc. and its subsidiaries and affiliates.
InitializationMethod
Type Option
Read Only No
NumberOfGridLevels
Type int
Read Only No
Option
Type Option
Read Only No
ReferenceFrameForInitialConditions
Type ReferenceFrameForInitialConditions
Read Only No
SpeciesHybridSettings
Type SpeciesHybridSettings
Read Only No
Turbulence
Type Turbulence
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 731
Study
TurbulenceHybridSettings
Type TurbulenceHybridSettings
Read Only No
UserScalarInitialConditions
to be documented
Read Only No
UserVectorInitialConditions
to be documented
Read Only No
InletBoundary
Set boundary.
Properties
BoundaryLocations
Type List<string>
Read Only No
BoundaryReferenceFrame
Set the reference frame for boundary from (physics region or all available reference frames).
Type BoundaryReferenceFrame
Read Only No
BoundaryType
Type Option
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
732 of ANSYS, Inc. and its subsidiaries and affiliates.
Outlet
Symmetry
Wall
Read Only No
Energy
Type Energy
Read Only No
Flow
Type Flow
Read Only No
ParticleBoundaryConditions
to be documented
Type ParticleBoundaryConditions
Read Only No
Radiation
Type Radiation
Read Only No
Regime
Type Regime
Read Only No
Turbulence
Type Turbulence
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 733
Study
UserScalarBoundaryConditions
to be documented
Read Only No
UserVectorBoundaryConditions
to be documented
Read Only No
InterfaceModels
Allows to choose between different interface models.
Properties
RegionPair
Type RegionPair
Read Only No
StreamwisePeriodicityModel
Type StreamwisePeriodicityModel
Read Only No
InterfaceRegions
Set the physics region on either side of interface.
Properties
Side
Set the physics region and their topology ids on this side of interface.
Read Only No
IntersectionControl
configure to create matching or nonmatching interface.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
734 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
AngularTolerance
Type Expression<Quantity>
Read Only No
MatchingInterface
Type bool
Read Only No
NormalToleranceFactor
Type Expression<Quantity>
Read Only No
SmallestAreaToleranceFactor
Type Expression<Quantity>
Read Only No
IterationControl
Configure settings for iteration control.
Properties
ConvergenceCriteria
Type ConvergenceCriteria
Read Only No
EnergyIterationsPerRadiationIteration
Set the frequency with which the radiation terms are updated as the continuous phase solution proceeds.
Type int
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 735
Study
MaximumNumberOfIterations
Type int
Read Only No
MaximumRadiationIterations
Set the maximum number of iterations of the radiation calculation during each global iteration.
Type int
Read Only No
MinimumNumberOfIterations
Type int
Read Only No
ResidualConvergenceCriteria
Set the value to determine when the radiation intensity update is converged.
Type Expression<Quantity>
Read Only No
ke1eStandardModelConstants
Configure k-e 1e Standard model constants.
Properties
Aplus
Type Expression<double>
Read Only No
C1
Type Expression<double>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
736 of ANSYS, Inc. and its subsidiaries and affiliates.
C2
Type Expression<double>
Read Only No
C3
Type Expression<double>
Read Only No
Cs
Type Expression<double>
Read Only No
PrandtlNumber
Type Expression<double>
Read Only No
kEpsilonRealizableModelConstants
Configure realizable K-Epsilon model constants.
Properties
C2Epsilon
Type Expression<double>
Read Only No
TurbulenceDissipationRatePrandtlNumber
Set Effective Prandtl number for transport of the turbulent dissipation rate.
Type Expression<double>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 737
Study
TurbulenceKineticEnergyPrandtlNumber
Set Effective Prandtl number for transport of Turbulence Kinetic energy, which defines the ratio of the
momentum diffusivity to the diffusivity of turbulence kinetic energy via turbulent transport.
Type Expression<double>
Read Only No
kEpsilonRNGModelConstants
Configure RNG K-Epsilon model constants.
Properties
C1Epsilon
Type Expression<double>
Read Only No
C2Epsilon
Type Expression<double>
Read Only No
Cmu
Type Expression<Quantity>
Read Only No
kEpsilonStandardModelConstants
Configure standard k-Epsilon model constants.
Properties
C1Epsilon
Type Expression<double>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
738 of ANSYS, Inc. and its subsidiaries and affiliates.
C2Epsilon
Type Expression<double>
Read Only No
Cmu
Type Expression<Quantity>
Read Only No
TurbulenceDissipationRatePrandtlNumber
Set Effective Prandtl number for transport of the turbulent dissipation rate.
Type Expression<double>
Read Only No
TurbulenceKineticEnergyPrandtlNumber
Set Effective Prandtl number, which defines the ratio of the momentum diffusivity to the diffusivity of
turbulence kinetic energy via turbulent transport.
Type Expression<double>
Read Only No
kOmegaBSLModelConstants
Configure kOmega Mean Base Line (BSL) Model Constants.
Properties
Betai1
Type Expression<double>
Read Only No
Betai2
Type Expression<double>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 739
Study
BetaStarInfinite
Type Expression<double>
Read Only No
TurbulenceEddyFrequencyPrandtlNumber1
Set Prandtl Number (ratio of kinematic diffusivity to thermal diffusivity) under Turbulence Eddy Frequency
(omega) condition.
Type Expression<double>
Read Only No
TurbulenceEddyFrequencyPrandtlNumber2
Set Prandtl Number (ratio of kinematic diffusivity to thermal diffusivity) under Turbulence Eddy Frequency
(omega) condition.
Type Expression<double>
Read Only No
TurbulenceKineticEnergyPrandtlNumber1
Set Effective Prandtl number, which defines the ratio of the momentum diffusivity to the diffusivity of
turbulence kinetic energy via turbulent transport.
Type Expression<double>
Read Only No
TurbulenceKineticEnergyPrandtlNumber2
Set Effective Prandtl number, which defines the ratio of the momentum diffusivity to the diffusivity of
turbulence kinetic energy via turbulent transport.
Type Expression<double>
Read Only No
kOmegaSSTModelConstants
Configure K-Omega SST model constants.
Properties
A1
A1(alpha1)
Type Expression<double>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
740 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
Alpha0
Type Expression<double>
Read Only No
AlphaInfinite
Type Expression<double>
Read Only No
AlphaStarInfinite
Type Expression<double>
Read Only No
BetaIInner
Constant used in the Turbulence Dissipation of omega for the SST k-omega Model.
Type Expression<double>
Read Only No
BetaIOuter
Constant used in the Turbulence Dissipation of omega for the SST k-omega Model.
Type Expression<double>
Read Only No
BetaStarInfinite
Constant used in modeling the Turbulence Dissipation of omega for the SST k-omega Model.
Type Expression<double>
Read Only No
Rbeta
Constant used in modeling the Turbulence Dissipation of omega for the SST k-omega Model.
Type Expression<double>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 741
Study
Read Only No
Rk
Type Expression<double>
Read Only No
Romega
Type Expression<double>
Read Only No
TurbulenceEddyFrequencyInnerPrandtlNumber
Set Effective Prandtl number for the transport of the specific dissipation rate inside the near-wall region.
Type Expression<double>
Read Only No
TurbulenceEddyFrequencyOuterPrandtlNumber
Set Effective Prandtl number for the transport of the specific dissipation rate outside the near-wall region.
Type Expression<double>
Read Only No
TurbulenceKineticEnergyInnerPrandtlNumber
Set Effective Prandtl number for the transport of turbulence kinetic energy inside the near-wall region.
Type Expression<double>
Read Only No
TurbulenceKineticEnergyOuterPrandtlNumber
Set Effective Prandtl number for the transport of turbulence kinetic energy outside the near-wall region.
Type Expression<double>
Read Only No
kOmegaWilcoxModelConstants
Configure kOmega Wilcox model constants.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
742 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
Alpha0
Type Expression<double>
Read Only No
AlphaInfinite
Type Expression<double>
Read Only No
AlphaStarInfinite
Type Expression<double>
Read Only No
ANAT
Set model constant used in k-kl Omega Transition Model Transport Equations.
Type Expression<double>
Read Only No
Anu
Set model constant used in k-kl Omega Transition Model Transport Equations.
Type Expression<double>
Read Only No
ATS
Set model constant used in k-kl Omega Transition Model Transport Equations.
Type Expression<double>
Read Only No
Betai
Type Expression<double>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 743
Study
Read Only No
BetaStarInfinite
Type Expression<double>
Read Only No
CalphatEta
Set model constant used in k-kl Omega Transition Model Transport Equations.
Type Expression<double>
Read Only No
CINT
Set model constant used in k-kl Omega Transition Model Transport Equations.
Type Expression<double>
Read Only No
Clambda
Type Expression<double>
Read Only No
Cmu
Type Expression<Quantity>
Read Only No
CNATcritical
Set model constant used in k-kl Omega Transition Model Transport Equations.
Type Expression<double>
Read Only No
CR
Set constant used in the definition of averaged effect of the breakdown of streamwise fluctuations into
turbulence during bypass transition.
Type Expression<double>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
744 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
CRNAT
Set model constant used in k-kl Omega Transition Model Transport Equations.
Type Expression<double>
Read Only No
Ctaul
Set model constant used in k-kl Omega Transition Model Transport Equations.
Type Expression<double>
Read Only No
CTScritical
Set model constant used in k-kl Omega Transition Model Transport Equations.
Type Expression<double>
Read Only No
CTurbulenceEddyFrequency1
Set model constant used in k-kl Omega Transition Model Transport Equations.
Type Expression<double>
Read Only No
CTurbulenceEddyFrequency3
Set model constant used in k-kl Omega Transition Model Transport Equations.
Type Expression<double>
Read Only No
Rbeta
Type Expression<double>
Read Only No
Rk
Type Expression<double>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 745
Study
Read Only No
Romega
Type Expression<double>
Read Only No
TransitionTurbulenceEddyFrequencyPrandtlNumber
Set Prandtl Number (ratio of kinematic diffusivity to thermal diffusivity) under Transition Tubulent Eddy
Frequency condition.
Type Expression<double>
Read Only No
TransitionTurbulenceKineticEnergyPrandtlNumber
Set Prandtl Number (ratio of kinematic diffusivity to thermal diffusivity) under Transition Tubulent Kin-
etic Energy condition.
Type Expression<double>
Read Only No
TurbulenceEddyFrequencyPrandtlNumber
Set Prandtl Number (ratio of kinematic diffusivity to thermal diffusivity) under Turbulence Eddy Frequency
(omega) condition.
Type Expression<double>
Read Only No
TurbulenceKineticEnergyPrandtlNumber
Set Effective Prandtl number, which defines the ratio of the momentum diffusivity to the diffusivity of
turbulence kinetic energy via turbulent transport.
Type Expression<double>
Read Only No
LaunchControls
Defines how the fluids solver compute engine is configured.
Properties
NumberOfProcesses
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
746 of ANSYS, Inc. and its subsidiaries and affiliates.
Type int
Read Only No
SolverFilesDirectory
Type string
LengthScaleCalculationMethod
Allows one to choose how the length scale is determined when using pseudo transient solution ad-
vancement.
Properties
LengthScale
Set the value of length scale. Useful in problems that have a specific length scale that is difficult to
determine from overall geometry such as airfoil.
Type Expression<Quantity>
Read Only No
Option
Type Option
Read Only No
LinearSolver
Configure generic setting related to advanced solution controls.
Properties
CoupledControls
Type CoupledControls
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 747
Study
FlexibleCycleControls
Type FlexibleCycleControls
Read Only No
LinearSolverSettings
Read Only No
ScalarControls
Type ScalarControls
Read Only No
Verbosity
Controls the amount of information that is printed out by the linear solver for monitoring purposes.
Type int
Read Only No
MassFlow
Configure mass flow specifications for the boundary.
Properties
AverageMassFlux
Type Expression<Quantity>
Read Only No
GaugeStaticPressure
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
748 of ANSYS, Inc. and its subsidiaries and affiliates.
MassFlowRate
Type Expression<Quantity>
Read Only No
MassFlowUpdate
Type MassFlowUpdate
Read Only No
MassFlux
Type Expression<Quantity>
Read Only No
Option
Type Option
Read Only No
SpecifyAverageMassFlux
Type bool
Read Only No
MassFlowUpdate
Configure mass flow update options.
Properties
GaugeStaticPressure
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 749
Study
GaugeStaticPressureAtMinimumRadius
Type Expression<Quantity>
Read Only No
LowerLimitOfAbsolutePressure
Type Expression<Quantity>
Read Only No
NumberOfBands
Type NumberOfBands
Read Only No
Option
Type Option
Read Only No
PressureAveraging
Configure pressure averaging - allows the pressure along the outlet boundary to vary, but maintain an
average equivalent.
Type PressureAveraging
Read Only No
RadialEquilibrium
Type bool
Read Only No
UpperLimitOfAbsolutePressure
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
750 of ANSYS, Inc. and its subsidiaries and affiliates.
Type Expression<Quantity>
Read Only No
MeshOrientation
Configure the orientation as the vectors for North and East.
Properties
EastCoordinates
Type List<Expression<Quantity>>
Read Only No
NorthCoordinates
Type List<Expression<Quantity>>
Read Only No
Method
Select method for non-iterative time advancement
Properties
NeighborCorrection
Type int
Read Only No
ModelProperties
Configure input fields for material properties that are required for active physical models.
Properties
AbsorptionCoefficientModel
Type AbsorptionCoefficientModel
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 751
Study
RefractiveIndexModel
Type RefractiveIndexModel
Read Only No
MonitorConvergence
Set convergence criteria for monitors.
Properties
Option
Type Option
Read Only No
MonitorFrequency
Configure Monitor Frequency.
Properties
IterationFrequency
Type int
Read Only No
Option
Type Option
Read Only No
SolutionTimeFrequency
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
752 of ANSYS, Inc. and its subsidiaries and affiliates.
Type Expression<Quantity>
Read Only No
TimeStepFrequency
Type int
Read Only No
Monopole
Set the monopole characteristics
Properties
Amplitude
Type Expression<Quantity>
Read Only No
Frequency
Type Expression<Quantity>
Read Only No
LocationCoordinates
Type List<Expression<double>>
Read Only No
RadiusFactor
Type Expression<Quantity>
Read Only No
MorphologyModels
Allows to choose between phase definition models.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 753
Study
Properties
MultiphaseModels
Read Only No
PhaseInteractions
Type PhaseInteractions
Read Only No
MovingWall
Configure moving wall in the model.
Properties
AngularSpeed
Type Expression<Quantity>
Read Only No
Components
Type Components
Read Only No
Direction
Type Direction
Read Only No
Magnitude
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
754 of ANSYS, Inc. and its subsidiaries and affiliates.
Option
Type Option
Read Only No
MultiStageControls
Configure parameters that govern the operation of the multi-stage solver.
Properties
NumberOfStages
Type int
Read Only No
Stage
Read Only No
NearWallTreatment
Configure the near-wall treatment to be used for modeling turbulence.
Properties
FullLowReNearWallDamping
Type bool
Read Only No
Option
Type Option
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 755
Study
NonEquilibriumWallFunction
ScalableWallFunction
StandardWallFunction
yPlusInsensitive
yPlusInsensitiveMenterLechner
yPlusInsensitiveTwoLayer
Read Only No
PressureGradientEffects
Type bool
Read Only No
Normalization
Allows one to choose to normalize residuals with respect to a residual at a particular iteration number.
Properties
Iteration
Set the number of iterations for which largest residual will be searched to normalize by.
Type int
Read Only No
Option
Type Option
Read Only No
NumberOfBands
Select reference frame for total pressure
Properties
MaximumNumber
Specifies the maximum number of bands to use for the radial pressure profile evaluation.
Type int
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
756 of ANSYS, Inc. and its subsidiaries and affiliates.
Option
Select total pressure reference frame among global and boundary frames.
Type Option
Read Only No
NumericalControls
Configure region wise numerics related controls.
Properties
DiscretizationControl
Type DiscretizationControl
Read Only No
FlowSolver
Type FlowSolver
Read Only No
SolutionControl
Type SolutionControl
Read Only No
NumericalControls
Configure region wise numerics related controls.
Properties
DiscretizationControl
Type DiscretizationControl
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 757
Study
FlowSolver
Type FlowSolver
Read Only No
SolutionControl
Type SolutionControl
Read Only No
OpeningBoundary
Set boundary.
Properties
BoundaryLocations
Type List<string>
Read Only No
BoundaryReferenceFrame
Set the reference frame for boundary from (physics region or all available reference frames).
Type BoundaryReferenceFrame
Read Only No
BoundaryType
Type Option
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
758 of ANSYS, Inc. and its subsidiaries and affiliates.
Energy
Type Energy
Read Only No
Flow
Type Flow
Read Only No
ParticleBoundaryConditions
to be documented
Type ParticleBoundaryConditions
Read Only No
Radiation
Type Radiation
Read Only No
Regime
Type Regime
Read Only No
Turbulence
Type Turbulence
Read Only No
UserScalarBoundaryConditions
to be documented
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 759
Study
UserVectorBoundaryConditions
to be documented
Read Only No
OperatingConditions
Sets the parameters related to operating conditions in the model.
Properties
GravitationalAcceleration
Type List<Expression<Quantity>>
Read Only No
OperatingPressure
Type OperatingPressure
Read Only No
ReferencePressureLocation
Type ReferencePressureLocation
Read Only No
OperatingPressure
Allows to choose between the fixed or floating operating pressure.
Properties
Option
Type Option
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
760 of ANSYS, Inc. and its subsidiaries and affiliates.
Value
Type Expression<Quantity>
Read Only No
OutletBoundary
Set boundary.
Properties
BoundaryLocations
Type List<string>
Read Only No
BoundaryReferenceFrame
Set the reference frame for boundary from (physics region or all available reference frames).
Type BoundaryReferenceFrame
Read Only No
BoundaryType
Type Option
Read Only No
Energy
Type Energy
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 761
Study
Flow
Type Flow
Read Only No
ParticleBoundaryConditions
to be documented
Type ParticleBoundaryConditions
Read Only No
Radiation
Type Radiation
Read Only No
Regime
Type Regime
Read Only No
Turbulence
Type Turbulence
Read Only No
UserScalarBoundaryConditions
to be documented
Read Only No
UserVectorBoundaryConditions
to be documented
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
762 of ANSYS, Inc. and its subsidiaries and affiliates.
Parameters
Configure settings related to the hemicube and ray tracing methods for computing the view factors.
Properties
NormalizedSeparationDistance
Set ratio of the minimum face separation to the effective diameter of the face.
Type Expression<Quantity>
Read Only No
Resolution
Type int
Read Only No
Subdivisions
Type int
Read Only No
ParticleBoundaryConditions
to be documented
Properties
ParticleEnergyBoundaryConditions
to be documented
Type ParticleEnergyBoundaryConditions
Read Only No
ParticleFlowBoundaryConditions
to be documented
Type ParticleFlowBoundaryConditions
Read Only No
ParticleEnergyBoundaryConditions
to be documented
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 763
Study
Properties
ParticleEnergyBoundaryCondition
to be documented
Read Only No
ParticleFlowBoundaryConditions
to be documented
Properties
ParticleFlowBoundaryCondition
to be documented
Read Only No
PeriodicityType
Choose periodicity type.
Properties
RotationAngle
Type RotationAngle
Read Only No
TranslationVector
Type TranslationVector
Read Only No
PhaseDefinition
Create phase definition.
Properties
MaterialName
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
764 of ANSYS, Inc. and its subsidiaries and affiliates.
Type Option
Read Only No
PhaseInteractions
Configure phase interactions.
Properties
PhaseInteraction
Read Only No
PhaseModels
Set the physics models.
Properties
EnergyModel
Type EnergyModel
Read Only No
FlowModel
Type FlowModel
Read Only No
MorphologyModels
Type MorphologyModels
Read Only No
RadiationModel
Type RadiationModel
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 765
Study
Read Only No
TurbulenceModel
Type TurbulenceModel
Read Only No
UserScalarModel
to be documented
Read Only No
UserVectorModel
to be documented
Read Only No
PhaseModels
Set the physics models.
Properties
EnergyModel
Type EnergyModel
Read Only No
FlowModel
Type FlowModel
Read Only No
MorphologyModels
Type MorphologyModels
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
766 of ANSYS, Inc. and its subsidiaries and affiliates.
RadiationModel
Type RadiationModel
Read Only No
TurbulenceModel
Type TurbulenceModel
Read Only No
UserScalarModel
to be documented
Read Only No
UserVectorModel
to be documented
Read Only No
PhysicsRegion
Set the areas within the geometry that you want to assign physical properties.
Properties
PhysicsRegionLocation
Type List<string>
Read Only No
PhysicsType
Type PhysicsType
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 767
Study
PhysicsRegionInterface
Set the physics region on interface.
Properties
ConnectionType
Type ConnectionType
Read Only No
InterfaceModels
Type InterfaceModels
Read Only No
InterfaceRegions
Type InterfaceRegions
Read Only No
IntersectionControl
Type IntersectionControl
Read Only No
NonOverlapConditions
Read Only No
ReferenceFrameForRegionInterface
Type ReferenceFrameForRegionInterface
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
768 of ANSYS, Inc. and its subsidiaries and affiliates.
PhysicsRegionInterface
Set the physics region on interface.
Properties
ConnectionType
Type ConnectionType
Read Only No
InterfaceModels
Type InterfaceModels
Read Only No
InterfaceRegions
Type InterfaceRegions
Read Only No
IntersectionControl
Type IntersectionControl
Read Only No
NonOverlapConditions
Read Only No
ReferenceFrameForRegionInterface
Type ReferenceFrameForRegionInterface
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 769
Study
PhysicsType
Set the physics type.
Properties
PhysicsTypeList
Set the physics type of the region (String list can have Fluid or Thermal or both).
Type List<string>
Read Only No
PorousResistanceModel
Configure Porous Resistance Model.
Properties
C0
Type Expression<double>
Read Only No
C1
Type Expression<Quantity>
Read Only No
InertialResistanceCoefficient
Type Expression<Quantity>
Read Only No
InertialResistanceComponents
Type List<Expression<Quantity>>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
770 of ANSYS, Inc. and its subsidiaries and affiliates.
InertialResistanceFormulation
Allows to choose between standard and alternative inertial formulation, this is preferred when porous
media contains highly anisotropic inertial resistance.
Type Option
Read Only No
StreamwiseDirection
Type List<Expression<Quantity>>
Read Only No
StreamwiseInertialResistanceCoefficient
Type Expression<Quantity>
Read Only No
StreamwiseViscousResistanceCoefficient
Type Expression<Quantity>
Read Only No
TransverseInertialResistanceCoefficient
Type Expression<Quantity>
Read Only No
TransverseViscousResistanceCoefficient
Type Expression<Quantity>
Read Only No
VelocityResistanceFormulation
Allows to choose between absolute (fluid in the domain is not moving) or relative (fluid in the domain
is moving) formulation.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 771
Study
Type Option
Read Only No
ViscousResistanceCoefficient
Type Expression<Quantity>
Read Only No
ViscousResistanceComponents
Type List<Expression<Quantity>>
Read Only No
Pressure
Configure pressure specifications for the boundary.
Properties
GaugeEntrainmentPressure
Type Expression<Quantity>
Read Only No
GaugeStaticPressure
Type Expression<Quantity>
Read Only No
GaugeStaticPressureAtMinimumRadius
Type Expression<Quantity>
Read Only No
GaugeTotalPressure
Sets the gauge total (or stagnation) pressure of the inflow stream.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
772 of ANSYS, Inc. and its subsidiaries and affiliates.
Type Expression<Quantity>
Read Only No
NumberOfBands
Type NumberOfBands
Read Only No
PressureAveraging
Configure pressure averaging - allows the pressure along the outlet boundary to vary, but maintain an
average equivalent.
Type PressureAveraging
Read Only No
PressureOption
Type Option
Read Only No
RadialEquilibrium
Type bool
Read Only No
TotalPressureFrame
Type TotalPressureFrame
Read Only No
PressureAveraging
Configure pressure averaging - allows the pressure along the outlet boundary to vary, but maintain an
average equivalent.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 773
Study
Properties
Option
Type Option
Read Only No
PressureProfileBlend
Factor that blends between the specified pressure profile and a floating pressure profile. For a Pressure
Profile Blend factor of zero the specified pressure is used only to enforce the average pressure.
Type Expression<double>
Read Only No
PressureScheme
Select how pressure is interpolated from cells to faces
Properties
CurrentPressureScheme
Type Option
Read Only No
Option
Type Option
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
774 of ANSYS, Inc. and its subsidiaries and affiliates.
PRESTO
SecondOrder
Read Only No
PRESTOScheme
Refine PRESTO scheme by selecting among Standard, Unstructured and Low Order
Type Option
Read Only No
PressureVelocityCoupling
Allows to choose different schemes for pressure-velocity coupling.
Properties
NeighborCorrection
Type int
Read Only No
Option
Type Option
Read Only No
SkewnessCorrection
Enables the SIMPLEC and PISO skewness correction for highly skewed meshes, if the value (number of
iterations) is greater than 0.
Type int
Read Only No
SkewnessNeighborCoupling
Enables the PISO neighbor correction, which is recommended for transient calculations.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 775
Study
Type bool
Read Only No
ProductionLimiter
Configure to limit the production term in the turbulence equation.
Properties
CPkLim
Type Expression<double>
Read Only No
LimiterOption
Type Option
Read Only No
ProductionSettings
Configure the parameter and constant for production setting.
Properties
CDokMu
Type Expression<double>
Read Only No
CompressibleProduction
Type Option
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
776 of ANSYS, Inc. and its subsidiaries and affiliates.
CPkMu
Type Expression<double>
Read Only No
Production
Choose from options to limit the production term in the turbulence equation.
Type Option
Read Only No
ProductionLimiter
Type ProductionLimiter
Read Only No
Radiation
Configure radiation specifications for boundary.
Properties
ApplyDirectIrradiationParallelToBeam
When enabled, assumes the value of direct irradiation specify is parallel to beam direction.
Type bool
Read Only No
BeamDirection
Type BeamDirection
Read Only No
BeamWidth
Set beam width for an external semi-transparent wall in terms of the Theta and Phi extents.
Type BeamWidth
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 777
Study
CriticalZone
Type bool
Read Only No
DiffuseFraction
Read Only No
DiffuseIrradiation
Read Only No
DirectIrradiation
Read Only No
ExternalBlackBodyTemperature
Configure External Black Body Temperature, which allows to take into account the influence of the
temperature of the gas and the walls beyond the inlet/exit boundaries.
Type ExternalBlackBodyTemperature
Read Only No
FacesPerSurfaceCluster
sets the number of faces per surface cluster for the wall.
Type int
Read Only No
InternalEmissivity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
778 of ANSYS, Inc. and its subsidiaries and affiliates.
ParticipatesInViewFactorCalculation
Type bool
Read Only No
TransparencyOption
Type Option
Read Only No
RadiationInterfaceConditions
Configure parameters for Radiation Interface Conditions.
Properties
InterfaceTransparencyOption
Type Option
Read Only No
RadiationInterfaceConditionForSide
Read Only No
RadiationModel
Configure Radiation Model.
Properties
AngularDiscretization
Configure parameters for angular discretization and pixelation for the DO mode.
Type AngularDiscretization
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 779
Study
Read Only No
DOEnergyCoupling
Set Couples energy and DO (Discrete Ordinates) intensity equations at each cell.
Type bool
Read Only No
ModelProperties
Configure input fields for material properties that are required for active physical models.
Type ModelProperties
Read Only No
Option
Type Option
Read Only No
SpectralModel
Type SpectralModel
Read Only No
ViewFactorsAndClustering
Type ViewFactorsAndClustering
Read Only No
RANSModel
Configure options for specifying the viscous model.
Properties
BoundaryLayerTransitionModel
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
780 of ANSYS, Inc. and its subsidiaries and affiliates.
Type Option
Read Only No
BuoyancyEffects
Type Option
Read Only No
CompressibilityEffects
Type bool
Read Only No
CorrectionCoefficient
Type Expression<Quantity>
Read Only No
CurvatureCorrection
When enabled, modifies the turbulence production term to sensitize the standard eddy-viscosity models
to the effects of streamline curvature and system rotation.
Type Option
Read Only No
DesModel
Specifies turbulent flow to be calculated using the Detached Eddy Simulation model.
Type DesModel
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 781
Study
EARSMRgKEpsilonModelConstants
Type EARSMRgKEpsilonModelConstants
Read Only No
EARSMRgKOmegaBSLModelConstants
Type EARSMRgKOmegaBSLModelConstants
Read Only No
EARSMRgKOmegaModelConstants
Type EARSMRgKOmegaModelConstants
Read Only No
EARSMWjKOmegaBSLModelConstants
Type EARSMWjKOmegaBSLModelConstants
Read Only No
ke1eStandardModelConstants
Type ke1eStandardModelConstants
Read Only No
kEpsilonRealizableModelConstants
Type kEpsilonRealizableModelConstants
Read Only No
kEpsilonRNGModelConstants
Type kEpsilonRNGModelConstants
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
782 of ANSYS, Inc. and its subsidiaries and affiliates.
kEpsilonStandardModelConstants
Type kEpsilonStandardModelConstants
Read Only No
kOmegaBSLModelConstants
Type kOmegaBSLModelConstants
Read Only No
kOmegaSSTModelConstants
Type kOmegaSSTModelConstants
Read Only No
kOmegaWilcoxModelConstants
Type kOmegaWilcoxModelConstants
Read Only No
LowReCorrections
Specifies whether corrections that improve the accuracy in predicting low Reynolds number flows should
be included.
Type bool
Read Only No
NearWallTreatment
Type NearWallTreatment
Read Only No
Option
Type Option
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 783
Study
EARSMRumseyGatskiKOmega
EARSMRumseyGatskiKOmegaBSL
EARSMWallinJohanssonKOmegaBSL
RSMEpsilon
RSMOmega
SpalartAllmaras
kEpsilonRNG
kEpsilonRealizable
kEpsilonStandard
kOmegaBSL
kOmegaSST
kOmegaWilcox
ke1eStandard
Read Only No
ProductionSettings
Type ProductionSettings
Read Only No
RSMEpsilonModelConstants
Type RSMEpsilonModelConstants
Read Only No
RSMOmegaModelConstants
Type RSMOmegaModelConstants
Read Only No
ShearFlowCorrections
Specifies whether corrections that improve the accuracy in predicting free shear flows should be included.
Type bool
Read Only No
SpalartAllmarasModelConstants
Configure parameters for the turbulent flow to be calculated using the Spalart-Allmaras model.
Type SpalartAllmarasModelConstants
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
784 of ANSYS, Inc. and its subsidiaries and affiliates.
SpalartAllmarasProduction
Choose from the options whether the flow is vorticity based or Strain Vorticity based in Spalart-Allmaras
model.
Type Option
Read Only No
TurbulenceModelSuppression
Choose from the options to block either Turbulence Production or Turbulence Viscosity Production or
None in DES Model.
Type Option
Read Only No
ReferenceFrame
Select the parameters that define motion for a moving reference frame.
Properties
Option
Specify whether the reference frame for the boundary is absolute or relative to physics region.
Type Option
Read Only No
ReferenceFrameForInitialConditions
Set the reference frame for initial condition.
Properties
FrameName
Type DataObject
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 785
Study
Option
Type Option
Read Only No
ReferenceFrameForRegionInterface
Choose reference frame for region interface
Properties
AdjacentPhysicsRegion
Type Option
Read Only No
FrameName
Type DataObject
Read Only No
ReferencePressureLocation
Sets location for reference pressure for operating conditions.
Properties
Coordinates
Type List<Expression<Quantity>>
Read Only No
Option
Allows one to select where in your simulation the reference pressure is set.
Type Option
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
786 of ANSYS, Inc. and its subsidiaries and affiliates.
CartesianCoordinates
Read Only No
RefractiveIndexModel
Set refractive index for the material.
Properties
MaterialRefractiveIndex
Read Only No
Regime
Configure flow regime.
Properties
Option
Type Option
Read Only No
RegionPair
Configure different interface conditions for region pair.
Properties
EnergyInterfaceConditions
Type EnergyInterfaceConditions
Read Only No
EnergyRadiatorConditions
Type EnergyRadiatorConditions
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 787
Study
Read Only No
FlowInterfaceConditions
Type FlowInterfaceConditions
Read Only No
RadiationInterfaceConditions
Type RadiationInterfaceConditions
Read Only No
ResidualControl
Configure settings to control residual information.
Properties
MonitorFrequency
Type MonitorFrequency
Read Only No
Normalization
Allows one to choose to normalize residuals with respect to a residual at a particular iteration number.
Type Normalization
Read Only No
ResidualScaling
Allows one to choose how control volume equation residuals are scaled so that they are dimensionless.
Type ResidualScaling
Read Only No
ResidualConvergence
Configure convergence criteria for residuals.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
788 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
ResidualDefaultSetting
Type ResidualDefaultSetting
Read Only No
ResidualTolerance
Read Only No
ResidualDefaultSetting
Set default value of convergence criteria for residual.
Properties
Option
Type Option
Read Only No
Value
Type Expression<double>
Read Only No
ResidualScaling
Allows one to choose how control volume equation residuals are scaled so that they are dimensionless.
Properties
LocalScalingOption
Type Option
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 789
Study
Read Only No
Option
Type Option
Read Only No
ResidualSmoothening
Configure parameters that govern the use of implicit residual smoothing.
Properties
Iterations
Set the number of iterations of the Jacobi smoother to use. If Iterations is 0, then no implicit residual
smoothing is performed.
Type int
Read Only No
SmoothingFactor
Set the implicit residual smoothing factor. This item will not appear unless Iterations is set to a non-
zero value.
Type Expression<double>
Read Only No
ReynoldsStresses
Configure Reynolds stress model.
Properties
Option
Type Option
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
790 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
UU
Type Expression<Quantity>
Read Only No
UV
Type Expression<Quantity>
Read Only No
UW
Type Expression<Quantity>
Read Only No
VV
Type Expression<Quantity>
Read Only No
VW
Type Expression<Quantity>
Read Only No
WW
Type Expression<Quantity>
Read Only No
RotationAngle
Allows to choose rotation angle between automatic and user specified.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 791
Study
Properties
SpecifiedRotationAngle
Type Expression<Quantity>
Read Only No
RSMEpsilonModelConstants
Configure Reynolds Stress Model-Epsilon constants.
Properties
C1Epsilon
Type Expression<double>
Read Only No
C1primePS
Type Expression<double>
Read Only No
C1primeSSGPS
Type Expression<double>
Read Only No
C1PS
Type Expression<double>
Read Only No
C1SSGPS
Type Expression<double>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
792 of ANSYS, Inc. and its subsidiaries and affiliates.
C2EpsilonLinear
Type Expression<double>
Read Only No
C2EpsilonQuadratic
Type Expression<double>
Read Only No
C2primePS
Type Expression<double>
Read Only No
C2PS
Type Expression<double>
Read Only No
C2SSGPS
Type Expression<double>
Read Only No
C3primeSSGPS
Type Expression<double>
Read Only No
C3SSGPS
Type Expression<double>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 793
Study
C4SSGPS
Type Expression<double>
Read Only No
C5SSGPS
Type Expression<double>
Read Only No
Cmu
Type Expression<Quantity>
Read Only No
TurbulenceDissipationRatePrandtlNumber
Set Effective Prandtl number for transport of the turbulent dissipation rate.
Type Expression<double>
Read Only No
TurbulenceKineticEnergyPrandtlNumber
Set Effective Prandtl number, which defines the ratio of the momentum diffusivity to the diffusivity of
turbulence kinetic energy via turbulent transport.
Type Expression<double>
Read Only No
RSMOmegaModelConstants
Configure model constants in Omega Reynolds Stress Model.
Properties
Alpha0
Type Expression<double>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
794 of ANSYS, Inc. and its subsidiaries and affiliates.
AlphaInfinite
Type Expression<double>
Read Only No
AlphaStarInfinite
Type Expression<double>
Read Only No
Betai
Type Expression<double>
Read Only No
BetaStarInfinite
Type Expression<double>
Read Only No
C1PS
Type Expression<double>
Read Only No
C2PS
Type Expression<double>
Read Only No
Cs
Type Expression<double>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 795
Study
Mt0
Compressibility Correction.
Type Expression<double>
Read Only No
Rbeta
Type Expression<double>
Read Only No
Rk
Type Expression<double>
Read Only No
Romega
Type Expression<double>
Read Only No
TurbulenceEddyFrequencyPrandtlNumber
Set Prandtl Number (ratio of kinematic diffusivity to thermal diffusivity) under Turbulence Eddy Frequency
(omega) condition.
Type Expression<double>
Read Only No
TurbulenceKineticEnergyPrandtlNumber
Set Effective Prandtl number, which defines the ratio of the momentum diffusivity to the diffusivity of
turbulence kinetic energy via turbulent transport.
Type Expression<double>
Read Only No
ZetaStar
Type Expression<double>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
796 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
ScalarControls
Configure scalar controls.
Properties
FixedCycleControls
Type FixedCycleControls
Read Only No
Shear
Configure shear conditions at the wall.
Properties
Option
Type Option
Read Only No
ShearStress
Type List<Expression<Quantity>>
Read Only No
SimulationTermination
Configure settings for simulation termination.
Properties
EndTime
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 797
Study
Value
Type int
Read Only No
SolarCalculator
Configure parameters related to the calculation of solar load models.
Properties
DateAndTime
Type DateAndTime
Read Only No
GlobalPosition
Type GlobalPosition
Read Only No
MeshOrientation
Type MeshOrientation
Read Only No
SolarIrradiationMethod
Type Option
Read Only No
SunshineFactor
Set Sunshine Factor, which is linear reduction factor for the computed incident load that allows for
cloud cover to be accounted
Type Expression<Quantity>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
798 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
SolutionControl
Configure common solution parameters.
Properties
AdvancementControl
Type AdvancementControl
Read Only No
CouplingControl
Type CouplingControl
Read Only No
ExplicitRelaxation
Read Only No
HighOrderTermRelaxation
Type HighOrderTermRelaxation
Read Only No
LinearSolver
Type LinearSolver
Read Only No
SolutionLimits
Type SolutionLimits
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 799
Study
SolutionSteering
Type SolutionSteering
Read Only No
SolutionControls
Configure generic settings for solution controls.
Properties
CalculationControl
Type CalculationControl
Read Only No
ParticleControl
to be documented
Read Only No
SolvePrimaryLinearSystem
Type bool
Read Only No
WithRespectTo
Type string
Read Only No
SolutionControls
Configure generic settings for solution controls.
Properties
CalculationControl
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
800 of ANSYS, Inc. and its subsidiaries and affiliates.
Type CalculationControl
Read Only No
ParticleControl
to be documented
Read Only No
SolvePrimaryLinearSystem
Type bool
Read Only No
WithRespectTo
Type string
Read Only No
SolutionLimits
Configure bounds for solution fields
Properties
AbsolutePressurePositivityRate
Type Expression<Quantity>
Read Only No
MaximumAbsolutePressure
Type Expression<Quantity>
Read Only No
MaximumTemperature
Type Expression<Quantity>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 801
Study
Read Only No
MaximumTurbulenceViscosityRatio
Type Expression<Quantity>
Read Only No
MinimumAbsolutePressure
Type Expression<Quantity>
Read Only No
MinimumTemperature
Type Expression<Quantity>
Read Only No
MinimumTurbulenceDissipationRate
Type Expression<Quantity>
Read Only No
MinimumTurbulenceEddyFrequency
Type Expression<Quantity>
Read Only No
MinimumTurbulenceKineticEnergy
Type Expression<Quantity>
Read Only No
TemperaturePositivityRate
Type Expression<Quantity>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
802 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
VolumeFractionCutoff
Type Expression<double>
Read Only No
SolutionSteering
Fine-tune or override solver settings elsewhere using solution steerings.
Properties
BlendFactor
Type Expression<Quantity>
Read Only No
FirstToHigherOrderBlending
Type bool
Read Only No
FlowType
Type Option
Read Only No
FMGSettings
Type FMGSettings
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 803
Study
SteeringSettings
Type SteeringSettings
Read Only No
UseFMGInitialization
Type bool
Read Only No
UseSolutionSteering
Type bool
Read Only No
SpalartAllmarasModelConstants
Configure parameters for the turbulent flow to be calculated using the Spalart-Allmaras model.
Properties
Cb1
Type Expression<double>
Read Only No
Cb2
Type Expression<double>
Read Only No
Cproduction
Set the parameter to model the Turbulent Viscosity when strain/vorticity-based production option is
used.
Type Expression<double>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
804 of ANSYS, Inc. and its subsidiaries and affiliates.
Cv1
Type Expression<double>
Read Only No
Cw2
Type Expression<double>
Read Only No
Cw3
Type Expression<double>
Read Only No
PrandtlNumber
Type Expression<double>
Read Only No
SpatialDiscretization
Configure interpolation of convection terms of quantities to control volumes
Properties
Advection
Type Advection
Read Only No
GradientMethod
Type Option
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 805
Study
Read Only No
PressureScheme
Type PressureScheme
Read Only No
SpeciesHybridSettings
Configure hybrid initialization settings
Properties
SpecifySpeciesParameters
Type bool
Read Only No
SpectralModel
Configure supported Spectral models.
Properties
Interval
Read Only No
NumberOfIntervals
Type int
Read Only No
Option
Type Option
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
806 of ANSYS, Inc. and its subsidiaries and affiliates.
SpectralVariable
Type Option
Read Only No
StageOne
Configure the settings of first stage.
Properties
NumberOfIterations
Type int
Read Only No
StageTwo
Configure the settings of second stage.
Properties
CourantNumberUpdateInterval
Type int
Read Only No
NumberOfIterations
Type int
Read Only No
UpdateCourantNumber
Type Option
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 807
Study
Immediately
Read Only No
SteeringSettings
Configure solution steering.
Properties
ExplicitUnderRelaxationFactor
Type Expression<Quantity>
Read Only No
InitialCourantNumber
Type Expression<Quantity>
Read Only No
MaximumCourantNumber
Type Expression<Quantity>
Read Only No
StageOne
Type StageOne
Read Only No
StageTwo
Type StageTwo
Read Only No
StreamwisePeriodicityModel
Allows to choose between different streamwise periodicity models.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
808 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
EnergyPeriodicityModel
Type EnergyPeriodicityModel
Read Only No
FlowPeriodicityModel
Type FlowPeriodicityModel
Read Only No
StressStrainModel
Configure Stress Strain Model.
Properties
Option
Type Option
Read Only No
SunDirectionVector
Configure components of sun direction vector.
Properties
Value
Type List<Expression<Quantity>>
Read Only No
Swirl
Configure swirl in the model.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 809
Study
Properties
FanAxis
Type List<Expression<Quantity>>
Read Only No
FanOrigin
Set the fan origin coordinate through which the fan rotation axis passes.
Type List<Expression<Quantity>>
Read Only No
HubRadius
Type Expression<Quantity>
Read Only No
RadialVelocity
Type Expression<Quantity>
Read Only No
TangentialVelocity
Type Expression<Quantity>
Read Only No
SymmetryBoundary
Set boundary.
Properties
BoundaryLocations
Type List<string>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
810 of ANSYS, Inc. and its subsidiaries and affiliates.
BoundaryReferenceFrame
Set the reference frame for boundary from (physics region or all available reference frames).
Type BoundaryReferenceFrame
Read Only No
BoundaryType
Type Option
Read Only No
Energy
Type Energy
Read Only No
Flow
Type Flow
Read Only No
ParticleBoundaryConditions
to be documented
Type ParticleBoundaryConditions
Read Only No
Radiation
Type Radiation
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 811
Study
Regime
Type Regime
Read Only No
Turbulence
Type Turbulence
Read Only No
UserScalarBoundaryConditions
to be documented
Read Only No
UserVectorBoundaryConditions
to be documented
Read Only No
TimeAdvancementMethod
Configure time advancement method for transient solutions
Properties
Method
Type Method
Read Only No
TimeOfDay
Configure parameters to specify hour and minutes.
Properties
Hour
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
812 of ANSYS, Inc. and its subsidiaries and affiliates.
Type int
Read Only No
Minute
Type int
Read Only No
TimeStepInitialization
Configure time step initialization.
Properties
Option
Type Option
Read Only No
TimeSteppingMethod
Allows to choose between different time stepping methods.
Properties
InitialTimeStepSize
Type Expression<Quantity>
Read Only No
MaximumCellCourantNumber
Type Expression<double>
Read Only No
MaximumChangeFactor
Set maximum limit to which the time step size can change at each time step.
Type Expression<double>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 813
Study
Read Only No
MaximumTimeStepSize
Type Expression<Quantity>
Read Only No
MinimumChangeFactor
Set minimum limit to which the time step size can change at each time step.
Type Expression<double>
Read Only No
MinimumTimeStepSize
Type Expression<Quantity>
Read Only No
NumberOfFixedTimeSteps
Set the number of fixed-size time steps that should be performed before the size of the time step starts
to change.
Type int
Read Only No
TimeStepSize
Type Expression<Quantity>
Read Only No
TruncationErrorTolerance
Set the threshold value to which the computed truncation error is compared.
Type Expression<double>
Read Only No
TotalPressureFrame
Select reference frame for total pressure
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
814 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
Option
Select total pressure reference frame among global and boundary frames.
Type Option
Read Only No
TransientScheme
Configure integration of transient terms in governing equations
Properties
TransientDefaultSetting
Type Option
Read Only No
TransientEquation
Read Only No
TransientSettings
Specifies how the Damping layer must behave.
Properties
AcousticsTransientScheme
Type Option
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 815
Study
FirstOrderExplicit
FirstOrderImplicit
SecondOrderExplicit
SecondOrderImplicit
Read Only No
IterationsPerTimeStep
Type int
Read Only No
TranslationVector
Set the translational offset of periodic interface.
Properties
SpecifiedTranslationVector
Type List<Expression<Quantity>>
Read Only No
Transmissivity
Set transmissivity parameters.
Properties
DiffuseHemispherical
Type Expression<Quantity>
Read Only No
DirectIR
Type Expression<Quantity>
Read Only No
DirectVisible
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
816 of ANSYS, Inc. and its subsidiaries and affiliates.
Type Expression<Quantity>
Read Only No
TurbSpeciesEnergyLESSettings
Configure constants for turbulence-energy species calculations
Properties
DynamicScalarFlux
Type bool
Read Only No
Turbulence
Configure Turbulence initial conditions.
Properties
HydraulicDiameter
Type Expression<Quantity>
Read Only No
LaminarKineticEnergy
Type Expression<Quantity>
Read Only No
MomentumThickness
Type Expression<Quantity>
Read Only No
Option
Type Option
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 817
Study
IntensityAndHydraulicDiameter
IntensityAndLengthScale
IntensityAndViscosityRatio
LowIntensityAndViscosityRatio
LowViscosityRatio
MediumIntensityAndViscosityRatio
MediumViscosityRatio
TransportVariables
ViscosityRatio
Read Only No
SubgridKineticEnergy
Type Expression<Quantity>
Read Only No
TurbulenceDissipationRate
Type Expression<Quantity>
Read Only No
TurbulenceEddyFrequency
Type Expression<Quantity>
Read Only No
TurbulenceIntensity
Type Expression<Quantity>
Read Only No
TurbulenceIntermittency
Type Expression<Quantity>
Read Only No
TurbulenceKineticEnergy
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
818 of ANSYS, Inc. and its subsidiaries and affiliates.
Type Expression<Quantity>
Read Only No
TurbulenceLengthScale
Type Expression<Quantity>
Read Only No
TurbulenceModifiedViscosity
Type Expression<Quantity>
Read Only No
TurbulenceViscosityRatio
Type Expression<Quantity>
Read Only No
Turbulence
Set turbulence related boundary conditions in the model.
Properties
HydraulicDiameter
Type Expression<Quantity>
Read Only No
LaminarKineticEnergy
Type Expression<Quantity>
Read Only No
NumberOfVortices
Type Expression<double>
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 819
Study
Read Only No
Option
Type Option
Read Only No
ReynoldsStresses
Type ReynoldsStresses
Read Only No
SyntheticInflowTurbulence
Type Option
Read Only No
TurbulenceDissipationRate
Type Expression<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
820 of ANSYS, Inc. and its subsidiaries and affiliates.
TurbulenceEddyFrequency
Type Expression<Quantity>
Read Only No
TurbulenceIntensity
Type Expression<Quantity>
Read Only No
TurbulenceKineticEnergy
Type Expression<Quantity>
Read Only No
TurbulenceLengthScale
Type Expression<Quantity>
Read Only No
TurbulenceModifiedViscosity
Type Expression<Quantity>
Read Only No
TurbulenceViscosityRatio
Type Expression<Quantity>
Read Only No
WallRoughness
Type WallRoughness
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 821
Study
TurbulenceEnergyInteraction
Configure Energy Model for turbulence interaction.
Properties
EnergyNearWallTreatment
Type EnergyNearWallTreatment
Read Only No
NearWallTreatmentThermalEffects
Type bool
Read Only No
TurbulenceEnergyInteractionConstants
Type TurbulenceEnergyInteractionConstants
Read Only No
TurbulenceEnergyInteractionConstants
Set turbulence energy interaction constants.
Properties
TurbulencePrandtlNumber
Type Expression<double>
Read Only No
WallPrandtlNumber
Type Expression<double>
Read Only No
TurbulenceEnergySpeciesInteraction
Set values for turbulence-energy species calculation
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
822 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
TurbSpeciesEnergyLESSettings
Type TurbSpeciesEnergyLESSettings
Read Only No
TurbulenceHybridSettings
Configure turbulence hybrid settings.
Properties
TurbulenceIntensity
Type Expression<Quantity>
Read Only No
TurbulenceViscosityRatio
Type Expression<Quantity>
Read Only No
UseAveragedQuantities
Type Option
Read Only No
TurbulenceModel
Configure Turbulence Model.
Properties
LowPressureBoundarySlip
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 823
Study
Read Only No
Option
Type Option
Read Only No
RANSModel
Type RANSModel
Read Only No
TurbulenceSpeciesInteraction
Set values for turbulent species calculation
Properties
TurbulenceSpeciesInteractionConstants
Type TurbulenceSpeciesInteractionConstants
Read Only No
TurbulenceSpeciesInteractionConstants
Configure constants for turbulent species calculations
Properties
TurbulenceSchmidtNumber
Type Expression<double>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
824 of ANSYS, Inc. and its subsidiaries and affiliates.
UserDefinedConvergence
Create user defined convergence.
Properties
Option
Type Option
Read Only No
Velocity
Allows to specify the velocity direction in different coordinate system.
Properties
CartesianVelocityComponents
Type List<Expression<Quantity>>
Read Only No
CylindricalVelocityComponents
Type List<Expression<Quantity>>
Read Only No
Option
Type Option
Read Only No
Velocity
Configure velocity specifications for the boundary.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 825
Study
Properties
Components
Type Components
Read Only No
GaugeStaticPressure
Type Expression<Quantity>
Read Only No
Magnitude
Type Expression<Quantity>
Read Only No
Option
Type Option
Read Only No
ViewFactors
Configure settings for computing the view factors.
Properties
Basis
Type Option
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
826 of ANSYS, Inc. and its subsidiaries and affiliates.
Method
Type Option
Read Only No
Parameters
Configure settings related to the hemicube and ray tracing methods for computing the view factors.
Type Parameters
Read Only No
Surfaces
Set Surface, the geometric orientation of surface pairs with respect to each other when using hemicube
method.
Type Option
Read Only No
ViewFactorsAndClustering
Configure parameters for surface clusters and view factors calculation.
Properties
Clustering
Type Clustering
Read Only No
FileName
Type string
Read Only No
ViewFactors
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 827
Study
Type ViewFactors
Read Only No
WallBoundary
Set boundary.
Properties
BoundaryLocations
Type List<string>
Read Only No
BoundaryReferenceFrame
Set the reference frame for boundary from (physics region or all available reference frames).
Type BoundaryReferenceFrame
Read Only No
BoundaryType
Type Option
Read Only No
Energy
Type Energy
Read Only No
Flow
Type Flow
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
828 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
ParticleBoundaryConditions
to be documented
Type ParticleBoundaryConditions
Read Only No
Radiation
Type Radiation
Read Only No
Regime
Type Regime
Read Only No
Turbulence
Type Turbulence
Read Only No
UserScalarBoundaryConditions
to be documented
Read Only No
UserVectorBoundaryConditions
to be documented
Read Only No
WallRoughness
Configure inputs for defining wall roughness in turbulent calculations.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 829
Study
Properties
Option
Type Option
Read Only No
RoughnessConstant
Type Expression<Quantity>
Read Only No
RoughnessHeight
Type Expression<Quantity>
Read Only No
WallThickness
Allows to choose between zero thickness wall or thick wall.
Properties
Thickness
Type Expression<Quantity>
Read Only No
WallMaterialName
Type DataObject
Read Only No
WallVelocity
Allows to choose between stationary or moving wall.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
830 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
MovingWall
Type MovingWall
Read Only No
Option
Type Option
Read Only No
Properties
No Properties.
Properties
Location
Type LocationSet
Read Only No
Connection
This is a class that is meant to define different kinds of connections like Contact, Joint, Spring, Beam
etc. via one of its behaviors when set Non creatable by a user.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 831
Study
Properties
Behavior
Type InterfaceBehavior
Read Only No
CreationMode
It tells if this connection was created automatically by the program or created manually by the user
Type ConnectionCreationMode
Read Only No
Location1
This is the first location of the connection. For contact, this normally refers to the source of the contact.
Type LocationSet
Read Only No
Location1Bodies
Type string
Location2
This is the second location of the connection. For contact, this normally refers to the target of the
contact.
Type LocationSet
Read Only No
Location2Bodies
Type string
ConnectionBehavior
ConnectionBehavior is an abstraction over all kinds of connection behaviors such as JointBehavior,
BeamBehavior, LinkBehavior, SpringBehavior and ContactBehavior.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
832 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
No Properties.
ConnectionStatisticalMeasures
This class represents the connection confidence percentage data. It get run-time added to an automatic
generated contacts whne the generate confidence setting is turned on.
Properties
PercentageConfidenceLevel
Type double
Constraint
Constraint is an abstraction over all the boundary condtions that provide known values and does not
require solution for a given location in the model such as Supports, Displacements, Rotations etc.
Properties
Location
Type LocationSet
Read Only No
ContactBehavior
ContactBehavior is ConnectionBehavior to model various kinds of contact behaviors available from
Mechanical Solvers such as contact types and their formulations.
Properties
ContactType
Type ContactType
Read Only No
ContactMaterialProperties
This is a class resposible for setting material properties at the contact interface. It is run-time added if
the contact is structure of thermal and formulation is not MPC.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 833
Study
Properties
No Properties.
ContactPinball
This is a class resposible for setting pinball value for contact detection.
Properties
DefineBy
This propertry decides whether it should use program controlled value or a manually entered factor or
value.
Type ValueDefineBy
Read Only No
Value
Type Expression<Quantity>
Read Only No
ContactProperties
This class defines contact properties that can change per contact pair such as Symmetry Behavior etc.
as exposed by Mechanical solvers.
Properties
SymmetryBehavior
Switch to turn on symmetric contact - Additional contact pair will be generated by swapping Location
1 and Location 2
Type SymmetryBehavior
Read Only No
ContactSubObject
This is the base class for pinball, penetration tolerance and the slip tolerance.
Properties
DefineBy
This propertry decides whether it should use program controlled value or a manually entered factor or
value.
Type ValueDefineBy
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
834 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
Value
Type Expression<Quantity>
Read Only No
Convection
Convection is a Scalar Load to precribe a given value of heat flux at a given location in a model in
thermal solutions.
Properties
AmbientTemperature
Type Expression<Quantity>
Read Only No
FilmCoefficientMatrix
Type ConvectionMatrixType
Read Only No
Location
Type LocationSet
Read Only No
Magnitude
Type Expression<Quantity>
Read Only No
Current
Current is a Scalar Load to precribe a given value of current at a given location in a model in electric
solutions.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 835
Study
Properties
Location
Type LocationSet
Read Only No
Magnitude
Type Expression<Quantity>
Read Only No
CutTolerance
It denotes the tolerance upto which nodes below the separation surface are considered to be above
the surface. It has an affect of shifting separation surface downwards by this distance.
Properties
Tolerance
Type Expression<Quantity>
Read Only No
ToleranceSpecification
Type BoltDefineBy
Read Only No
Displacement
Displacement is a Vector Constraint used to prescribe a given value of displacement at a given location
in the model
Properties
Location
Type LocationSet
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
836 of ANSYS, Inc. and its subsidiaries and affiliates.
ElectricConductance
This class represents the eletric conductance at the contact interface. It gets added when selected
physics includes electric and formulation is not MPC.
Properties
Conductance
Type Quantity
Read Only No
ConductanceControl
Type ConductanceControlType
Read Only No
Equipotential
This is a class that creates an equal voltage on the selection applied.
Properties
Location
Type LocationSet
Read Only No
Force
Force is a Vector Load to prescribe external force to a given model at a given location.
Properties
Location
Type LocationSet
Read Only No
HeatFlow
Heat Flow is a Scalar Load to precribe a given value of heat flow at a given location in a model in
thermal solutions.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 837
Study
Properties
Location
Type LocationSet
Read Only No
Magnitude
Type Expression<Quantity>
Read Only No
HeatFlux
Heat Flux is a Scalar Load to precribe a given value of heat flux at a given location in a model in thermal
solutions.
Properties
Location
Type LocationSet
Read Only No
Magnitude
Type Expression<Quantity>
Read Only No
HeatGeneration
Heat Generation is a Scalar Load to prescribe a uniform generation rate internal to a body.
Properties
Location
Type LocationSet
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
838 of ANSYS, Inc. and its subsidiaries and affiliates.
Magnitude
Type Expression<Quantity>
Read Only No
InertiaLoad
InertiaLoad is a Vector Load experienced by a body by the virtue of being in an accelerated reference
frame due to its mass properties. It can be prescribed via an Acceleration, Angular Velocity or Angular
Acceleration at a given location in the model.
Properties
LoadType
Load Type of Inertia Load such as Acceleration, Angular Velocity or Angular Acceleration.
Type VectorType
Read Only No
Location
Type LocationSet
Read Only No
InterfaceGenerator
InterfaceGenerator is class to define various settings for detection of Interface Conditions such a contacts.
Properties
ConnectionBehaviorCreation
It allows you to create one connection behavior and share it or create separate ones for each one of
searched interfaces.
Type InterfaceBehaviorCreation
Read Only No
GenerateFixedJoints
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 839
Study
GenerateRevoluteJoints
Type bool
Read Only No
InterfaceToleranceSpecification
It allows to let either program decides the tolerance value for you or you choose to input your own
tolerance value
Type InterfaceToleranceSpecification
Read Only No
InterfaceType
Type of inerfaces to be generated. Select from Contact, Joint and Mesh Interface.
Type InterfaceType
Read Only No
Location
Type LocationSet
Read Only No
Tolerance
Type Quantity
Read Only No
Load
Load is Boudary Condition to prescribe external load to a given location in a model. It is an abstraction
over scalar and vector loads.
Properties
Location
Type LocationSet
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
840 of ANSYS, Inc. and its subsidiaries and affiliates.
MechanicalPhysicsOptions
MechanicalPhysicsOptions is a class that represents various ways through which a physics option can
be applied to bodies. For example various stress states to be analyzed such as 3DStress State, Plane
Stress, Plane Strain, Axisymmetric, etc.
Properties
Location
Type LocationSet
Read Only No
UseInertialReferenceFrame
For Rigid bodies, control to model them using a single Inertial Frame or individual ones
Type bool
Read Only No
Moment
Moment is a vector load to prescribe an external moment load to a given location in a model.
Properties
Location
Type LocationSet
Read Only No
OutputControls
OutputControls is a class that specifes the list of output specifications(such as Deformation, Stress,
Strain) to control the "what" goes in result file. It also controls "how frequently" results are stored.
Properties
No Properties.
Pressure
Pressure is a scalar load to prescribe an external pressure to a given location(face or element faces) in
a model always in a direction normal to the location surface.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 841
Study
Properties
Location
Type LocationSet
Read Only No
Magnitude
Type Expression<Quantity>
Read Only No
Radiation
Radiation is a scalar load to prescribe an external Radiation to a given location in a model.
Properties
Emissivity
Type Quantity
Read Only No
Location
Type LocationSet
Read Only No
Magnitude
Type Expression<Quantity>
Read Only No
ScalarConstraint
ScalarConstraint is abstraction over constraints that are scalar by nature such as temperature in thermal
solutions or voltage in electric solutions
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
842 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
Location
Type LocationSet
Read Only No
Magnitude
Type Expression<Quantity>
Read Only No
ScalarLoad
ScalarLoad is abstraction over loads that are scalar by nature such as pressure Radiation etc.
Properties
Location
Type LocationSet
Read Only No
Magnitude
Type Expression<Quantity>
Read Only No
SolidModelingOptions
SolidModelingOptions is a class that encapsulates various advanced solver element formulations available
to users. Normally an end user never deals with them as solver defaults are good enough, but we do
offer a scheme to override it.
Properties
BrickIntegrationType
Type IntegrationType
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 843
Study
Support
Support is a constraint to precribe zero values to active degrees of freedom for a given model at a
given location.
Properties
FixedDOFs
Type String[]
Read Only No
Location
Type LocationSet
Read Only No
TemperatureCondition
Temperature Condition is scalar load to prescribe temperature to a given location(bodies or elements)
in a model in pure structural solutions.
Properties
Location
Type LocationSet
Read Only No
Magnitude
Type Expression<Quantity>
Read Only No
TemperatureConstraint
Temperature Constraint is a scalar constraint to precribe known value of temperature in solutions that
suppport thermal degrees of freedom.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
844 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
Location
Type LocationSet
Read Only No
Magnitude
Type Expression<Quantity>
Read Only No
ThermalConductance
This class represents the thermal conductance at the contact interface. It gets added when selected
physics includes thermal and formulation is not MPC.
Properties
Conductance
Type Quantity
Read Only No
ConductanceControl
Type ConductanceControlType
Read Only No
Vector
Vector is class used by all Boundary Conditions and Connection that support a Vector Behavior.
Properties
DefineBy
This property sets the type of vector specification which could be by Components or MagnitudeAndDir-
ection or NormalToSurface.
Type VectorDefineBy
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 845
Study
RelativeTo
Vector components or direction has been specified with respect to this reference frame.
Type ReferenceFrame
Read Only No
VectorByComponents
VectorByComponents is class to define a vector by Components.
Properties
Component1
The x component
Type Expression<Quantity>
Read Only No
Component2
The y component
Type Expression<Quantity>
Read Only No
Component3
The z component
Type Expression<Quantity>
Read Only No
CoordinateType
The type of coordinate system to be used which could be Cartesian or Cylindrical or Spherical.
Type TripletType
RelativeTo
Vector components has been specified with respect to this reference frame.
Type ReferenceFrame
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
846 of ANSYS, Inc. and its subsidiaries and affiliates.
VectorByGeometry
ByGeometry is class to define a vector using geometry.
Properties
Magnitude
Type Expression<Quantity>
Read Only No
VectorConstraint
A Vector Constraint is constraint that has an underneath vectors like Displacement, Velocity etc
Properties
Location
Type LocationSet
Read Only No
VectorLoad
VectorLoad is an abstraction over loads that are vector by nature such as Force, Moment, Traction etc.
Properties
Location
Type LocationSet
Read Only No
Voltage
Voltage is a scalar constraint to precribe known value of voltage in solutions that suppport electric de-
grees of freedom.
Properties
Location
Type LocationSet
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 847
Study
Read Only No
Magnitude
Type Expression<Quantity>
Read Only No
Properties
Tolerance
Type Quantity
Read Only No
Type
Trim Type to control trimming such as keeping it on, off or Program Controllled.
Type TrimType
Read Only No
ContactFormulation
ContactFormulation is a class to represents various contact formulations as available from MAPDL
solver
Properties
AutoAsymmetryBehavior
A flag to notify the program if auto-asymmetry should be used in the physics solution.
Type AutoAsymmetryBehavior
Read Only No
DetectionType
Specify the location of contact detection to be used in the analysis in order to obtain a good convergence.
Type ContactDetectionPoint
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
848 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
Formulation
Set the contact formulation to be used by the solver for a particular contact pair.
Type FormulationType
Read Only No
PhysicsSelection
Type ContactPhysicsSelection
Read Only No
PhysicsType
Type PhysicsType
Read Only No
GeneralSolutionControls
GeneralSolutionControls is Solver Settings class that allows defining some general solution controls
such as unit sytems, Equation solver types etc. as exposed by MAPDL solver.
Properties
LimitSearchToRange
Activate search to a given range of frequencies for frequency domain solutions as available from MAPDL
solver.
Type YesOrNo
Read Only No
MatrixSolver
Type EquationSolverType
Read Only No
MaxModesToFind
Maximum modes to find for modal solutions as available from MAPDL solver.
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 849
Study
Read Only No
RangeMaximum
A value of maximum frequency for frequency domain solutions with a given range as available from
MAPDL solver.
Type Quantity
Read Only No
RangeMinimum
A value of minimum frequency for frequency domain solutions with a given range as available from
MAPDL solver.
Type Quantity
Read Only No
SolverDamping
An enumeration for damped modal solver types as available from MAPDL solver.
Type DampedSolverType
Read Only No
SolverUnitSystem
Type string
Read Only No
MAPDLFunctionProvider
This is a class that implements MAPDL expressions like AllContacts() etc.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
MapdlLaunchControls
MapdlLaunchControls is class that allows defining solver launch controls such as Solver file directory,
various solver input file names as exposed by MAPDL solver.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
850 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
ComponentDataFileName
A name for auxiliary solver input file which contains all nodal and elemental components created in
MAPDL solution.
Type string
Read Only No
ConnectionElementsDataFileName
A name for auxiliary solver input file which contains all connection elements in MAPDL solution.
Type string
Read Only No
ContactPairOutput
Type ContactPairOutputYesNo
Read Only No
DeleteWorkFiles
Type YesOrNo
Read Only No
DistributedSolve
Type OnOffSwitch
Read Only No
InputDataFileName
A name for master solver input file which assembles all other auxiliary input files (MeshDataFileName,
ComponentDataFileName, etc.) for MAPDL Solver.
Type string
Read Only No
JobName
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 851
Study
Type string
Read Only No
LoadElementsDataFileName
A name for auxiliary solver input file which contains all load elements in MAPDL solution.
Type string
Read Only No
MeshDataFileName
A name for auxiliary solver input file which contains all mesh information(nodes and elements) for all
participating bodies in MAPDL solution.
Type string
Read Only No
NumberOfProcessors
Type uint
Read Only No
OutputListFileName
Type string
Read Only No
SolverFilesDirectory
Type string
SolverMode
Run the solver in batch mode just while solving or keep it live.
Type MAPDLSolverMode
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
852 of ANSYS, Inc. and its subsidiaries and affiliates.
OutputSpecification
OutputSpecification is a class that defines each individual item that can be controlled to be stored in
a result file such as Deformation, Stress or Strain.
Properties
EquallySpacedTimePoints
Type int
Read Only No
Frequency
Frequency of OutputSpecification, how often a given output type is written to result file
Type CalculationFrequency
Read Only No
Location
Type LocationSet
Read Only No
OutputType
Type OutputType
Read Only No
RecurrenceRate
RecurrenceRate of OutputSpecification
Type int
Read Only No
OutputSpecifications
OutputSpecifications is a class that is repository of individual OutputSpecification such as Deformation,
Stress or Strain.
Properties
No Properties.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 853
Study
ZeroThermalStrainTemperature
ZeroThermalStrainTemperature is a class that hold temperature at zero thermal strain.
Properties
Magnitude
Magnitude of ZeroThermalStrainTemperature
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
854 of ANSYS, Inc. and its subsidiaries and affiliates.
System Coupling
Methods
CreateDataTransfer
Creates a data transfer.
Type DataReference
Required Arguments
Type string
Optional Arguments
Type DataReference
Type DataReference
Type DataReference
Type DataReference
Type DataReference
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 855
System Coupling
Example
The following example demonstrates creation of a data transfer. It is assumed that user had created two
participants (e.g. Transient Structural and Fluid Flow(Fluent) and connected to System Coupling System.
System Coupling User's Guide in help documentation provides information on "Tutorial: Oscillating Plate
with Two-Way Fluid-Structure Interaction". The same information can be referred to see how two participants
can be setup and connect to System Coupling System.
ExportSCIFile
Writes the system coupling input file at the specified path.
Required Arguments
Type string
GetAnalysisSettings
Returns the analysis settings entity in a container.
Type DataReference
GetDataTransfer
Returns the data transfer of a given name in a container.
Type DataReference
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
856 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
GetDataTransfers
Returns the collection of data transfers in a container. If no data transfers are in the container, the col-
lection is empty.
Type DataReferenceSet
GetDebugOutputControls
Returns the debug output controls from a system coupling setup container.
Type DataReference
GetExpertSettings
Returns the expert settings entity from a system coupling setup container.
Type DataReference
GetIntermediateRestartDataOutputControls
Returns the intermediate result files output controls from a system coupling setup container. Renamed
from ResultFiles to RestartData to avoid confusion for MAPDL users.
Return Data reference of the intermediate result files output controls in the
container.
Type DataReference
GetParticipant
Returns the participant with a given name from a system coupling setup container.
Type DataReference
Required Arguments
Type string
GetParticipants
Returns the collection of participants in a container. If no participants are in the container, the collection
is empty.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 857
System Coupling
Type DataReferenceSet
GetSequenceControls
Returns the sequence controls from a system coupling setup container.
Type DataReference
ReadRestartPoints
Generates a list of restart points in analysis settings
Data Entities
AnalysisSettings
The entity to store the analysis settings for a coupling run.
Properties
AnalysisType
Type CoupledAnalysisType
Read Only No
DisableSolutionUpdate
This flag disables updates if restarts are not supported and solution data exists
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
DurationDefinedBy
This property specifies how we should determine the end of the coupling run.
Type DurationType
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
858 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
EndTime
Type Quantity
Read Only No
Initialization
Type InitializationType
Read Only No
MaximumIteration
The maximum number of iterations per coupling step for the coupling run.
Type int
Read Only No
MinimumIteration
The minimum number of iterations per coupling step for the coupling run.
Type int
Read Only No
NumberOfSteps
Type int
Read Only No
RestartStep
Type int
Read Only No
RestartTime
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 859
System Coupling
Read Only No
StepSize
Type Quantity
Read Only No
DataTransfer
Entity to store a data transfer information.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsSuppressed
Type bool
Read Only No
SourceParticipant
Type DataReference
Read Only No
SourceRegion
Type DataReference
Read Only No
SourceVariable
Type DataReference
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
860 of ANSYS, Inc. and its subsidiaries and affiliates.
TargetParticipant
Type DataReference
Read Only No
TargetRegion
Type DataReference
Read Only No
TargetVariable
Type DataReference
Read Only No
TransferSettings
Type DataReference
Read Only No
Methods
Delete
Duplicate
Type DataReference
GetSettings
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 861
System Coupling
SetSuppression
Required Arguments
Suppressed The boolean value to specify if the item should be suppressed or unsuppressed
Type bool
DataTransferSettings
Entity to store the settings for the data transfer control.
Properties
ConvergenceTarget
The target value used when evaluating convergence of the data transfer within a coupling iteration.
Type double
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Ramping
Type RampingType
Read Only No
TransferAt
Type TransferAtType
Read Only No
UnderRelaxationFactor
Type double
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
862 of ANSYS, Inc. and its subsidiaries and affiliates.
DebugOutputControls
Entity to store the debug level information for solution log.
Properties
AnalysisInitialization
This setting controls the level of output from the “Analysis Initialization” until the “Solution” synchron-
ization point.
Type DebugLevel
Read Only No
ConvergenceChecks
This setting controls the level of output from the “Check Convergence” synchronization point until the
next synchronization point, which may be either “Shutdown” or “Solution.”
Type DebugLevel
Read Only No
DataTransfersLevel
This setting provides the default level for the different kinds of debug output. If this entry is set and
another specific entry (e.g., SourceMeshCoords) also exists, then the output level for the specific entry
will override the level set here.
Type DebugLevel
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
GlobalLevel
This setting provides the default level for the different sections of debug output. If this entry is set and
another specific entry (e.g., Startup) also exists, then the output level for the specific entry will override
the level set here.
Type DebugLevel
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 863
System Coupling
ParticipantConnection
This setting controls the level of output from the end of the setup validation until the “Analysis Initaliz-
ation” synchronization point.
Type DebugLevel
Read Only No
Shutdown
This setting controls the level of output after the “Shutdown” synchronization point.
Type DebugLevel
Read Only No
SolutionInitialization
This setting controls the level of output during the setup of coupling steps and iterations. This output
does not include information related to the data transfers.
Type DebugLevel
Read Only No
SourceData
This setting controls the level of output for the source data in all data transfers.
Type DebugLevel
Read Only No
SourceMeshCoordinates
This setting controls the level of output for mesh coordinates of the source region in all data transfers.
Type DebugLevel
Read Only No
SourceMeshTopology
This setting controls the level of output for mesh topology (elements and nodes) of the source region
in all data transfers.
Type DebugLevel
Read Only No
Startup
This setting controls the level of output from the start of the coupling service until creation of the
“Summary of SC Setup” banner in the SCL file.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
864 of ANSYS, Inc. and its subsidiaries and affiliates.
Type DebugLevel
Read Only No
TargetData
This setting controls the level of output for the target data in all data transfers.
Type DebugLevel
Read Only No
TargetMeshCoordinates
This setting controls the level of output for mesh coordinates of the source region in all data transfers.
Type DebugLevel
Read Only No
TargetMeshTopology
This setting controls the level of output for mesh topology (elements and nodes) of the source region
in all data transfers.
Type DebugLevel
Read Only No
ExpertSettings
The entity to store advanced options for data mapping.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Settings
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 865
System Coupling
Methods
AddProperty
Required Arguments
Type string
GetProperty
Type string
Required Arguments
Type string
RemoveProperty
Required Arguments
Type string
SetProperty
Required Arguments
Type string
Type string
IntermediateResultFilesOutputControls
The entity to store the settings for result files creation during a coupling run.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
866 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
OutputFrequency
This property specifies the frequency at which the result files are generated.
Type OutputFrequencyType
Read Only No
StepInterval
Type int
Read Only No
SequenceControl
The entity to store solver sequence information for a coupling run.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Sequence
Read Only No
Methods
GetSequence
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 867
System Coupling
Type int
Required Arguments
Type DataReference
SetSequence
This command will set the sequence number for the specified participant.
Required Arguments
Type DataReference
Type int
SystemCouplingCoSimulationParticipant
This is a base class for the entity which represents System Coupling Co-simulation Participant information.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
InternalName
The internal name of the multiphysics participant (usually a solver) that is providing this data
Type string
Read Only No
SystemCouplingParticipant
This is a base class for the entity which represents System Coupling Participant information. System
Coupling Participant information comprises of System and solver-level information related to coupling.
Note- Coupling participants are systems that will provide and/or consume data in a coupled analysis.
Example systems in Workbench include: Analysis Systems – Steady-State Thermal, Transient Thermal,
Static Structural, Transient Structural, Fluid Flow (Fluent) Component Systems – Fluent, External Data
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
868 of ANSYS, Inc. and its subsidiaries and affiliates.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
InternalName
The internal name of the multiphysics participant (usually a solver) that is providing this data
Type string
Read Only No
SystemCouplingRegion
This entity represents a System Coupling Region. A region is most often a point, line, surface or volume
that is part (or all) of the geometry or topology of a coupling participant.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
InternalName
Type string
Read Only No
Topology
Type TopologyType
Read Only No
SystemCouplingStaticDataParticipant
This is a base class/entity for the entity which represents System Coupling Static Data Participant inform-
ation.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 869
System Coupling
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
InternalName
The internal name of the multiphysics participant (usually a solver) that is providing this data
Type string
Read Only No
SystemCouplingSteadyCoSimulationParticipant
The entity represents System Coupling Steady Co-simulation Participant information e.g. information
related to Static Structural Participant System for coupling purpose.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
InternalName
The internal name of the multiphysics participant (usually a solver) that is providing this data
Type string
Read Only No
SystemCouplingSteadyStaticDataParticipant
The entity represents System Coupling Steady Static Data Participant information e.g. information related
to External Data Participant System for coupling purposes.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
870 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Read Only No
InternalName
The internal name of the multiphysics participant (usually a solver) that is providing this data
Type string
Read Only No
SystemCouplingTransientCoSimulationParticipant
The entity represents System Coupling Transient Co-simulation Participant information e.g. information
related to Transient Structural Participant System for coupling purposes.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
InternalName
The internal name of the multiphysics participant (usually a solver) that is providing this data
Type string
Read Only No
SystemCouplingTransientStaticDataParticipant
The entity represents System Coupling Transient Static Data Participant information.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
InternalName
The internal name of the multiphysics participant (usually a solver) that is providing this data
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 871
System Coupling
Type string
Read Only No
SystemCouplingVariable
This entity represents a System Coupling Variable. A variable is a physical quantity such as force, length,
or temperature that can be transferred between regions of participant systems.
Properties
DataType
Type DataTypeEnumeration
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Exposure
Type VariableExposure
Read Only No
InternalName
Type string
Read Only No
PhysicalType
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
872 of ANSYS, Inc. and its subsidiaries and affiliates.
System Coupling Solution
This container holds Solution data for an instance of System Coupling.
Methods
CreateConvergenceChart
Creates a new convergence chart.
Type DataReference
Required Arguments
Type string
CreateSolutionInformation
Creates a new solution information entity and adds it to the specified system coupling solution container.
Type DataReference
Required Arguments
Type string
Type string
GetAllSolutionInformation
Returns the collection of solution information entities in a container. If no solution information entities
are in the container, the collection is empty.
Type DataReferenceSet
GetChartVariableNames
Returns a dictionary of fully qualified chart variable names and display names.
During System Coupling Solution cell Update or after Solution cell Update, these names can be used
to create chart variable using "CreateVariable" data entity method of "ConvergenceChart".
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 873
System Coupling
Return A dictionary of fully qualified chart variable names and display names
GetConvergenceChart
Returns the convergence chart of a given name in a container.
Type DataReference
Required Arguments
Type string
GetConvergenceCharts
Returns the collection of convergence charts in a container. If no convergence charts are in the container,
the collection is empty.
Type DataReferenceSet
GetSolutionComponentProperties
Returns the solution component properties for a system coupling solution container.
Type DataReference
GetSolutionInformation
Returns the solution information of a given name in a container.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
874 of ANSYS, Inc. and its subsidiaries and affiliates.
Return The solution information that matches the specified name.
Type DataReference
Required Arguments
Type string
Data Entities
AxisContinuous
A chart axis that spans a set of continuous values. An example is an axis of an XY plot
Properties
AutomaticRange
The property to define whether or not automatic scaling should be applied to the axis, or whether the
RangeMin and RangeMax should be used.
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
QuantityName
Type string
Read Only No
RangeMaximum
Type double
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 875
System Coupling
RangeMinimum
Type double
Read Only No
Scale
The scale of the axis. Scale can be defined as Linear/CommonLog (Log base 10)/Natural Log.
Type Scale
Read Only No
Title
Type string
Read Only No
ChartVariable
Entity representing a variable in Convergence Chart
Properties
Color
This property is valid only for the chart displayed in Scene View.
Type Color
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
LineWidth
The width of the line drawn for this chart variable in pixels.
This property is valid only for the chart displayed in Scene View.
Type float
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
876 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
QualifiedName
Type string
Read Only No
RefinementLevel
Type string
Read Only No
SymbolSize
The size of a symbol in pixels when a symbol is drawn for this variable. The rendered symbol size may
be slightly smaller or larger than expected if symbol does not correctly fit into the specified number of
pixels.
This property is valid only for the chart displayed in Scene View.
Type uint
Read Only No
Methods
Delete
ConvergenceChart
Entity to store a convergence chart information.
Properties
AxisX
Associated X Axis
Type DataReference
Read Only No
AxisY
Associated Y Axis
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 877
System Coupling
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Variables
Type DataReferenceSet
Read Only No
XAxis
Type string
Read Only No
Methods
CreateVariable
Creates a chart variable based on specified quailified name and adds it to the specified convergence
chart.
During System Coupling Solution cell Update or after Solution cell Update, user can create convergence
chart and add chart variables. A chart variable is based on specified fully qualified name. GetChartVari-
ableNames query returns a dictionary of fully qualified chart variable names and display names. This
can be used to create charts.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
878 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
Optional Arguments
Type string
Example
The following example demonstrates creation of chart variables. It is assumed that user has setup partcipants
(e.g. Transient Structural and Fluid Flow(Fluent) and System Coupling system, and also solved coupled
analysis.
Delete
GetAxis
Type DataReference
Required Arguments
Type string
GetChartVariable
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 879
System Coupling
Required Arguments
Type string
GetChartVariables
Type DataReferenceSet
SolutionComponentProperties
The entity to store additional command line options which are passed to the coupling service on update.
Properties
CommandLineOptions
Additional command line options which are passed to the coupling service on update.
Type string
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
SolutionInformation
Entity to store the solution information provided by the coupled participants.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
FilePath
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
880 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Read Only No
Methods
Delete
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 881
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
882 of ANSYS, Inc. and its subsidiaries and affiliates.
TurboSystems
Turbo Geometry
This container holds Geometry data for an instance of BladeGen.
Methods
CreateBladeMesh
Creates a new Mesh system and automatically meshes the fluid zone for the blade geometry from the
Blade Design component.
CreateGeometry
This command class creates a new BladeEditor model. An up-to-date Geometry cell appears on the
project schematic containing the new model.
Edit
Opens the BladeGen editor to allow modification of Blade Design data.
This command will open the editor only if one is not already open on this component. If this component's
editor is already open, then it will be raised to the front.
Exit
Exits the BladeGen editor.
Any changes made in this editor will be retained on exit. These changes are made permanent by a
Project Save, and will be discarded in the event of closing the project without saving. If no editor is
open on the component in question, this command will have no effect.
Optional Arguments
Type bool
GetTurboGeometryProperties
Returns the Data Entity which contains user settings and properties for the Blade Design container.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 883
TurboSystems
Type DataReference
Import
Imports blade geometry data into the BladeGen editor from an existing BladeGen file.
Required Arguments
Type string
Example
template1 = GetTemplate(TemplateName="BladeGen")
system1 = template1.CreateSystem()
bladeDesign1 = system1.GetContainer(ComponentName="Blade Design")
bladeDesign1.Import(FilePath="myfilepath/pump.bgd")
Data Entities
TurboGeometryProperties
This data entity provides access to the import properties that are used to determine how the blade
geometry is handled when it is transferred to a downstream Geometry cell.
Properties
BladeExt
Import Option that specifies the blade surface extension length (as a percentage of the average hub
to shroud distance) when the Blade Design data is transferred to a downstream Geometry. These surfaces
are extended and then trimmed to the MasterProfile sketch to ensure that the blade solid correctly
matches the hub and shroud contours.
Type double
Read Only No
BladeLoftOption
Import Option that specifies how to loft the blade surfaces when the Blade Design data is transferred
to a downstream Geometry.
Available options:
Type BladeLoftType
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
884 of ANSYS, Inc. and its subsidiaries and affiliates.
CreateAllBlades
Import Option that specifies whether to create one or all blades when the Blade Design data is transferred
to a downstream Geometry.
Available options:
Type bool
Read Only No
CreateFluidZone
Import Option that specifies whether to create the fluid zone body when the Blade Design data is
transferred to a downstream Geometry. The resulting Enclosure can be used for a CFD analysis of the
blade passage.
Available options:
Type bool
Read Only No
CreateHub
Import Option that specifies whether a hub body will be created when the Blade Design data is trans-
ferred to a downstream Geometry.
Available options:
Type bool
Read Only No
CreateNamedSelections
Import Option that specifies whether to create the Named Selections for the fluid zone when the Blade
Design data is transferred to a downstream Geometry. If this property is selected, then BladeEditor will
create Named Selections (regions) for the typical faces of the blade passage, i.e., Blade, Hub, Shroud,
Inflow, Outflow, PeriodicA and PeriodicB. These Named Selections can be used as selection groups in
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 885
TurboSystems
other ANSYS Workbench applications. Note that this property is available only if Create Fluid Zone is
selected.
Available options:
Type bool
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
LayerNumber
Import Option that specifies the integer value of the Layer Number to use for the shroud clearance
when the Blade Design data is transferred to a downstream Geometry. This property only applies when
the Shroud Clearance property is set to Relative Layer or Absolute Layer.
Type int
Read Only No
MachineType
Available options:
Pump
AxialCompressor
CentrifugalCompressor
Fan
AxialTurbine
RadialTurbine
HydraulicTurbine
Other
Unknown
Type MachineType
Read Only No
MergeBladeTopology
Import Option that specifies whether to merge the blade faces when the Blade Design data is transferred
to a downstream Geometry. If not merged, there will be four faces corresponding to the leading edge,
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
886 of ANSYS, Inc. and its subsidiaries and affiliates.
trailing edge, pressure and suction surfaces of the blade. If merged, blade faces that are tangent to one
another will be merged into a single face.
Available options:
Type bool
Read Only No
ModelUnits
THIS PROPERTY IS DEPRECATED IN WB16.0 AND IS RETAINED PURELY FOR BACKWARDS COMPATIBILITY.
The length scale units the BladeGen model was created in. Used when transfering the BladeGen model
to VistaTF.
Available options:
m
cm
mm
inches
ft
Type BMunitsType
Read Only No
PeriodicSurfExt
Import Option that defines the periodic surface extension length (as a percentage of the average hub
to shroud distance) when the Blade Design data is transferred to a downstream Geometry.
Type double
Read Only No
PeriodicSurfOption
Import Option that specifies the style of the periodic interface surfaces for the fluid zone when the
Blade Design data is transferred to a downstream Geometry. Note that this property is available only if
Create Fluid Zone is selected.
Available options:
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 887
TurboSystems
Type PeriodicSurfType
Read Only No
ShroudClearance
Import Option that specifies whether to include the shroud clearance when the Blade Design data is
transferred to a downstream Geometry.
Available options:
Type ClearanceType
Read Only No
SpanwiseCount
The number of spanwise gridlines used in the downstream VistaTF calculation. Default = 4
Type int
Read Only No
StreamwiseCount
The number of streamwise gridlines used in the downstream VistaTF calculation. Default = 20
Type int
Read Only No
Turbo Mesh
This container holds Mesh data for an instance of TurboGrid.
Methods
Edit
Opens the TurboGrid editor to allow modification of Turbo Mesh data.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
888 of ANSYS, Inc. and its subsidiaries and affiliates.
Optional Arguments
Interactive Run the editor in interactive mode if True, or in no GUI mode if False.
Type bool
TopologySuspended If True, open the editor with the topology in a suspended state. Otherwise, open
the editor with the suspended state of topology the same as when the editor was
last closed.
Type bool
Exit
Exits the editor.
Any changes made in this editor will be retained on exit. These changes are made permanent by a
Project Save, and will be discarded in the event of closing the project without saving.
If no editor is open on the component in question, this command will have no effect.
GetTurboMeshProperties
Returns the Data Entity which contains user settings and properties for the Turbo Mesh container.
Type DataReference
LoadBladeGen
This command imports the specified BladeGen INF file data into the Turbo Mesh cell. If an upstream
geometry link to the Turbo Mesh cell exists an error message is generated.
template1 = GetTemplate(TemplateName="TurboGrid")
system1 = template1.CreateSystem()
turboMesh1 = system1.GetContainer(ComponentName="Turbo Mesh")
turboMesh1.LoadBladeGen(FileName="myfilepath/BladeGen.inf")
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 889
TurboSystems
ReinitializeContainer
This command reinitialises the selected container, resetting the local data and using the cached initial-
isation CCL commands
SendCommand
Sends commands to the editor for this component using CFX Command Language (CCL) syntax. If the
editor for this component is not open, it will be launched before the commands are sent and sub-
sequently closed. In this mode, component data is loaded and saved as if calling Edit(Interactive=False)
and Exit around the SendCommand invocation.
The instructions must be CFX Command Language session commands that are valid for the editor in
question.
Required Arguments
SetInitCCL
Sets the initialisation commands for this component using CFX Command Language (CCL) syntax. On
setting the commands they may be applied to the editor in question using ApplyInitCCLCommand.
The instructions must be CFX Command Language session commands that are valid for the editor in
question.
Required Arguments
Data Entities
TurboMeshProperties
This data entity provides access to the properties that are used to determine which blade geometry to
mesh and how to handle the inlet and outlet positions.
Properties
AvailableFlowpaths
Displays a list of the available flowpaths and bladerows. Use this information as a guide when specifying
the Flowpath and Bladerow properties (described below). Use the Refresh command in the context
menu to update the list after linking.
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
890 of ANSYS, Inc. and its subsidiaries and affiliates.
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
DownstreamBladerowNumber
Specifies the bladerow number for the bladerow that is immediately downstream of the current bladerow.
This property is available only when Outlet Position Method is set to Adjacent Blade.
Type int
Read Only No
InletBlock
If this is checked then an inlet block will be generated, if possible, when the mesh is created.
Type bool
Read Only No
InletPositionOption
Specifies how the inlet points are positioned in TurboGrid. This property is only available when multiple
bladerows in the same flowpath have been exported from BladeEditor.
Available options:
Type OpeningPositionMethod
Read Only No
MaximumFaceAngle
This is the maximum face angle in the mesh if the mesh has been generated.
Type Quantity
Read Only No
MeshNamePrefix
If specified, this string will be prepended to all region names in the mesh when transferred to a CFX
system. This option is only available when Beta features are enabled.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 891
TurboSystems
Type string
Read Only No
MinimumFaceAngle
This is the minimum face angle in the mesh if the mesh has been generated.
Type Quantity
Read Only No
OutletBlock
If this is checked then an outlet block will be generated, if possible, when the mesh is created.
Type bool
Read Only No
OutletPositionOption
Specifies how the outlet points are positioned in TurboGrid. This property is only available when multiple
bladerows in the same flowpath have been exported from BladeEditor.
Available options:
Type OpeningPositionMethod
Read Only No
SelectedBladerowNum
Specifies which bladerow (within the specified Flowpath feature) is to be loaded in ANSYS TurboGrid.
The bladerows are number sequentially, starting from 1 for native Blade features.
Type int
Read Only No
SelectedFlowpathName
Specifies which Flowpath feature in BladeEditor contains the bladerow that is to be loaded in ANSYS
TurboGrid. On initial refresh, it will default to the first flowpath available.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
892 of ANSYS, Inc. and its subsidiaries and affiliates.
UpstreamBladerowNumber
Specifies the bladerow number for the bladerow that is immediately upstream of the current bladerow.
This property is available only when Inlet Position Method is set to Adjacent Blade.
Type int
Read Only No
Turbo Setup
This container holds data for an instance of Turbo Setup.
Methods
CreatePerformanceMap
This command class creates new Turbo Fluid Flow and Microsoft Excel systems. The new systems appear
on the project schematic. Appropriate parameters are exposed from the systems and linked. Design
points are then created from the speedlines data in the Turbo Setup.
CreateThroughflow
This command class creates a new VistaTF system. The system, comprising Setup, Solution and Results
cells, is created on the project schematic and the operating conditions set accordingly.
Type DataContainerReference
CreateTurboflow
This command class creates a new Turbomachinery Fluid Flow system. The new system appears on the
project schematic containing Turbo Mesh, Setup, Solution and Results cells. The Turbo Mesh and Setup
cells are initialised leaving the system ready to update.
Type DataReference
Edit
This command class launches the Turbo Setup popup GUI.
GetTurboSetupProperties
Returns the Data Entity which contains user settings and properties for the Turbo Setup container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 893
TurboSystems
Data Entities
TurboSetupProperties
This data entity provides access to the properties which define the Turbo Setup component.
Properties
Acentric
This property specifies the acentric factor for the working fluid. Note that this is only available when
MaterialPropsOption is set to 'User' and the GasModelOption is set to 'Real'.
Type float
Read Only No
Alpha3
This property specifies the flow angle at the inlet to the machine in the absolute reference frame.
Type Quantity
Read Only No
ComponentConfig
This property specifies the configuration of the components which the machine is comprised of.
Available options:
Type ComponentConfigType
Read Only No
Cp_A0
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the constant component (coefficient of T^0) of
the lower temperature range polynomial. Note that this is only available when MaterialPropsOption is
set to 'User' and the GasModelOption is set to 'Real'.
Type double
Read Only No
Cp_A1
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the coefficient of T^1 of the lower temperature
range polynomial. Note that this is only available when MaterialPropsOption is set to 'User' and the
GasModelOption is set to 'Real'.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
894 of ANSYS, Inc. and its subsidiaries and affiliates.
Type double
Read Only No
Cp_A2
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the coefficient of T^2 of the lower temperature
range polynomial. Note that this is only available when MaterialPropsOption is set to 'User' and the
GasModelOption is set to 'Real'.
Type double
Read Only No
Cp_A3
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the coefficient of T^3 of the lower temperature
range polynomial. Note that this is only available when MaterialPropsOption is set to 'User' and the
GasModelOption is set to 'Real'.
Type double
Read Only No
Cp_A4
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the coefficient of T^4 of the lower temperature
range polynomial. Note that this is only available when MaterialPropsOption is set to 'User' and the
GasModelOption is set to 'Real'.
Type double
Read Only No
Cp_Amax
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the maximum temperature limit for which the
lower temperature range polynomial is applicable. Note that this is only available when MaterialProp-
sOption is set to 'User' and the GasModelOption is set to 'Real'.
Type float
Read Only No
Cp_Amin
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the minimum temperature limit for which the
lower temperature range polynomial is applicable. Note that this is only available when MaterialProp-
sOption is set to 'User' and the GasModelOption is set to 'Real'.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 895
TurboSystems
Type float
Read Only No
CriticalPressure
This property specifies the critical pressure for the working fluid. Note that this is only available when
MaterialPropsOption is set to 'User' and the GasModelOption is set to 'Real'.
Type Quantity
Read Only No
CriticalTemp
This property specifies the critical temperature for the working fluid. Note that this is only available
when MaterialPropsOption is set to 'User' and the GasModelOption is set to 'Real'.
Type Quantity
Read Only No
CriticalVol
This property specifies the critical volume for the working fluid. Note that this is only available when
MaterialPropsOption is set to 'User' and the GasModelOption is set to 'Real'.
Type Quantity
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
GammaUser
This property specifies the ratio of specific heats for the working fluid. Note that this is only available
when MaterialPropsOption is set to 'User' and the GasModelOption is set to 'Ideal'.
Type float
Read Only No
GasModel
This property specifies whether to treat the working fluid as an Ideal or a Real gas.
Available options:
Ideal
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
896 of ANSYS, Inc. and its subsidiaries and affiliates.
Real
Type GasModelType
Read Only No
InputMethod1
This property specifies the input method used to set the mass flow rates for the speedline. The 'Range'
option indicates that the flow rates will be evenly distributed between the min and max flowrates. Al-
ternatively the 'Direct' option can be used to specify the values directly.
Available options:
Range
Direct
Type SpeedInputType
Read Only No
InputMethod10
This property specifies the input method used to set the mass flow rates for the speedline. The 'Range'
option indicates that the flow rates will be evenly distributed between the min and max flowrates. Al-
ternatively the 'Direct' option can be used to specify the values directly.
Available options:
Range
Direct
Type SpeedInputType
Read Only No
InputMethod2
This property specifies the input method used to set the mass flow rates for the speedline. The 'Range'
option indicates that the flow rates will be evenly distributed between the min and max flowrates. Al-
ternatively the 'Direct' option can be used to specify the values directly.
Available options:
Range
Direct
Type SpeedInputType
Read Only No
InputMethod3
This property specifies the input method used to set the mass flow rates for the speedline. The 'Range'
option indicates that the flow rates will be evenly distributed between the min and max flowrates. Al-
ternatively the 'Direct' option can be used to specify the values directly.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 897
TurboSystems
Available options:
Range
Direct
Type SpeedInputType
Read Only No
InputMethod4
This property specifies the input method used to set the mass flow rates for the speedline. The 'Range'
option indicates that the flow rates will be evenly distributed between the min and max flowrates. Al-
ternatively the 'Direct' option can be used to specify the values directly.
Available options:
Range
Direct
Type SpeedInputType
Read Only No
InputMethod5
This property specifies the input method used to set the mass flow rates for the speedline. The 'Range'
option indicates that the flow rates will be evenly distributed between the min and max flowrates. Al-
ternatively the 'Direct' option can be used to specify the values directly.
Available options:
Range
Direct
Type SpeedInputType
Read Only No
InputMethod6
This property specifies the input method used to set the mass flow rates for the speedline. The 'Range'
option indicates that the flow rates will be evenly distributed between the min and max flowrates. Al-
ternatively the 'Direct' option can be used to specify the values directly.
Available options:
Range
Direct
Type SpeedInputType
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
898 of ANSYS, Inc. and its subsidiaries and affiliates.
InputMethod7
This property specifies the input method used to set the mass flow rates for the speedline. The 'Range'
option indicates that the flow rates will be evenly distributed between the min and max flowrates. Al-
ternatively the 'Direct' option can be used to specify the values directly.
Available options:
Range
Direct
Type SpeedInputType
Read Only No
InputMethod8
This property specifies the input method used to set the mass flow rates for the speedline. The 'Range'
option indicates that the flow rates will be evenly distributed between the min and max flowrates. Al-
ternatively the 'Direct' option can be used to specify the values directly.
Available options:
Range
Direct
Type SpeedInputType
Read Only No
InputMethod9
This property specifies the input method used to set the mass flow rates for the speedline. The 'Range'
option indicates that the flow rates will be evenly distributed between the min and max flowrates. Al-
ternatively the 'Direct' option can be used to specify the values directly.
Available options:
Range
Direct
Type SpeedInputType
Read Only No
MassFlow
This property specifies the design point mass flow rate passing through the machine.
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 899
TurboSystems
MaterialNameSelection
This property specifies the name of the working fluid, as selected from the database. Note that this is
only available when the MaterialPropsOption is set to 'Database'.
Available options:
air
carbon_dioxide
hydrogen
methane
nitrogen
oxygen
parahydrogen
propylene
R123
R125
R134a
R141b
R142b
R245fa
water
Type MaterialNamesList
Read Only No
MaterialPropsOption
This property specifies whether the working fluid properties are chosen from the materials database or
specified directly by the user.
Available options:
Database
User
Type MaterialPropsType
Read Only No
MaxFlow1
Type Quantity
Read Only No
MaxFlow10
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
900 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
MaxFlow2
Type Quantity
Read Only No
MaxFlow3
Type Quantity
Read Only No
MaxFlow4
Type Quantity
Read Only No
MaxFlow5
Type Quantity
Read Only No
MaxFlow6
Type Quantity
Read Only No
MaxFlow7
Type Quantity
Read Only No
MaxFlow8
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 901
TurboSystems
Read Only No
MaxFlow9
Type Quantity
Read Only No
MeshNodeCount
This property specifies the target passage node count used with the ATM meshing scheme in TurboGrid
The minimum value for this property is 50,000 nodes
Type int
Read Only No
MinFlow1
Type Quantity
Read Only No
MinFlow10
Type Quantity
Read Only No
MinFlow2
Type Quantity
Read Only No
MinFlow3
Type Quantity
Read Only No
MinFlow4
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
902 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
MinFlow5
Type Quantity
Read Only No
MinFlow6
Type Quantity
Read Only No
MinFlow7
Type Quantity
Read Only No
MinFlow8
Type Quantity
Read Only No
MinFlow9
Type Quantity
Read Only No
MuUser
Type Quantity
Read Only No
NFlow1
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 903
TurboSystems
Read Only No
NFlow10
Type int
Read Only No
NFlow2
Type int
Read Only No
NFlow3
Type int
Read Only No
NFlow4
Type int
Read Only No
NFlow5
Type int
Read Only No
NFlow6
Type int
Read Only No
NFlow7
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
904 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
NFlow8
Type int
Read Only No
NFlow9
Type int
Read Only No
NSpeeds
Type int
Read Only No
Omega
This property specifies the design point rotational speed of the impeller.
Type Quantity
Read Only No
Omega1
Type int
Read Only No
Omega10
Type int
Read Only No
Omega2
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 905
TurboSystems
Read Only No
Omega3
Type int
Read Only No
Omega4
Type int
Read Only No
Omega5
Type int
Read Only No
Omega6
Type int
Read Only No
Omega7
Type int
Read Only No
Omega8
Type int
Read Only No
Omega9
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
906 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
Preswirl
This property specifies how the radial distribution of the preswirl angle is calculated.
Available options:
constant
free
forced
linear
Type PreswirlType
Read Only No
RotationalDirection
Available options:
Type RotationType
Read Only No
RUser
This property specifies the specific gas constant for the working fluid. Note that this is only available
when MaterialPropsOption is set to 'User'.
Type Quantity
Read Only No
Speed10MassFlow1
Type Quantity
Read Only No
Speed10MassFlow10
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 907
TurboSystems
Speed10MassFlow2
Type Quantity
Read Only No
Speed10MassFlow3
Type Quantity
Read Only No
Speed10MassFlow4
Type Quantity
Read Only No
Speed10MassFlow5
Type Quantity
Read Only No
Speed10MassFlow6
Type Quantity
Read Only No
Speed10MassFlow7
Type Quantity
Read Only No
Speed10MassFlow8
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
908 of ANSYS, Inc. and its subsidiaries and affiliates.
Speed10MassFlow9
Type Quantity
Read Only No
Speed1MassFlow1
Type Quantity
Read Only No
Speed1MassFlow10
Type Quantity
Read Only No
Speed1MassFlow2
Type Quantity
Read Only No
Speed1MassFlow3
Type Quantity
Read Only No
Speed1MassFlow4
Type Quantity
Read Only No
Speed1MassFlow5
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 909
TurboSystems
Speed1MassFlow6
Type Quantity
Read Only No
Speed1MassFlow7
Type Quantity
Read Only No
Speed1MassFlow8
Type Quantity
Read Only No
Speed1MassFlow9
Type Quantity
Read Only No
Speed2MassFlow1
Type Quantity
Read Only No
Speed2MassFlow10
Type Quantity
Read Only No
Speed2MassFlow2
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
910 of ANSYS, Inc. and its subsidiaries and affiliates.
Speed2MassFlow3
Type Quantity
Read Only No
Speed2MassFlow4
Type Quantity
Read Only No
Speed2MassFlow5
Type Quantity
Read Only No
Speed2MassFlow6
Type Quantity
Read Only No
Speed2MassFlow7
Type Quantity
Read Only No
Speed2MassFlow8
Type Quantity
Read Only No
Speed2MassFlow9
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 911
TurboSystems
Speed3MassFlow1
Type Quantity
Read Only No
Speed3MassFlow10
Type Quantity
Read Only No
Speed3MassFlow2
Type Quantity
Read Only No
Speed3MassFlow3
Type Quantity
Read Only No
Speed3MassFlow4
Type Quantity
Read Only No
Speed3MassFlow5
Type Quantity
Read Only No
Speed3MassFlow6
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
912 of ANSYS, Inc. and its subsidiaries and affiliates.
Speed3MassFlow7
Type Quantity
Read Only No
Speed3MassFlow8
Type Quantity
Read Only No
Speed3MassFlow9
Type Quantity
Read Only No
Speed4MassFlow1
Type Quantity
Read Only No
Speed4MassFlow10
Type Quantity
Read Only No
Speed4MassFlow2
Type Quantity
Read Only No
Speed4MassFlow3
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 913
TurboSystems
Speed4MassFlow4
Type Quantity
Read Only No
Speed4MassFlow5
Type Quantity
Read Only No
Speed4MassFlow6
Type Quantity
Read Only No
Speed4MassFlow7
Type Quantity
Read Only No
Speed4MassFlow8
Type Quantity
Read Only No
Speed4MassFlow9
Type Quantity
Read Only No
Speed5MassFlow1
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
914 of ANSYS, Inc. and its subsidiaries and affiliates.
Speed5MassFlow10
Type Quantity
Read Only No
Speed5MassFlow2
Type Quantity
Read Only No
Speed5MassFlow3
Type Quantity
Read Only No
Speed5MassFlow4
Type Quantity
Read Only No
Speed5MassFlow5
Type Quantity
Read Only No
Speed5MassFlow6
Type Quantity
Read Only No
Speed5MassFlow7
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 915
TurboSystems
Speed5MassFlow8
Type Quantity
Read Only No
Speed5MassFlow9
Type Quantity
Read Only No
Speed6MassFlow1
Type Quantity
Read Only No
Speed6MassFlow10
Type Quantity
Read Only No
Speed6MassFlow2
Type Quantity
Read Only No
Speed6MassFlow3
Type Quantity
Read Only No
Speed6MassFlow4
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
916 of ANSYS, Inc. and its subsidiaries and affiliates.
Speed6MassFlow5
Type Quantity
Read Only No
Speed6MassFlow6
Type Quantity
Read Only No
Speed6MassFlow7
Type Quantity
Read Only No
Speed6MassFlow8
Type Quantity
Read Only No
Speed6MassFlow9
Type Quantity
Read Only No
Speed7MassFlow1
Type Quantity
Read Only No
Speed7MassFlow10
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 917
TurboSystems
Speed7MassFlow2
Type Quantity
Read Only No
Speed7MassFlow3
Type Quantity
Read Only No
Speed7MassFlow4
Type Quantity
Read Only No
Speed7MassFlow5
Type Quantity
Read Only No
Speed7MassFlow6
Type Quantity
Read Only No
Speed7MassFlow7
Type Quantity
Read Only No
Speed7MassFlow8
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
918 of ANSYS, Inc. and its subsidiaries and affiliates.
Speed7MassFlow9
Type Quantity
Read Only No
Speed8MassFlow1
Type Quantity
Read Only No
Speed8MassFlow10
Type Quantity
Read Only No
Speed8MassFlow2
Type Quantity
Read Only No
Speed8MassFlow3
Type Quantity
Read Only No
Speed8MassFlow4
Type Quantity
Read Only No
Speed8MassFlow5
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 919
TurboSystems
Speed8MassFlow6
Type Quantity
Read Only No
Speed8MassFlow7
Type Quantity
Read Only No
Speed8MassFlow8
Type Quantity
Read Only No
Speed8MassFlow9
Type Quantity
Read Only No
Speed9MassFlow1
Type Quantity
Read Only No
Speed9MassFlow10
Type Quantity
Read Only No
Speed9MassFlow2
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
920 of ANSYS, Inc. and its subsidiaries and affiliates.
Speed9MassFlow3
Type Quantity
Read Only No
Speed9MassFlow4
Type Quantity
Read Only No
Speed9MassFlow5
Type Quantity
Read Only No
Speed9MassFlow6
Type Quantity
Read Only No
Speed9MassFlow7
Type Quantity
Read Only No
Speed9MassFlow8
Type Quantity
Read Only No
Speed9MassFlow9
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 921
TurboSystems
StagPressure
This property specifies the design point stagnation pressure, P01, at the inlet to the machine.
Type Quantity
Read Only No
StagTemp
This property specifies the design point stagnation temperature, T01, at the inlet to the machine.
Type Quantity
Read Only No
Methods
CreateBladeDesign
This command class creates a new BladeGen model. An up-to-date BladeGen cell appears on the project
schematic containing the new model.
Type DataContainerReference
CreateGeometry
This command class creates a new BladeEditor model. An up-to-date Geometry cell appears on the
project schematic containing the new model.
Type DataContainerReference
Edit
This command class launches the Vista popup GUI.
GetVistaAFDAnalysisProperties
This query takes a container reference and returns the Data Entity which contains user settings and
properties for the VistaAFD Analysis container.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
922 of ANSYS, Inc. and its subsidiaries and affiliates.
Data Entities
VistaAFDAnalysis
Analysis represents a VistaAFD throughflow calculation used to analyse the design performance
Properties
Alpha1
Type Quantity
Read Only No
Alpha3
Type Quantity
Read Only No
AlphaOGVHub
Type Quantity
Read Only No
AlphaOGVMean
Type Quantity
Read Only No
AlphaRotHub
Type Quantity
Read Only No
AlphaRotMean
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 923
TurboSystems
Blade
Type int
Read Only No
BladeBetaExit
Type List<List<float>>
Read Only No
BladeBetaInlet
Type List<List<float>>
Read Only No
BladeOption
Type BladeType
Read Only No
BMunits
BladeGen/BladeEditor units
Type string
Read Only No
BMunitsOption
Type BMunitsType
Read Only No
DeHallerOGVHub
Type float
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
924 of ANSYS, Inc. and its subsidiaries and affiliates.
DeHallerOGVMean
Type float
Read Only No
DeHallerRotHub
Type float
Read Only No
DeHallerRotMean
Type float
Read Only No
DevIGVHub
Type Quantity
Read Only No
DevIGVMean
Type Quantity
Read Only No
DevOGVHub
Type Quantity
Read Only No
DevOGVMean
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 925
TurboSystems
DevRotHub
Type Quantity
Read Only No
DevRotMean
Type Quantity
Read Only No
DfOGVHub
Type float
Read Only No
DfOGVMean
Type float
Read Only No
DfRotHub
Type float
Read Only No
DfRotMean
Type float
Read Only No
Diameter
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
926 of ANSYS, Inc. and its subsidiaries and affiliates.
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Eta
Aerodynamic efficiency
Type float
Read Only No
EtaInput
Type float
Read Only No
EtaTS
Type float
Read Only No
EtaTSPipe
Type float
Read Only No
EtaTT
Type float
Read Only No
HeadRise
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 927
TurboSystems
HtrIn
Type float
Read Only No
HtrOut
Type float
Read Only No
HubLoadParam
Type float
Read Only No
HubVelFactor
Type float
Read Only No
HubX
Type List<Quantity>
Read Only No
HubY
Type List<Quantity>
Read Only No
IGV
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
928 of ANSYS, Inc. and its subsidiaries and affiliates.
IGVhubThickX
Type List<float>
Read Only No
IGVhubThickY
Type List<Quantity>
Read Only No
IGVleadingX
Type List<Quantity>
Read Only No
IGVleadingY
Type List<Quantity>
Read Only No
IGVshrThickX
Type List<float>
Read Only No
IGVshrThickY
Type List<Quantity>
Read Only No
IGVthetaLE
Type List<float>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 929
TurboSystems
IGVtrailingX
Type List<Quantity>
Read Only No
IGVtrailingY
Type List<Quantity>
Read Only No
ImperialUnits
Type bool
Read Only No
InnerIter
Type int
Read Only No
Layer1
Type bool
Read Only No
Layer2
Type bool
Read Only No
Layer3
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
930 of ANSYS, Inc. and its subsidiaries and affiliates.
LoadHub
Type float
Read Only No
LoadMean
Type float
Read Only No
MassFlow
Type Quantity
Read Only No
MaxLoadHub
Type float
Read Only No
MaxLoadMean
Type float
Read Only No
MixLoss
Type float
Read Only No
NMain
Type List<int>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 931
TurboSystems
OGV
Type bool
Read Only No
OGVhubThickX
Type List<float>
Read Only No
OGVhubThickY
Type List<Quantity>
Read Only No
OGVleadingX
Type List<Quantity>
Read Only No
OGVleadingY
Type List<Quantity>
Read Only No
OGVshrThickX
Type List<float>
Read Only No
OGVshrThickY
Type List<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
932 of ANSYS, Inc. and its subsidiaries and affiliates.
OGVthetaLE
Type List<float>
Read Only No
OGVtrailingX
Type List<Quantity>
Read Only No
OGVtrailingY
Type List<Quantity>
Read Only No
Omega
Type Quantity
Read Only No
OuterIter
Type int
Read Only No
Pdyn
Type Quantity
Read Only No
PdynPipe
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 933
TurboSystems
PhiHub
Type float
Read Only No
PhiMean
Type float
Read Only No
Power
Power
Type Quantity
Read Only No
RatioIGV
Type float
Read Only No
RatioOGV
Type float
Read Only No
RatioRotor
Type float
Read Only No
RotorHubThickX
Type List<float>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
934 of ANSYS, Inc. and its subsidiaries and affiliates.
RotorHubThickY
Type List<Quantity>
Read Only No
RotorLeadingX
Type List<Quantity>
Read Only No
RotorLeadingY
Type List<Quantity>
Read Only No
RotorShrThickX
Type List<float>
Read Only No
RotorShrThickY
Type List<Quantity>
Read Only No
RotorThetaLE
Type List<float>
Read Only No
RotorTrailingX
Type List<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 935
TurboSystems
RotorTrailingY
Type List<Quantity>
Read Only No
Sc90MaxIter
Type int
Read Only No
Sc90Relax
Type float
Read Only No
Sc90Tol
Type float
Read Only No
ShrX
Type List<Quantity>
Read Only No
ShrY
Type List<Quantity>
Read Only No
SIunits
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
936 of ANSYS, Inc. and its subsidiaries and affiliates.
Span
Spanwise fractions
Type List<float>
Read Only No
StagPressure
Type Quantity
Read Only No
StagTemp
Type Quantity
Read Only No
Torque
Torque
Type Quantity
Read Only No
TrimIGV
Type float
Read Only No
TrimOGV
Type float
Read Only No
TrimRotor
Type float
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 937
TurboSystems
VanesIGV
Type int
Read Only No
VanesOGV
Type int
Read Only No
VanesRotor
Type int
Read Only No
VistaAFDTitle
Editor Title
Type string
Read Only No
Methods
CreateBladeDesign
This command class creates a new BladeGen model. An up-to-date BladeGen cell appears on the project
schematic containing the new model.
Type DataContainerReference
CreateGeometry
This command class creates a new BladeEditor model. An up-to-date Geometry cell appears on the
project schematic containing the new model.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
938 of ANSYS, Inc. and its subsidiaries and affiliates.
Type DataContainerReference
Edit
This command class launches the Vista popup GUI.
GetVistaAFDDesignProperties
This query takes a container reference and returns the Data Entity which contains user settings and
properties for the VistaAFD Design container.
Type DataReference
Data Entities
VistaAFDDesign
Design represents a VistaAFD throughflow calculation used to define the blade profiles
Properties
Alpha1
Type Quantity
Read Only No
Alpha3
Type Quantity
Read Only No
AlphaOGVHub
Type Quantity
Read Only No
AlphaOGVMean
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 939
TurboSystems
AlphaRotHub
Type Quantity
Read Only No
AlphaRotMean
Type Quantity
Read Only No
Blade
Type int
Read Only No
BladeBetaExit
Type List<List<float>>
Read Only No
BladeBetaInlet
Type List<List<float>>
Read Only No
BladeOption
Type BladeType
Read Only No
BMunits
BladeGen/BladeEditor units
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
940 of ANSYS, Inc. and its subsidiaries and affiliates.
BMunitsOption
Type BMunitsType
Read Only No
DeHallerOGVHub
Type float
Read Only No
DeHallerOGVMean
Type float
Read Only No
DeHallerRotHub
Type float
Read Only No
DeHallerRotMean
Type float
Read Only No
DevIGVHub
Type Quantity
Read Only No
DevIGVMean
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 941
TurboSystems
DevOGVHub
Type Quantity
Read Only No
DevOGVMean
Type Quantity
Read Only No
DevRotHub
Type Quantity
Read Only No
DevRotMean
Type Quantity
Read Only No
DfOGVHub
Type float
Read Only No
DfOGVMean
Type float
Read Only No
DfRotHub
Type float
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
942 of ANSYS, Inc. and its subsidiaries and affiliates.
DfRotMean
Type float
Read Only No
Diameter
Type Quantity
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Eta
Aerodynamic efficiency
Type float
Read Only No
EtaInput
Type float
Read Only No
EtaTS
Type float
Read Only No
EtaTSPipe
Type float
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 943
TurboSystems
EtaTT
Type float
Read Only No
HeadRise
Type Quantity
Read Only No
HtrIn
Type float
Read Only No
HtrOut
Type float
Read Only No
HubLoadParam
Type float
Read Only No
HubVelFactor
Type float
Read Only No
HubX
Type List<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
944 of ANSYS, Inc. and its subsidiaries and affiliates.
HubY
Type List<Quantity>
Read Only No
IGV
Type bool
Read Only No
IGVhubThickX
Type List<float>
Read Only No
IGVhubThickY
Type List<Quantity>
Read Only No
IGVleadingX
Type List<Quantity>
Read Only No
IGVleadingY
Type List<Quantity>
Read Only No
IGVshrThickX
Type List<float>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 945
TurboSystems
IGVshrThickY
Type List<Quantity>
Read Only No
IGVthetaLE
Type List<float>
Read Only No
IGVtrailingX
Type List<Quantity>
Read Only No
IGVtrailingY
Type List<Quantity>
Read Only No
ImperialUnits
Type bool
Read Only No
InnerIter
Type int
Read Only No
Layer1
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
946 of ANSYS, Inc. and its subsidiaries and affiliates.
Layer2
Type bool
Read Only No
Layer3
Type bool
Read Only No
LoadHub
Type float
Read Only No
LoadMean
Type float
Read Only No
MassFlow
Type Quantity
Read Only No
MaxLoadHub
Type float
Read Only No
MaxLoadMean
Type float
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 947
TurboSystems
MixLoss
Type float
Read Only No
NMain
Type List<int>
Read Only No
OGV
Type bool
Read Only No
OGVhubThickX
Type List<float>
Read Only No
OGVhubThickY
Type List<Quantity>
Read Only No
OGVleadingX
Type List<Quantity>
Read Only No
OGVleadingY
Type List<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
948 of ANSYS, Inc. and its subsidiaries and affiliates.
OGVshrThickX
Type List<float>
Read Only No
OGVshrThickY
Type List<Quantity>
Read Only No
OGVthetaLE
Type List<float>
Read Only No
OGVtrailingX
Type List<Quantity>
Read Only No
OGVtrailingY
Type List<Quantity>
Read Only No
Omega
Type Quantity
Read Only No
OuterIter
Type int
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 949
TurboSystems
Pdyn
Type Quantity
Read Only No
PdynPipe
Type Quantity
Read Only No
PhiHub
Type float
Read Only No
PhiMean
Type float
Read Only No
Power
Power
Type Quantity
Read Only No
RatioIGV
Type float
Read Only No
RatioOGV
Type float
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
950 of ANSYS, Inc. and its subsidiaries and affiliates.
RatioRotor
Type float
Read Only No
RotorHubThickX
Type List<float>
Read Only No
RotorHubThickY
Type List<Quantity>
Read Only No
RotorLeadingX
Type List<Quantity>
Read Only No
RotorLeadingY
Type List<Quantity>
Read Only No
RotorShrThickX
Type List<float>
Read Only No
RotorShrThickY
Type List<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 951
TurboSystems
RotorThetaLE
Type List<float>
Read Only No
RotorTrailingX
Type List<Quantity>
Read Only No
RotorTrailingY
Type List<Quantity>
Read Only No
Sc90MaxIter
Type int
Read Only No
Sc90Relax
Type float
Read Only No
Sc90Tol
Type float
Read Only No
ShrX
Type List<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
952 of ANSYS, Inc. and its subsidiaries and affiliates.
ShrY
Type List<Quantity>
Read Only No
SIunits
Type bool
Read Only No
Span
Spanwise fractions
Type List<float>
Read Only No
StagPressure
Type Quantity
Read Only No
StagTemp
Type Quantity
Read Only No
Torque
Torque
Type Quantity
Read Only No
TrimIGV
Type float
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 953
TurboSystems
TrimOGV
Type float
Read Only No
TrimRotor
Type float
Read Only No
VanesIGV
Type int
Read Only No
VanesOGV
Type int
Read Only No
VanesRotor
Type int
Read Only No
VistaAFDTitle
Editor Title
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
954 of ANSYS, Inc. and its subsidiaries and affiliates.
Vista AFD Meanline
This container holds Meanline data for an instance of Vista AFD.
Methods
Edit
This command class launches the Vista popup GUI.
GetVistaAFDMeanlineProperties
This query takes a container reference and returns the Data Entity which contains user settings and
properties for the VistaAFD Meanline container.
Type DataReference
Import
This command imports Vista data into the Blade Design cell from an existing BladeGen file. If no appro-
priate Vista data is found in the specified BladeGen file, an error message is generated.
template1 = GetTemplate(TemplateName="VistaCPD")
system1 = template1.CreateSystem()
bladeDesign1 = system1.GetContainer(ComponentName="Blade Design")
bladeDesign1.Import(FilePath="myfilepath/pump.bgd")
Required Arguments
Type string
Data Entities
VistaAFDMeanline
Meanline represents a VistaAFD meanline calculation as an initial 1D design
Properties
Alpha1
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 955
TurboSystems
Alpha3
Type Quantity
Read Only No
AlphaOGVHub
Type Quantity
Read Only No
AlphaOGVMean
Type Quantity
Read Only No
AlphaRotHub
Type Quantity
Read Only No
AlphaRotMean
Type Quantity
Read Only No
DeHallerOGVHub
Type float
Read Only No
DeHallerOGVMean
Type float
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
956 of ANSYS, Inc. and its subsidiaries and affiliates.
DeHallerRotHub
Type float
Read Only No
DeHallerRotMean
Type float
Read Only No
Diameter
Type Quantity
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Eta
Aerodynamic efficiency
Type float
Read Only No
EtaInput
Type float
Read Only No
EtaTS
Type float
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 957
TurboSystems
EtaTSPipe
Type float
Read Only No
EtaTT
Type float
Read Only No
HeadRise
Type Quantity
Read Only No
HtrIn
Type float
Read Only No
HtrOut
Type float
Read Only No
HubLoadParam
Type float
Read Only No
HubVelFactor
Type float
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
958 of ANSYS, Inc. and its subsidiaries and affiliates.
HubX
Type List<Quantity>
Read Only No
HubY
Type List<Quantity>
Read Only No
IGV
Type bool
Read Only No
ImperialUnits
Type bool
Read Only No
LoadHub
Type float
Read Only No
LoadMean
Type float
Read Only No
MassFlow
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 959
TurboSystems
MaxLoadHub
Type float
Read Only No
MaxLoadMean
Type float
Read Only No
MixLoss
Type float
Read Only No
OGV
Type bool
Read Only No
Omega
Type Quantity
Read Only No
Pdyn
Type Quantity
Read Only No
PdynPipe
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
960 of ANSYS, Inc. and its subsidiaries and affiliates.
PhiHub
Type float
Read Only No
PhiMean
Type float
Read Only No
Power
Power
Type Quantity
Read Only No
RatioIGV
Type float
Read Only No
RatioOGV
Type float
Read Only No
RatioRotor
Type float
Read Only No
ShrX
Type List<Quantity>
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 961
TurboSystems
ShrY
Type List<Quantity>
Read Only No
SIunits
Type bool
Read Only No
StagPressure
Type Quantity
Read Only No
StagTemp
Type Quantity
Read Only No
Torque
Torque
Type Quantity
Read Only No
TrimIGV
Type float
Read Only No
TrimOGV
Type float
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
962 of ANSYS, Inc. and its subsidiaries and affiliates.
TrimRotor
Type float
Read Only No
VanesIGV
Type int
Read Only No
VanesOGV
Type int
Read Only No
VanesRotor
Type int
Read Only No
VistaAFDTitle
Editor Title
Type string
Read Only No
Vista CCD
This container holds Analysis data for an instance of Vista CCD.
Methods
CreateBladeDesign
This command class creates a new BladeGen model. An up-to-date BladeGen cell appears on the project
schematic containing the new model.
Type DataContainerReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 963
TurboSystems
CreateGeometry
This command class creates a new BladeEditor model. An up-to-date Geometry cell appears on the
project schematic containing the new model.
Type DataContainerReference
CreateTF
This command class creates a new Turbo Setup system, a new geometry component (BladeGen or
BladeEditor) and a Vista TF system. The geometry and Vista TF systems are linked appropriately and
inputs populated appropriately ready for update.
Optional Arguments
Type bool
CreateThroughflow
This command class creates a new throughflow system. The system, comprising Geometry, Setup,
Solution and Results cells, is created on the project schematic and is updated performing the throughflow
analysis automatically.
Optional Arguments
Type bool
CreateTurboflow
This command class creates new Turbo Setup, Geometry (BladeGen or BladeEditor) and Turbomachinery
Fluid Flow systems. The new systems appear on the project schematic. The Turbo Setup and Geometry
components are updated. The Turbo Fluid Flow system components are initialised and the Turbo Mesh
component is connected to the upstream Geometry.
Optional Arguments
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
964 of ANSYS, Inc. and its subsidiaries and affiliates.
CreateTurboSetup
This command class creates a new Turbo Setup system. The Turbo Setup is populated with data from
the Vista Tools component it's launched from
Type DataContainerReference
Edit
This command class launches the Vista popup GUI.
GetVistaCCDBladeDesignProperties
This query takes a container reference and returns the Data Entity which contains user settings and
properties for the VistaCCD Blade Design container.
Type DataReference
Import
This command imports Vista data into the Blade Design cell from an existing BladeGen file. If no appro-
priate Vista data is found in the specified BladeGen file, an error message is generated.
template1 = GetTemplate(TemplateName="VistaCPD")
system1 = template1.CreateSystem()
bladeDesign1 = system1.GetContainer(ComponentName="Blade Design")
bladeDesign1.Import(FilePath="myfilepath/pump.bgd")
Required Arguments
Type string
Data Entities
VistaCCDBladeDesign
This data entity provides access to the properties which define the VistaCCD project. This includes both
the input and the results properties.
Properties
Acentric
This property specifies the acentric factor for the working fluid. Note that this is only available when
MaterialPropsOption is set to 'User' and the GasModelOption is set to 'Real'.
Type float
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 965
TurboSystems
Alpha3
This property specifies the flow angle at the impeller inlet in the absolute reference frame.
Type Quantity
Read Only No
Alpha5rms
This property reports the absolute flow angle at the impeller trailing edge.
Type Quantity
Read Only No
AnChkRatio
Type float
Read Only No
B5
This property reports the axial distance between hub and shroud at the impeller trailing edge (tip width).
Type Quantity
Read Only No
Beta5rms
This property reports the relative flow angle at the impeller trailing edge.
Type Quantity
Read Only No
BetaBlade3HubUser
This property specifies the hub leading edge blade angle. Note that this is NOT available when the
StackingOption is set to 'Radial'.
Type Quantity
Read Only No
BetaBlade3ShrUser
This property specifies the impeller shroud leading edge blade angle. Note that this is only available
when the ShroudDiameterOption is set to 'Angle'.
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
966 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
BetaBlade5
Type Quantity
Read Only No
BetaBladeLEhub
This property reports the blade angle at the impeller leading edge hub location.
Type Quantity
Read Only No
BetaBladeLErms
This property reports the blade angle at the impeller leading edge meanline location.
Type Quantity
Read Only No
BetaBladeLEshr
This property reports the blade angle at the impeller leading edge shroud location.
Type Quantity
Read Only No
BetaLEhub
This property reports the relative flow angle at the impeller leading edge hub location.
Type Quantity
Read Only No
BetaLErms
This property reports the relative flow angle at the impeller leading edge meanline location.
Type Quantity
Read Only No
BetaLEshr
This property reports the relative flow angle at the impeller leading edge shroud location.
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 967
TurboSystems
Read Only No
BMunitsOption
This property specifies the units used when creating a new BladeGen/BladeEditor model. Note that this
is independent of the units used in the VistaCCD popup GUI.
Available options:
mm
cm
inches
ft
m
Type BMunitsType
Read Only No
ChkRatio
Type float
Read Only No
ChokeUser
This property specifies the impeller choke ratio. Note that this is only available when the IncidenceOption
is set to 'choke'.
Type float
Read Only No
ClearanceOption
This property specifies impeller tip clearance is specified. 'Ratio' indicates that the tip clearance is specified
as a fraction of the tip width 'User' specifies that the clearance will be defined directly by the user.
Available options:
Ratio
User
Type ClearanceType
Read Only No
ClearRatio
This property reports the axial tip clearance ratio of the impeller.
Type float
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
968 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
ClearRatioUser
This property specifies the ratio of the impeller tip clearance to the tip width. Note that this is only
available when ClearanceOption is set to 'Ratio'.
Type float
Read Only No
ClearUser
This property specifies the value of the impeller tip clearance. Note that this is only available when
ClearanceOption is set to 'User'.
Type Quantity
Read Only No
CorrelationOption
This property specifies the correlation used to calculate the stage efficiency. Note that this is only
available when the EfficiencyOption is set to 'Correlation'.
Available options:
CaseyRobinson
CaseyMarty
Rodgers
Type EtaCorrelType
Read Only No
Cp_A0
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the constant component (coefficient of T^0) of
the lower temperature range polynomial. Note that this is only available when MaterialPropsOption is
set to 'User' and the GasModelOption is set to 'Real'.
Type double
Read Only No
Cp_A1
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the coefficient of T^1 of the lower temperature
range polynomial. Note that this is only available when MaterialPropsOption is set to 'User' and the
GasModelOption is set to 'Real'.
Type double
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 969
TurboSystems
Cp_A2
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the coefficient of T^2 of the lower temperature
range polynomial. Note that this is only available when MaterialPropsOption is set to 'User' and the
GasModelOption is set to 'Real'.
Type double
Read Only No
Cp_A3
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the coefficient of T^3 of the lower temperature
range polynomial. Note that this is only available when MaterialPropsOption is set to 'User' and the
GasModelOption is set to 'Real'.
Type double
Read Only No
Cp_A4
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the coefficient of T^4 of the lower temperature
range polynomial. Note that this is only available when MaterialPropsOption is set to 'User' and the
GasModelOption is set to 'Real'.
Type double
Read Only No
Cp_A5
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the coefficient of T^5 of the lower temperature
range polynomial. Note that this is only available when MaterialPropsOption is set to 'User' and the
GasModelOption is set to 'Real'.
Type double
Read Only No
Cp_A6
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the coefficient of T^6 of the lower temperature
range polynomial. Note that this is only available when MaterialPropsOption is set to 'User' and the
GasModelOption is set to 'Real'.
Type double
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
970 of ANSYS, Inc. and its subsidiaries and affiliates.
Cp_A7
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the coefficient of T^7 of the lower temperature
range polynomial. Note that this is only available when MaterialPropsOption is set to 'User' and the
GasModelOption is set to 'Real'.
Type double
Read Only No
Cp_Amax
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the maximum temperature limit for which the
lower temperature range polynomial is applicable. Note that this is only available when MaterialProp-
sOption is set to 'User' and the GasModelOption is set to 'Real'.
Type float
Read Only No
Cp_Amin
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the minimum temperature limit for which the
lower temperature range polynomial is applicable. Note that this is only available when MaterialProp-
sOption is set to 'User' and the GasModelOption is set to 'Real'.
Type float
Read Only No
Cp_B0
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the constant component (coefficient of T^0) of
the upper temperature range polynomial. Note that this is only available when MaterialPropsOption is
set to 'User' and the GasModelOption is set to 'Real'.
Type double
Read Only No
Cp_B1
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the coefficient of T^1 of the upper temperature
range polynomial. Note that this is only available when MaterialPropsOption is set to 'User' and the
GasModelOption is set to 'Real'.
Type double
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 971
TurboSystems
Cp_B2
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the coefficient of T^2 of the upper temperature
range polynomial. Note that this is only available when MaterialPropsOption is set to 'User' and the
GasModelOption is set to 'Real'.
Type double
Read Only No
Cp_B3
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the coefficient of T^3 of the upper temperature
range polynomial. Note that this is only available when MaterialPropsOption is set to 'User' and the
GasModelOption is set to 'Real'.
Type double
Read Only No
Cp_B4
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the coefficient of T^4 of the upper temperature
range polynomial. Note that this is only available when MaterialPropsOption is set to 'User' and the
GasModelOption is set to 'Real'.
Type double
Read Only No
Cp_B5
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the coefficient of T^5 of the upper temperature
range polynomial. Note that this is only available when MaterialPropsOption is set to 'User' and the
GasModelOption is set to 'Real'.
Type double
Read Only No
Cp_B6
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the coefficient of T^6 of the upper temperature
range polynomial. Note that this is only available when MaterialPropsOption is set to 'User' and the
GasModelOption is set to 'Real'.
Type double
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
972 of ANSYS, Inc. and its subsidiaries and affiliates.
Cp_B7
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the coefficient of T^7 of the upper temperature
range polynomial. Note that this is only available when MaterialPropsOption is set to 'User' and the
GasModelOption is set to 'Real'.
Type double
Read Only No
Cp_Bmax
For a user-defined real gas, the specific heat capacity is specified as a polynomial function of temperature
over two temperature ranges. This property specifies the maximum temperature limit for which the
upper temperature range polynomial is applicable. Note that this is only available when MaterialProp-
sOption is set to 'User' and the GasModelOption is set to 'Real'.
Type float
Read Only No
CriticalPressure
This property specifies the critical pressure for the working fluid. Note that this is only available when
MaterialPropsOption is set to 'User' and the GasModelOption is set to 'Real'.
Type Quantity
Read Only No
CriticalTemp
This property specifies the critical temperature for the working fluid. Note that this is only available
when MaterialPropsOption is set to 'User' and the GasModelOption is set to 'Real'.
Type Quantity
Read Only No
CriticalVol
This property specifies the critical volume for the working fluid. Note that this is only available when
MaterialPropsOption is set to 'User' and the GasModelOption is set to 'Real'.
Type Quantity
Read Only No
D3Hub
This property specifies the hub inlet diameter for the impeller.
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 973
TurboSystems
D3ShrUser
This property specifies the impeller shroud diameter at the leading edge. Note that this is only available
when the ShroudDiameterOption is set to 'Diameter'.
Type Quantity
Read Only No
D5
This property reports the diameter at the impeller trailing edge (tip diameter).
Type Quantity
Read Only No
Diffuser
Available options:
Vaned
Vaneless
Type DiffuserType
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
DLEhub
This property reports the diameter at the impeller leading edge hub location.
Type Quantity
Read Only No
DLErms
This property reports the diameter at the impeller leading edge meanline location.
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
974 of ANSYS, Inc. and its subsidiaries and affiliates.
DLEshr
This property reports the diameter at the impeller leading edge shroud location.
Type Quantity
Read Only No
EfficiencyOption
This property specifies whether to use a correlation to automatically calculate the compressor stage
efficiency, or to use a user-defined efficiency.
Available options:
Correlation
User
template1 = GetTemplate(TemplateName="VistaCCD")
system1 = template1.CreateSystem()
bladeDesign1 = system1.GetContainer(ComponentName="Blade Design")
vistaCCDProperties1 = bladeDesign1.GetVistaCCDBladeDesignProperties()
vistaCCDProperties1.EfficiencyOption = "Correlation"
Type EtaType
Read Only No
EtaIsen
This property reports the isentropic efficiency for the compressor stage.
Type float
Read Only No
EtaIsenImp
This property reports the isentropic efficiency for the compressor impeller.
Type float
Read Only No
EtaIsenImpUser
This property specifies the user defined impeller isentropic efficiency. Note that this is only available
when the ImpellerEfficiencyOption is set to 'User'.
Type float
Read Only No
EtaIsenUser
This property specifies the user defined stage isentropic efficiency. Note that this is only available when
the UserEfficiencyOption is set to 'Isentropic'.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 975
TurboSystems
Type float
Read Only No
EtaPoly
This property reports the polytropic efficiency for the compressor stage.
Type float
Read Only No
EtaPolyImp
This property reports the polytropic efficiency for the compressor impeller.
Type float
Read Only No
EtaPolyUser
This property specifies the user defined stage polytropic efficiency. Note that this is only available when
the UserEfficiencyOption is set to 'Polytropic'.
Type float
Read Only No
Gamma
This property reports the ratio of specific heats of the working fluid.
Type float
Read Only No
GammaUser
This property specifies the ratio of specific heats for the working fluid. Note that this is only available
when MaterialPropsOption is set to 'User' and the GasModelOption is set to 'Ideal'.
Type float
Read Only No
GasModelOption
This property specifies whether to treat the working fluid as an Ideal or a Real gas.
Available options:
Ideal
Real
Type GasModelType
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
976 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
GeometryStyle
This property specifies the approach taken when creating a new Geometry model from a successful
VistaCCD calculation.
Available options:
Interactive
Parametric
Type GeometryStyleType
Read Only No
H05
This property reports the total enthalpy at the impeller trailing edge.
Type Quantity
Read Only No
H0LE
This property reports the stagnation enthalpy at the impeller leading edge.
Type Quantity
Read Only No
Impeller
Available options:
Unshrouded
Shrouded
Type ImpellerType
Read Only No
ImpellerEfficiencyOption
This property specifies whether to automatically calculate the impeller efficiency by linking this to the
stage efficiency, or to use a user-defined efficiency.
Available options:
LinkToStage
User
Type EtaImpType
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 977
TurboSystems
Read Only No
ImpellerLength
This property specifies the impeller axial length to tip diameter ratio.
Type float
Read Only No
ImpellerLengthOption
This property specifies whether the impeller length ratio is calculated automatically, or specified by the
user.
Available options:
Automatic
User
Type ImpellerLengthType
Read Only No
ImpellerLengthUserOpt
This property specifies whether the impeller axial length ratio will be defined by the user.
Type bool
Read Only No
IncidenceOption
This property specifies the method used to calculate the incidence at the impeller shroud. The incidence
may be either specified directly or calculated using the specified choke ratio.
Available options:
incidence
choke
Type IncidenceType
Read Only No
IncLEhub
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
978 of ANSYS, Inc. and its subsidiaries and affiliates.
IncLErms
Type Quantity
Read Only No
IncLEshr
Type Quantity
Read Only No
IncShrUser
This property specifies the incidence at the impeller shroud. Note that this is only available when the
IncidenceOption is set to 'incidence'.
Type Quantity
Read Only No
LEInclination
This property reports the leading edge angle of inclination in the meridional plane.
Type Quantity
Read Only No
LEInclinationUser
This property specifies the inclination of the leading edge relative to a radial line in the meridional view.
Type Quantity
Read Only No
Loading
Type float
Read Only No
M5rms
This property reports the absolute Mach number at the impeller trailing edge.
Type float
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 979
TurboSystems
MachU5
This property reports the blade Mach number at the impeller trailing edge (tip Mach number).
Type float
Read Only No
MassFlow
This property specifies the design point mass flow rate passing through the compressor stage.
Type Quantity
Read Only No
MaterialNameSelection
This property specifies the name of the working fluid, as selected from the database. Note that this is
only available when the MaterialPropsOption is set to 'Database'.
Available options:
air
carbon_dioxide
hydrogen
methane
nitrogen
oxygen
parahydrogen
propylene
R123
R125
R134a
R141b
R142b
R245fa
water
template1 = GetTemplate(TemplateName="VistaCCD")
system1 = template1.CreateSystem()
bladeDesign1 = system1.GetContainer(ComponentName="Blade Design")
vistaCCDProperties1 = bladeDesign1.GetVistaCCDBladeDesignProperties()
vistaCCDProperties1.MaterialPropsOption = "Database"
vistaCCDProperties1.MaterialNameSelection = "nitrogen"
Type MaterialNamesList
Read Only No
MaterialPropsOption
This property specifies whether the working fluid properties are chosen from the materials database or
specified directly by the user.
Available options:
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
980 of ANSYS, Inc. and its subsidiaries and affiliates.
Database
User
Type MaterialPropsType
Read Only No
MerVelGrad
This property specifies the gradient of the velocity profile from hub to shroud at the impeller leading
edge. The gradient is set using the ratio of the meridional velocity at the shroud leading edge radius
to that at the average leading edge radius.
Type float
Read Only No
MrelLEhub
This property reports the relative Mach number at the impeller leading edge hub location.
Type float
Read Only No
MrelLErms
This property reports the relative Mach number at the impeller leading edge meanline location.
Type float
Read Only No
MrelLEshr
This property reports the relative Mach number at the impeller leading edge shroud location.
Type float
Read Only No
MrmsLE
This property reports the absolute Mach number at the impeller leading edge meanline location.
Type float
Read Only No
Mu
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 981
TurboSystems
MuUser
Type Quantity
Read Only No
NMain
Type int
Read Only No
NormalToHubLE
This property specifies that the main impeller blade leading is normal to the hub curve
Type bool
Read Only No
Ns
Type float
Read Only No
NSplit
This property specifies the number of impeller splitter vanes. Note that this MUST be a multiple of the
number of impeller main vanes.
Type int
Read Only No
Nu
Type Quantity
Read Only No
NuUser
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
982 of ANSYS, Inc. and its subsidiaries and affiliates.
Omega
This property specifies the design point rotational speed of the impeller.
Type Quantity
Read Only No
P05rms
This property reports the total pressure at the impeller trailing edge.
Type Quantity
Read Only No
P5rms
This property reports the static pressure at the impeller trailing edge.
Type Quantity
Read Only No
PIF
Type float
Read Only No
PIFOption
This property specifies whether the power input factor is calculated using a correlation, or specified by
the user.
Available options:
Correlation
User
Type PIFType
Read Only No
PIFUser
This property specifies the user defined power input factor. Note that this is only available when the
PIFOption is set to 'User'.
Type float
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 983
TurboSystems
Power
Type Quantity
Read Only No
PressureRatio
This property specifies the design point total-to-total pressure ratio for the compressor stage.
Type float
Read Only No
PreswirlOption
This property specifies how the radial distribution of the preswirl angle is calculated.
Available options:
constant
free
forced
linear
Type PreswirlType
Read Only No
RakeAngle
This property specifies the impeller rake angle (trailing edge lean angle).
Type Quantity
Read Only No
Reb5
This property reports the Reynolds number based on the impeller tip width dimension.
Type float
Read Only No
ReCorrectOpt
This property specifies if the Reynolds number correction is to be made to the stage efficiency correlation.
Note that this is only available when the EfficiencyOption is set to 'Correlation'.
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
984 of ANSYS, Inc. and its subsidiaries and affiliates.
Red5
This property reports the Reynolds number based on the impeller tip diameter dimension.
Type float
Read Only No
RelVelRatio
This property specifies the ratio of the relative velocity at the trailing edge to that at the leading edge
shroud location.
Type float
Read Only No
RelVelRatioMod
This property reports the ratio of the rms relative velocity at the trailing edge to the shroud relative
velocity at the leading edge
Type float
Read Only No
RGas
This property reports the specific gas constant of the working fluid.
Type Quantity
Read Only No
RUser
This property specifies the specific gas constant for the working fluid. Note that this is only available
when MaterialPropsOption is set to 'User'.
Type Quantity
Read Only No
S5
This property reports the specific entropy at the impeller trailing edge.
Type Quantity
Read Only No
ShrLELoc
This property specifies the main impeller blade leading edge location on the shroud
Type float
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 985
TurboSystems
Read Only No
ShroudDiameterOption
This property specifies the method used to calculate the impeller shroud diameter at the leading edge.
'Diameter' allows the diameter to be directly specified. 'Angle' indicates that the diameter will be calcu-
lated from the shroud leading edge blade angle. 'Optimum' calculates the diameter such that the relative
Mach number at the shroud leading edge is minimised.
Available options:
Diameter
Angle
Optimum
Type ShroudDiameterType
Read Only No
SLE
This property reports the specific entropy at the impeller leading edge.
Type Quantity
Read Only No
StackingOption
This property specifies the method used to calculate the leading edge blade angles. Using the radial
approach both hub and meanline leading edge blade angles are calculated from the shroud leading
edge blade angle. Using either tangential or sine based approaches, the hub leading edge blade angle
is user defined and the meanline leading edge blade angle is interpolated from the hub and shroud
blade angles.
Available options:
Radial
Tan
Sin
Type StackingType
Read Only No
StagPressure
This property specifies the design point stagnation pressure at the inlet to the compressor stage.
Type Quantity
Read Only No
StagTemp
This property specifies the design point stagnation temperature at the inlet to the compressor stage.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
986 of ANSYS, Inc. and its subsidiaries and affiliates.
Type Quantity
Read Only No
SurfaceFinish
This property specifies the surface finish of the impeller. The surface roughness has a secondary effect
on the calculated efficiency.
Available options:
Machined
Cast
Type RoughnessType
Read Only No
SzrFlowCoeff
Type float
Read Only No
T05rms
This property reports the total temperature at the impeller trailing edge.
Type Quantity
Read Only No
ThkHub
Type Quantity
Read Only No
ThkShr
Type Quantity
Read Only No
ThroatAreaLE
This property reports the throat area at the impeller leading edge.
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 987
TurboSystems
Read Only No
TipCorrectOpt
This property specifies if the tip clearance and shroud correction is to be made to the stage efficiency
correlation. Note that this is only available when the EfficiencyOption is set to 'Correlation'.
Type bool
Read Only No
U5
This property reports the blade speed at the impeller trailing edge (tip speed).
Type Quantity
Read Only No
UserEfficiencyOption
This property specifies whether the user defined stage efficiency is isentropic or polytropic. Note that
this is only available when the EfficiencyOption is set to 'User'.
Available options:
Isentropic
Polytropic
Type EtaUserType
Read Only No
V5rms
This property reports the absolute velocity at the impeller trailing edge.
Type Quantity
Read Only No
ViscosityOption
This property specifies the method used to set the viscosity of the working fluid. The viscosity may be
calculated using Sutherland's law, specified as a constant dynamic viscosity or as a constant kinematic
viscosity. Note that this is only available when MaterialPropsOption is set to 'User'.
Available options:
Sutherland
Dynamic
Kinematic
Type ViscosityType
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
988 of ANSYS, Inc. and its subsidiaries and affiliates.
ViscosityOptionR145
This property specifies the method used to set the kinematic viscosity of the working fluid. The kinematic
viscosity may either be calculated using Sutherland's law for Air, or defined as a constant value by the
user. Note that this is only available when MaterialPropsOption is set to 'User'.
Available options:
Sutherland
User
Type NuUserType
Read Only No
VmLEhub
This property reports the meridional velocity at the impeller leading edge hub location.
Type Quantity
Read Only No
VmLErms
This property reports the meridional velocity at the impeller leading edge meanline location.
Type Quantity
Read Only No
VmLEshr
This property reports the meridional velocity at the impeller leading edge shroud location.
Type Quantity
Read Only No
VmRatioLE
This property reports the ratio of the shroud meridional velocity to the RMS meridional velocity at the
leading edge.
Type float
Read Only No
VrmsLE
This property reports the absolute velocity at the impeller leading edge meanline location.
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 989
TurboSystems
Read Only No
VwLEhub
This property reports the tangential velocity at the impeller leading edge hub location.
Type Quantity
Read Only No
VwLErms
This property reports the tangential velocity at the impeller leading edge meanline location.
Type Quantity
Read Only No
VwLEshr
This property reports the tangential velocity at the impeller leading edge shroud location.
Type Quantity
Read Only No
VwRatioLE
This property reports the ratio of the shroud swirl velocity to the RMS swirl velocity at the leading edge.
Type float
Read Only No
VwRatioUser
This property specifies the ratio of the inlet tangential velocity at the shroud to that at the meanline.
Note that this property is only valid when the PreswirlOption is set to linear.
Type float
Read Only No
W5rms
This property reports the relative velocity at the impeller trailing edge.
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
990 of ANSYS, Inc. and its subsidiaries and affiliates.
Vista CCM
This container holds Analysis data for an instance of Vista CCM.
Methods
Edit
This command class launches the Vista popup GUI.
GetVistaCCMBladeDesignProperties
This query takes a container reference and returns the Data Entity which contains user settings and
properties for the VistaCCD Performance Map container.
Type DataReference
Data Entities
VistaCCMBladeDesign
Setup represents a VistaCCM project definition.
Properties
Alpha3
Inlet angle
Type Quantity
Read Only No
B5
Type Quantity
Read Only No
BetaBlade5
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 991
TurboSystems
BetaBladeLEhub
Type Quantity
Read Only No
BetaBladeLEshr
Type Quantity
Read Only No
ConditionsFromUpstream
Flag to choose whether to update operating conditions from upstream cell or not
Type bool
Read Only No
D5
Type Quantity
Read Only No
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
DLEhub
Type Quantity
Read Only No
DLEshr
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
992 of ANSYS, Inc. and its subsidiaries and affiliates.
EffPolyData
Type List<List<float>>
Read Only No
EtaPoly
Polytropic efficiency
Type float
Read Only No
GammaUser
Type float
Read Only No
GasModel
Gas model
Type int
Read Only No
ImperialUnits
Type bool
Read Only No
KDiff
Type float
Read Only No
KType
Type float
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 993
TurboSystems
ListSpeed
Type List<float>
Read Only No
Loading
Work factor
Type float
Read Only No
MachU5
Type float
Read Only No
MassFlow
Type Quantity
Read Only No
MassFlowData
Type List<List<float>>
Read Only No
NMain
Type int
Read Only No
NSpeeds
Type int
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
994 of ANSYS, Inc. and its subsidiaries and affiliates.
NSplit
Type int
Read Only No
PIF
Type float
Read Only No
PresRatioData
Type List<List<float>>
Read Only No
PressureRatio
Type float
Read Only No
RUser
Gas constant
Type Quantity
Read Only No
SIunits
Type bool
Read Only No
SpeedMax
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 995
TurboSystems
SpeedMaxFixed
Type Quantity
Read Only No
SpeedMin
Type Quantity
Read Only No
SpeedMinFixed
Type Quantity
Read Only No
StagPressure
Type Quantity
Read Only No
StagPressureFixed
Type Quantity
Read Only No
StagTemp
Type Quantity
Read Only No
StagTempFixed
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
996 of ANSYS, Inc. and its subsidiaries and affiliates.
SzrFlowCoeff
Flow coefficient
Type float
Read Only No
ThkHub
Type Quantity
Read Only No
ThkShr
Type Quantity
Read Only No
ThroatArea
Type Quantity
Read Only No
TipMachInData
Type List<List<float>>
Read Only No
TipMachOutData
Type List<List<float>>
Read Only No
VistaCCMTitle
Editor Title
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 997
TurboSystems
Vista CPD
This container holds Analysis data for an instance of Vista CPD.
Methods
CreateBladeDesign
This command class creates a new BladeGen model. An up-to-date BladeGen cell appears on the project
schematic containing the new model.
Type DataContainerReference
CreateGeometry
This command class creates a new BladeEditor model. An up-to-date Geometry cell appears on the
project schematic containing the new model.
Type DataContainerReference
CreateThroughflow
This command class creates a new throughflow system. The system, comprising Geometry, Setup,
Solution and Results cells, is created on the project schematic and is updated performing the throughflow
analysis automatically.
Optional Arguments
Type bool
CreateVoluteMesh
This command class creates a new pump volute geometry and mesh. An up-to-date Mesh system appears
on the project schematic containing the new geometry and mesh cells.
Edit
This command class launches the Vista popup GUI.
GetVistaCPDBladeDesignProperties
This query takes a container reference and returns the Data Entity which contains user settings and
properties for the VistaCPD Blade Design container.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
998 of ANSYS, Inc. and its subsidiaries and affiliates.
Type DataReference
Import
This command imports Vista data into the Blade Design cell from an existing BladeGen file. If no appro-
priate Vista data is found in the specified BladeGen file, an error message is generated.
template1 = GetTemplate(TemplateName="VistaCPD")
system1 = template1.CreateSystem()
bladeDesign1 = system1.GetContainer(ComponentName="Blade Design")
bladeDesign1.Import(FilePath="myfilepath/pump.bgd")
Required Arguments
Type string
Data Entities
VistaCPDBladeDesign
This data entity provides access to the properties which define the VistaCPD project. This includes both
the input and the results properties.
Properties
Alpha2
This property reports the absolute flow angle at the impeller trailing edge.
Type Quantity
AlphaIn
This property specifies the absolute flow angle, measured with respect to the tangential direction, at
the leading edge of the pump impeller.
Type Quantity
Read Only No
AreaDiff
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 999
TurboSystems
AspectRatio
This property specifies the aspect ratio (height/width) of the rectangular volute cross section. This is
valid when VoluteStyleOpt is 'Rectangular'.
Type float
Read Only No
B2
This property reports the hub to shroud distance at the impeller trailing edge (tip width).
Type Quantity
B3
Type Quantity
Beta1
This property reports the relative flow angle at the impeller leading edge meanline section.
Type Quantity
Beta1Blade
This property reports the impeller leading edge blade angle at the meanline section.
Type Quantity
Beta1BladeHub
This property reports the impeller leading edge blade angle at the hub section.
Type Quantity
Beta1BladeHubUser
This property specifies the impeller leading edge blade angle at the hub, measured with respect to the
tangential direction. This is valid when the HubBeta1Opt is set to 'User'
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1000 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
Beta1BladeShr
This property reports the impeller leading edge blade angle at the shroud section.
Type Quantity
Beta1BladeShrUser
This property specifies the impeller leading edge blade angle at the shroud, measured with respect to
the tangential direction. This is valid when the ShrBeta1Opt is set to 'User'
Type Quantity
Read Only No
Beta1BladeUser
This property specifies the impeller leading edge blade angle at the meanline, measured with respect
to the tangential direction. This is valid when the HubBeta1Opt is set to 'User'
Type Quantity
Read Only No
Beta1Hub
This property reports the relative flow angle at the impeller leading edge hub section.
Type Quantity
Beta1Shr
This property reports the relative flow angle at the impeller leading edge shroud section.
Type Quantity
Beta2
This property reports the relative flow angle at the impeller trailing edge.
Type Quantity
Beta2Blade
This property specifies the blade angle at the impeller trailing edge, measured with respect to the tan-
gential direction.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1001
TurboSystems
Type Quantity
Read Only No
BMExportOption
This property specifies whether the impeller is to be exported as an isolated impeller or coupled to a
volute. The isolated impeller option provides for an extended exit diffuser to assist the analysis process.
If the impeller is coupled to the volute, the exit diffuser is short to match with the volute inlet.
Available options:
Isolated
Coupled
Type ImpellerExportType
Read Only No
BMunitsOption
This property specifies the units used when creating a new BladeGen/BladeEditor model. Note that this
is independent of the units used in the VistaCPD popup GUI.
Available options:
mm
inches
Type BMunitsType
Read Only No
C2
This property reports the absolute flow velocity at the impeller trailing edge.
Type Quantity
Cm1
This property reports the meridional flow velocity at the impeller leading edge meanline section.
Type Quantity
Cm1Hub
This property reports the meridional flow velocity at the impeller leading edge hub section.
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1002 of ANSYS, Inc. and its subsidiaries and affiliates.
Cm1Shr
This property reports the meridional flow velocity at the impeller leading edge shroud section.
Type Quantity
Cu1
This property reports the tangential flow velocity at the impeller leading edge meanline section.
Type Quantity
Cu1Hub
This property reports the tangential flow velocity at the impeller leading edge hub section.
Type Quantity
Cu1Shr
This property reports the tangential flow velocity at the impeller leading edge shroud section.
Type Quantity
Cu2
This property reports the tangential flow velocity at the impeller trailing edge.
Type Quantity
Cus
This property reports the slip velocity at the impeller trailing edge. This is defined as the difference
between the theoretical 'no-slip' tangential flow velocity and the true tangential flow velocity.
Type Quantity
D1
This property reports the diameter of the impeller leading edge at the meanline section.
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1003
TurboSystems
D1Hub
This property reports the diameter of the impeller leading edge at the hub section.
Type Quantity
D1Shr
This property reports the diameter of the impeller leading edge at the shroud section.
Type Quantity
D2
This property reports the diameter at the impeller trailing edge meanline section (tip diameter).
Type Quantity
D2Opt
This property specifies the method used to set the impeller tip diameter. It may be calculated automat-
ically, from a specified head coefficient or the value may be user defined.
Available options:
Automatic
HeadCoeff
User
Type TipDiamType
Read Only No
D2User
This property specifies the impeller tip diameter. This is valid when the D2Opt is set to 'User'.
Type Quantity
Read Only No
DEye
This property reports the impeller shroud diameter at the eye of the impeller.
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1004 of ANSYS, Inc. and its subsidiaries and affiliates.
DEyeHub
This property reports the impeller hub diameter at the eye of the impeller.
Type Quantity
DiamDiff
This property reports the hydraulic diameter of the volute diffuser exit.
Type Quantity
DiamDiffUser
This property specifies the value of the volute diffuser exit diameter. This is valid when UserDiamDiff is
set to true.
Type Quantity
Read Only No
DiffRatio
Type float
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
DShaft
Type Quantity
EfficiencyOption
With this set to 'Automatic' the efficiencies are calculated using empirical correlations. All other options
require the specification of three of the efficiencies.The remaining value is calculated from those specified.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1005
TurboSystems
For example, specifying 'Hydraulic' indicates that the hydraulic efficiency will be calculated and the
volumetric, mechanical and overall pump efficiencies must be specified.
Available options:
Automatic
Hydraulic
Volumetric
Mechanical
Pump
Type EffType
Read Only No
FlowCoeff
Type float
Head
This property specifies the design point head rise for the impeller.
Type Quantity
Read Only No
HeadCoeff
Type float
HeadCoeffUser
This property specifies the head coefficient, used to calculate the impeller tip diameter. This is valid
when the D2Opt is set to 'HeadCoeff'.
Type float
Read Only No
HeightDiff
This property reports the volute diffuser exit height. In the case of a circular outlet, (elliptic volute cross
section), this is the same as the hydraulic diameter.
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1006 of ANSYS, Inc. and its subsidiaries and affiliates.
HubBeta1Opt
This property specifies the method used to set the impeller leading edge blade angles at the hub and
meanline sections. These blade angles may be calculated relative to the leading edge blade angle at
the shroud using either cosine or cotangent relationships, or they may be defined directly by the user.
Available options:
Cos
Cot
User
Type HubLEBetaType
Read Only No
HubInletDraft
This property specifies the impeller hub inlet draft angle. This is defined as the angle between the hub
and the horizontal line at the hub inlet.
Type Quantity
Read Only No
HydEff
Type float
HydEffUser
This property specifies the impeller hydraulic efficiency. This is valid when the EfficiencyOption is set
to 'Volumetric', 'Mechanical' or 'Pump'.
Type float
Read Only No
Inc
This property reports the incidence at the impeller leading edge meanline section.
Type Quantity
IncHub
This property reports the incidence at the impeller leading edge hub section.
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1007
TurboSystems
IncShr
This property reports the incidence at the impeller leading edge shroud section.
Type Quantity
IncShrUser
This property specifies the angle of incidence for the impeller at the shroud. This is valid when the
ShrBeta1Opt is set to 'Incidence'.
Type Quantity
Read Only No
Ks
Type float
LengthDiff
Type Quantity
LengthDiffUser
This property specifies the value of the volute diffuser axial length. This is valid when UserLengthDiff
is set to true.
Type Quantity
Read Only No
MechEff
Type float
MechEffUser
This property specifies the impeller mechanical efficiency. This is valid when the EfficiencyOption is set
to 'Hydraulic', 'Volumetric' or 'Pump'.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1008 of ANSYS, Inc. and its subsidiaries and affiliates.
Type float
Read Only No
MerVelRatio
This property specifies the gradient of the velocity profile from hub to shroud at the impeller leading
edge. The gradient is set using the ratio of the meridional velocity at the shroud leading edge radius
to that at the average leading edge radius.
Type float
Read Only No
MinDiamFactor
This property specifies the shaft minimum diameter factor. This is a 'factor of safety' applied to the shaft
minimum diameter as calculated from the maximum allowable shear stress of the shaft.
Type float
Read Only No
NPSHr
This property reports the net positive suction head required (NPSHr) of the impeller.
Type Quantity
Nq
This property reports the specific speed of the impeller using the European units system.
Type float
Ns
This property reports the specific speed of the impeller using the US units system.
Type float
Nss
This property reports the non-dimensional suction specific speed of the impeller.
Type float
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1009
TurboSystems
NumVanes
Type int
Read Only No
OmegaS
Type float
PowShaft
Type Quantity
PumpEff
This property reports the overall efficiency of the impeller. This is the product of the hydraulic, volumetric
and mechanical efficiencies.
Type float
PumpEffUser
This property specifies the impeller overall efficiency. This is valid when the EfficiencyOption is set to
'Hydraulic', 'Volumetric' or 'Mechanical'.
Type float
Read Only No
R3
This property reports the volute base-circle radius. This is defined as the distance from the centreline
to the volute tongue.
Type Quantity
Rake
This property reports the lean angle at the impeller trailing edge (rake angle). Note that although this
is also specified as an input property, the process to achieve the rake angle is iterative and may not
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1010 of ANSYS, Inc. and its subsidiaries and affiliates.
always be achievable. In this situation there will be a difference between this value and that specified
by the input property.
Type Quantity
RakeUser
This property specifies the blade lean angle at the impeller trailing edge (rake angle)
Type Quantity
Read Only No
Rho
Type Quantity
Read Only No
RMajor
This property reports a list of the major radii of the elliptic volute cross sections. This is valid when Vo-
luteStyleOpt is 'Elliptic'.
Type List<Quantity>
RMinor
This property reports a list of the minor radii of the elliptic volute cross sections. This is valid when Vo-
luteStyleOpt is 'Elliptic'.
Type List<Quantity>
ShaftDiamRatio
This property specifies the shaft diameter ratio. This is defined as the ratio of the hub diameter to the
shaft diameter. It is used to determine the hub diameter from the shaft diameter and size of the impeller
fittings used to fix the impeller to the shaft.
Type float
Read Only No
ShrBeta1Opt
This property specifies how the impeller leadng edge blade angle at the shroud is set. With this option
set to 'Incidence' the blade angle is calculated from the specified incidence, otherwise the blade angle
is specified directly.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1011
TurboSystems
Available options:
Incidence
User
Type ShrLEBetaType
Read Only No
SlipRatio
This property reports the ratio of the slip velocity to the blade speed at the impeller trailing edge.
Type float
Speed
Type Quantity
Read Only No
Theta2
This property reports the angle of inclination to the horizontal of the impeller trailing edge, when viewed
in the meridional plane.
Type Quantity
ThetaCR
This property specifies the volute casing rotation angle. This is defined as the angle between the vertical
line and the tongue location when viewing the central section through the volute.
Type Quantity
Read Only No
ThetaDiff
This is defined as the angle between the sloping sides of a circular based conic frustum, with the same
inlet area, exit area and axial length as the volute diffuser.
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1012 of ANSYS, Inc. and its subsidiaries and affiliates.
Thk
Type Quantity
ThkRatio
This property specifies the ratio of the impeller vane thickness to the tip diameter. It is used in order
to specify the impeller vane thickness in a non-dimensional manner.
Type float
Read Only No
TongueClear
This property reports the volute tongue clearance. This is defined as the volute base-circle radius minus
the impeller tip radius.
Type Quantity
TongueThk
This property reports the thickness of the volute tongue ie. the tongue diameter at the cutwater.
Type Quantity
U1
This property reports the blade speed at the impeller leading edge meanline section.
Type Quantity
U1Hub
This property reports the blade speed at the impeller leading edge hub section.
Type Quantity
U1Shr
This property reports the blade speed at the impeller leading edge shroud section.
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1013
TurboSystems
U2
This property reports the blade speed at the impeller trailing edge (tip speed).
Type Quantity
UserDiamDiff
This property specifies that the volute diffuser exit diameter is to be defined by the user, rather than
calculated automatically.
Type bool
Read Only No
UserLengthDiff
This property specifies that the volute diffuser axial length is to be defined by the user, rather than
calculated automatically.
Type bool
Read Only No
VolA
This property reports a list of the volute cross sectional areas from cutwater to throat.
Type List<Quantity>
VolEff
Type float
VolEffUser
This property specifies the impeller volumetric efficiency. This is valid when the EfficiencyOption is set
to 'Hydraulic', 'Mechanical' or 'Pump'.
Type float
Read Only No
VolFlow
This property specifies the design point volume flow rate delivered by the pump.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1014 of ANSYS, Inc. and its subsidiaries and affiliates.
Type Quantity
Read Only No
VolHeight
This property reports a list of the height of the rectangular volute cross sections. This is valid when
VoluteStyleOpt is 'Rectangular'.
Type List<Quantity>
VolR
This property reports a list of the radii of the centroids of the volute cross sections.
Type List<Quantity>
VolRouter
This property reports a list of the outer radii of the volute cross sections.
Type List<Quantity>
VoluteStyleOpt
Available options:
Elliptic
Rectangular
Type VoluteType
Read Only No
VolWidth
This property reports a list of the width of the rectangular volute cross sections. This is valid when Vo-
luteStyleOpt is 'Rectangular'.
Type List<Quantity>
W1
This property reports the relative flow velocity at the impeller leading edge meanline section.
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1015
TurboSystems
W1Hub
This property reports the relative flow velocity at the impeller leading edge hub section.
Type Quantity
W1Shr
This property reports the relative flow velocity at the impeller leading edge shroud section.
Type Quantity
W2
This property reports the relative flow velocity at the impeller trailing edge.
Type Quantity
Vista RTD
This container holds Analysis data for an instance of Vista RTD.
Methods
CreateBladeDesign
This command class creates a new BladeGen model. An up-to-date BladeGen cell appears on the project
schematic containing the new model.
Type DataContainerReference
CreateGeometry
This command class creates a new BladeEditor model. An up-to-date Geometry cell appears on the
project schematic containing the new model.
Type DataContainerReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1016 of ANSYS, Inc. and its subsidiaries and affiliates.
CreateThroughflow
This command class creates a new throughflow system. The system, comprising Geometry, Setup,
Solution and Results cells, is created on the project schematic and is updated performing the throughflow
analysis automatically.
Optional Arguments
Type bool
Edit
This command class launches the Vista popup GUI.
GetVistaRTDBladeDesignProperties
This query takes a container reference and returns the Data Entity which contains user settings and
properties for the VistaRTD Blade Design container.
Type DataReference
ImportBladeGen
This command imports Vista data into the Blade Design cell from an existing BladeGen file. If no appro-
priate Vista data is found in the specified BladeGen file, an error message is generated.
template1 = GetTemplate(TemplateName="VistaCPD")
system1 = template1.CreateSystem()
bladeDesign1 = system1.GetContainer(ComponentName="Blade Design")
bladeDesign1.Import(FilePath="myfilepath/pump.bgd")
Required Arguments
Type string
Data Entities
VistaRTDBladeDesign
This data entity provides access to the properties which define the VistaRTD project. This includes both
the input and the results properties.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1017
TurboSystems
Properties
AFR
This property specifies the air/fuel ratio of the working fluid. This is only available when using the AFR
option for GasProps.
Type float
Read Only No
Alpha2
This property reports the absolute flow angle at the impeller inlet.
Type Quantity
Alpha2User
This property specifies the absolute flow angle at the impeller leading edge. Note that this is not
available when the InletOption is set to 'Calculated'.
Type Quantity
Read Only No
Alpha3
This property reports the absolute flow angle at the impeller exit station.
Type Quantity
Alpha3User
This property specifies the absolute flow angle at the impeller trailing edge.
Type Quantity
Read Only No
Beta2
This property reports the relative flow angle at the impeller inlet.
Type Quantity
Beta2User
This property specifies the relative flow angle at the impeller leading edge. Note that this is not available
when the InletOption is set to 'Calculated'.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1018 of ANSYS, Inc. and its subsidiaries and affiliates.
Type Quantity
Read Only No
Beta3
This property reports the meanline section relative flow angle at the impeller exit station.
Type Quantity
Beta3hub
This property reports the hub section relative flow angle at the impeller exit station.
Type Quantity
Beta3shroud
This property reports the shroud section relative flow angle at the impeller exit station.
Type Quantity
Beta3User
This property specifies the relative flow angle at the impeller trailing edge.
Type Quantity
Read Only No
BMunitsOption
This property specifies the units used when creating a new BladeGen/BladeEditor model. Note that this
is independent of the units used in the VistaRTD popup GUI.
Available options:
mm
cm
inches
ft
m
Type BMunitsType
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1019
TurboSystems
ClearanceOption
This property specifies impeller tip clearance is specified. 'Ratio' indicates that the tip clearance is specified
as a fraction of the tip width 'User' specifies that the clearance will be defined directly by the user.
Available options:
Ratio
User
Type ClearanceType
Read Only No
ClearLoss
This property reports the proportion of energy loss attributed to the clearances between rotating and
stationary components. Note this is only available when using the 'Correlation' for the efficiency calcu-
lation method, EtaOpt.
Type float
ClearRatioUser
This property specifies the ratio of the impeller tip clearance to the tip width. Note that this is only
available when ClearanceOption is set to 'Ratio'.
Type float
Read Only No
ClearUser
This property specifies the value of the impeller tip clearance. Note that this is only available when
ClearanceOption is set to 'User'.
Type Quantity
Read Only No
CorrelationOption
This property specifies the correlation used to calculate the stage efficiency. Note that this is only
available when the EtaOption is set to 'Correlation'.
Available options:
Suhrmann
Baines
Type EtaCorrelType
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1020 of ANSYS, Inc. and its subsidiaries and affiliates.
CpMean
This property reports the average specific heat capacity at constant pressure for the turbine stage.
Type Quantity
CpUser
This property specifies the specific heat capacity at constant pressure, Cp, of the working fluid. This is
only available when using the Fixed option for GasProps.
Type Quantity
Read Only No
D2
Type Quantity
D3hub
Type Quantity
D3shroud
Type Quantity
DiameterRatio
This property reports the ratio of the impeller inlet diameter to the meanline exit diameter.
Type float
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1021
TurboSystems
Read Only No
EtaImpTS
Type float
EtaImpTT
Type float
EtaNozzle
This property specifies the value of the total-to-static nozzle efficiency. The term 'nozzle' here refers to
the geometry upstream of the impeller used to control the inlet flow angle. This may be either bladed
or unbladed, eg. a volute. A specified nozzle efficiency of 1.0 implies no pressure loss across the nozzle
and consequently the nozzle is neglected from the calculation.
Type float
Read Only No
EtaOption
This property specifies whether to use a correlation to automatically calculate the turbine stage efficiency,
or to use a user-defined efficiency.
Available options:
User
Correlation
template1 = GetTemplate(TemplateName="VistaRTD")
system1 = template1.CreateSystem()
bladeDesign1 = system1.GetContainer(ComponentName="Blade Design")
vistaRTDProperties1 = bladeDesign1.GetVistaRTDBladeDesignProperties()
vistaRTDProperties1.EtaOption = "Correlation"
Type EtaType
Read Only No
EtaStageTS
Type float
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1022 of ANSYS, Inc. and its subsidiaries and affiliates.
EtaStageTT
Type float
EtaUser
This property specifies the value of the total-to-total turbine stage efficiency. Note that this entry is
only available when the EtaOption is set to 'User'.
Type float
Read Only No
ExitAngle
This property specifies the flow angle at the impeller exit. This will either be an absolute or relative
value depending on the 'ExitOption'.
Type Quantity
Read Only No
ExitLoss
This property reports the proportion of energy loss attributed to the exhaust. Note this is only available
when using the 'Correlation' for the efficiency calculation method, EtaOpt.
Type float
ExitOption
Available options:
Absolute
Relative
Type ExitAngleType
Read Only No
ExpRatio
This property specifies the design point total-to-total expansion ratio, P01/P03, for the turbine stage.
Type float
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1023
TurboSystems
ExpRatioTs
This property reports the total to static expansion ratio for the turbine stage (P01/P3).
Type float
FricLoss
This property reports the proportion of energy loss attributed to friction. Note this is only available
when using the 'Correlation' for the efficiency calculation method, EtaOpt.
Type float
GammaMean
This property reports the average ratio of specific heats (gamma) for the turbine stage.
Type float
GasProps
This property specifies the method used to calculate the properties of the working fluid.
Available options:
Air
AFR
Fixed
template1 = GetTemplate(TemplateName="VistaRTD")
system1 = template1.CreateSystem()
bladeDesign1 = system1.GetContainer(ComponentName="Blade Design")
vistaRTDProperties1 = bladeDesign1.GetVistaRTDBladeDesignProperties()
vistaRTDProperties1.GasProps = "AFR"
Type GasPropType
Read Only No
HubRatio
This property specifies the ratio of the impeller exit radius at the hub to the impeller inlet radius (tip
radius). This enables the hub exit radius to be controlled in a non-dimensional way.
Type float
Read Only No
ImpellerLength
This property reports the ratio of the impeller axial length to the impeller tip diameter.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1024 of ANSYS, Inc. and its subsidiaries and affiliates.
Type float
ImpellerLengthOption
This property specifies whether the impeller length ratio is calculated automatically, or specified by the
user.
Available options:
Automatic
User
Type ImpellerLengthType
Read Only No
ImpellerLengthUser
This property specifies the ratio of the impeller axial length to the impeller tip diameter. This enables
the impeller axial length to be controlled in a non-dimensional way.
Type float
Read Only No
ImpellerLengthUserOpt
This property specifies whether the impeller axial length ratio will be defined by the user.
Type bool
Read Only No
ImpellerNumber
Type int
Read Only No
ImpellerThickness
This property specifies the average vane thickesses at the impeller exit.
Type Quantity
Read Only No
IncLoss
This property reports the proportion of energy loss attributed to the incidence at the leading edge.
Note this is only available when using the 'Correlation' for the efficiency calculation method, EtaOpt.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1025
TurboSystems
Type float
InletAngle
OBSOLETE PROPERTY RETAINED FOR BACKWARDS COMPATIBILITY IN THE POST MIGRATION STEP
This property specifies the flow angle at the impeller inlet. This will either be specified as an absolute
or relative value depending on the 'InletOption'.
Type Quantity
Read Only No
InletOption
Available options:
Absolute
Relative
Calculated. ****** OBSOLETE OPTION PLEASE USE ABSOLUTE OR RELATIVE ********
Type InletAngleType
Read Only No
Loading
This property reports the basic loading for the turbine stage (delH/U^2).
Type float
LoadLoss
This property reports the proportion of energy loss attributed to loading. Note this is only available
when using the 'Correlation' for the efficiency calculation method, EtaOpt.
Type float
Mach2
This property reports the absolute Mach number at the impeller inlet.
Type float
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1026 of ANSYS, Inc. and its subsidiaries and affiliates.
Mach3rms
This property reports the meanline section absolute Mach number at the impeller exit station.
Type float
MachRel2
This property reports the relative Mach number at the impeller inlet.
Type float
MachRel3shroud
This property reports the shroud section relative Mach number at the impeller exit station.
Type float
MassFlow
This property specifies the design point mass flow rate passing through the turbine stage.
Type Quantity
Read Only No
MrootToverP
This property reports the characteristic flow function for the design point (M x SQRT(T) / P).
Type float
NozChkRatio
Type float
NozExitDiameter
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1027
TurboSystems
NozThtArea
Type Quantity
NozVlessRatio
This property reports the ratio of the 'vaneless' nozzle area to the impeller inlet radius. Note that the
nozzle area used here neglects the vane thickness, hence the 'vaneless' prefix.
Type Quantity
Ns
Type float
Omega
This property specifies the design point rotational speed of the impeller.
Type Quantity
Read Only No
OvrChkRatio
This property reports the overall choke ratio (mass flow/choke flow) for the turbine stage.
Type float
P02
Type Quantity
P03
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1028 of ANSYS, Inc. and its subsidiaries and affiliates.
P2
Type Quantity
P3
Type Quantity
Power
This property reports the aerodynamic power generated by the turbine, neglecting mechanical losses.
Type Quantity
Reaction
This property reports the degree of reaction for the turbine stage, (T2 - T3)/(T01 - T03).
Type float
RelVelRatShroud
This property reports the ratio of the impeller exit relative velocity at the shroud (W3shr) to the impeller
inlet relative velocity (W2).
Type float
RUser
This property specifies the specific gas constant, R, of the working fluid. This is only available when using
the Fixed option for GasProps.
Type Quantity
Read Only No
ShroudRatio
This property specifies the ratio of the impeller exit radius at the shroud to the impeller inlet radius (tip
radius). This enables the shroud exit radius to be controlled in a non-dimensional way.
Type float
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1029
TurboSystems
Read Only No
SpanwiseDistributionOption
This property specifies the spanwise distribution used when exporting the impeller blade.
Available options:
General
Radial
Type SpanwiseDistributionType
Read Only No
SpeedRatio
This property specifies the blade speed ratio, U2/C0, of the impeller, where U2 is the impeller tip speed
and C0 is the spouting velocity. In this definition the spouting velocity is calculated from the total-to-
total isentropic temperature drop.
Type float
Read Only No
StagPressure
This property specifies the design point stagnation pressure, P01, at the inlet to the turbine stage. Note
that this is defined upstream of the nozzle guide vane ahead of the impeller.
Type Quantity
Read Only No
StagTemp
This property specifies the design point stagnation temperature, T01, at the inlet to the turbine stage.
Note that this is defined upstream of the nozzle guide vane ahead of the impeller.
Type Quantity
Read Only No
SurfaceFinish
This property specifies the surface finish of the impeller. The surface roughness has a secondary effect
on the calculated efficiency.
Available options:
Machined
Cast
Type RoughnessType
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1030 of ANSYS, Inc. and its subsidiaries and affiliates.
T02
Type Quantity
T03
Type Quantity
T2
Type Quantity
T3
Type Quantity
TipWidth
Type Quantity
TotalLoss
This property reports the sum of the friction, loading, clearance and exit losses. It is equal to one minus
the total-to-total stage efficiency. Note this is only available when using the 'Correlation' for the efficiency
calculation method, EtaOpt.
Total losses
Type float
U2
This property reports the blade speed at the impeller inlet (tip speed)
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1031
TurboSystems
Type Quantity
U3shroud
This property reports the shroud section blade speed (tip speed) at the impeller exit station.
Type Quantity
V2
Type Quantity
V3rms
This property reports the meanline section absolute velocity at the impeller exit station.
Type Quantity
Vax3rms
This property reports the meanline section axial velocity at the impeller exit station.
Type Quantity
VelRatio1
This property reports the flow coefficient at impeller exit. This is the ratio of the average axial velocity
at the impeller exit (Vax3) to the impeller tip speed (U2).
Type float
VelRatio2
This property reports the blade speed ratio, U2/C0, of the impeller, where U2 is the impeller tip speed
and C0 is the spouting velocity. In this definition the spouting velocity is calculated from the total-to-
static isentropic temperature drop.
Type float
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1032 of ANSYS, Inc. and its subsidiaries and affiliates.
Vr2
Type Quantity
Vw2
This property reports the swirl (tangential) velocity at the impeller inlet
Type Quantity
Vw3rms
This property reports the meanline section swirl velocity at the impeller exit station.
Type Quantity
W2
Type Quantity
W3shroud
This property reports the shroud section relative velocity at the impeller exit station.
Type Quantity
ZeroBetaInlet
Specifies whether or not the relative flow angle at the impeller inlet is zero. Note that a zero inlet angle
is a 'special case' where the exit angles are calculated rather than specified.
Type bool
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1033
TurboSystems
Vista TF Setup
This container holds Setup data for an instance of Vista TF.
Methods
GetSetupEntity
This query is used to retrieve the Vista TF Setup data entity for the specified container.
Type DataReference
ImportAeroTemplate
Imports throughflow aerodynamic data into the Vista TF Setup from an existing throughflow aero
template (.aert) file.
Required Arguments
Type string
ImportControlTemplate
Imports throughflow control data into the Vista TF Setup from an existing throughflow control template
(.cont) file.
Required Arguments
Type string
ImportCorrelationsTemplate
Imports throughflow correlations data into the Vista TF Setup from an existing throughflow correlations
template (.cort) file.
Required Arguments
Type string
ImportCustomRealGas
Imports custom real gas data into the Vista TF Setup from a real gas file (.rgp)
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1034 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
ImportGeometry
Imports throughflow geometry data into the Vista TF Setup from an existing throughflow geometry
(.geo) file.
Required Arguments
Type string
Data Entities
VistaTFSetup
This data entity represents a Vista TF project definition on a geometry.
Properties
Acentric
Type float
Read Only No
ConditionsFromUpstream
Flag to choose whether to update operating conditions from upstream cell or not
Type bool
Read Only No
CpCoeff
Type List<double>
Read Only No
CpGas
Specifies the gas specific heat at constant pressure when FluidOption = IdealGas.
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1035
TurboSystems
CpMax
Type float
Read Only No
CpMin
Type float
Read Only No
CriticalPressure
Type Quantity
Read Only No
CriticalTemp
Type Quantity
Read Only No
CriticalVol
Type Quantity
Read Only No
CustomRealGasFilename
The filename for the specified custom real gas file. Only used where the custom real gas option is spe-
cified.
Type string
Read Only No
CwFluid
Type Quantity
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1036 of ANSYS, Inc. and its subsidiaries and affiliates.
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
DynamicViscosity
Available options:
A value less than 1 [N s m^-2] (or equivalent value in other units) is interpreted as the dynamic
viscosity. Note that the value must be greater than 0.0000001 [N s m^-2].
A value of 0 causes Vista TF to calculate the dynamic viscosity from an inbuilt equation for
dynamic viscosity based on Sutherland's law and the Inlet Total Temperature. This works only
for an ideal gas.
A value greater than 1 [N s m^-2] (or equivalent value in other units) is interpreted as the
Reynolds number, in which case Vista TF calculates the dynamic viscosity using this Reynolds
number, the Reference Diameter, the Machine Rotational Speed, and the fluid density.
Type Quantity
Read Only No
FlowOption
Available options:
MassFlow Specify the mass flow rate and the inlet total
pressure and total temperature conditions.
PressureRatio Specify the estimated mass flow rate and the
total to static pressure ratio on the mean
streamline.
PressureDifference Specify the estimated mass flow rate and the
total to static pressure difference on the mean
streamline.
Type FlowType
Read Only No
FluidOption
Available options:
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1037
TurboSystems
Type FluidType
Read Only No
GammaGas
Type float
Read Only No
InitialCmUref
Specifies the initial guess for the meridional velocity divided by a characteristic velocity, where the latter
is half the Reference Diameter multiplied by the Machine Rotational Speed. For more information, see
the description for cm_start in Specification of the Control Data File (*.con) in the Vista TF Reference
Guide.
Type float
Read Only No
InletPt
Type Quantity
Read Only No
InletSwirlAngle
Specifies the inlet swirl angle, which is from the axial direction and positive in the direction of rotation.
Type Quantity
Read Only No
InletTt
Type Quantity
Read Only No
MachineTypeOption
Specifies the type of machine that will be analyzed. This property specifies which template files are
used and which report is used for the results. This property is only available if the geometry data is
imported rather than transferred from BladeEditor.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1038 of ANSYS, Inc. and its subsidiaries and affiliates.
Available options:
Pump
AxialCompressor
CentrifugalCompressor
Fan
AxialTurbine
RadialTurbine
HydraulicTurbine
Unknown
Other (Obsolete use Unknown)
Type MachineType
Read Only No
MassFlow
Specifies the mass flow rate when FlowOption = MassFlow or the estimated mass flow rate when Flow-
Option = PressureRatio or PressureDifference.
Type Quantity
Read Only No
MaxIterations
Type int
Read Only No
NumBladeRows
Specifies the number of blade rows solved in the analysis. This property is only available if the geometry
data is imported rather than transferred from BladeEditor, and it is only used by the report template
for the Results.
Type int
Read Only No
NumStreamlines
Type int
Read Only No
PolytropicEfficiency
Specifies the small scale polytropic efficiency for the machine, and is used to calculate the losses.
Type float
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1039
TurboSystems
Read Only No
PressureDifference
Specifies the total to static pressure difference on the mean streamline when FlowOption = PressureDif-
ference.
Type Quantity
Read Only No
PressureRatio
Specifies the total to static pressure ratio on the mean streamline when FlowOption = PressureRatio.
Type float
Read Only No
RealGasOption
Type RealGas
Read Only No
RefDiameter
Specifies the reference diameter for the definition of the flow coefficient.
Type Quantity
Read Only No
RefDiameterOption
Specifies whether to have Vista TF calculate the reference diameter automatically or to use a user defined
value.
Available options:
Type RefDiameterType
Read Only No
RGas
Type Quantity
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1040 of ANSYS, Inc. and its subsidiaries and affiliates.
Read Only No
RhoFluid
Type Quantity
Read Only No
RotationalDirection
Available options:
Type RotationType
Read Only No
RotationalSpeed
Type Quantity
Read Only No
Vista TF Solution
This container holds Solution data for an instance of Vista TF.
Data Entities
SolutionOptionsDataEntity
This data entity holds the Workbench properties for a Vista TF solution component.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1041
TurboSystems
ExpressionPrefix
Specifies the name that CFD-Post will prepend all Vista TF system
This field will be populated either on the first solve of this container, or during the duplicate operation,
where it will be copied over from the duplicated container.
Type string
Read Only No
VistaTFSolution
This data entity has no user modifiable properties.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1042 of ANSYS, Inc. and its subsidiaries and affiliates.
Units
Units
This container holds the project Unit Systems and unit settings.
Data Entities
Quantity
Holds the unit definition for a specific quantity within a unit system.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsSuppressed
Type bool
Read Only No
QuantityName
Type string
Read Only No
Unit
Type string
Read Only No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1043
Units
UnitSystem
Holds the definition of a unit system within the project.
Properties
DisplayText
The general property that defines the user-visible name of an entity. This property is defined for all data
entities but is used only in those entities that present a label in the user interface.
Type string
Read Only No
IsDefault
Type bool
Read Only No
IsProjectUnitSystem
Type bool
Read Only No
Quantities
Type DataReferenceSet
UnitSystemName
Type string
Methods
Export
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1044 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1045
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1046 of ANSYS, Inc. and its subsidiaries and affiliates.
Namespaced Commands
Ansoft
This namespace holds top-level commands and queries related to Ansoft.
AnalyzeDesignPointsInDesktop
Sends all the input parameters associated with the supplied system argument for analysis in the associ-
ated Ansoft product and solves for them. The designs points solved for depend on the scope argument.
Required Arguments
DesignPointScope This defines the collection of design points that will be analyzed.
Type EDesignPointScope
Type DataReference
GetProductExePath
Query to get the executable path assoociated with any AnsysEDT/Ansoft product integrated into
Workbench
Return The fully qualified executable path for the named Ansoft product. This
will be empty if the name supplied is not a recognized Ansoft exe name.
Type string
Required Arguments
Name The product name of the ansoft product. Case insensitive and must be one of the names listed in the
Tools/Options/Electromagnetics or "ansysedt".
Type string
CloseAllEditors
Closes all open editors associated with Ansoft systems on the workbench schematic
EditSystem
Edits the design associated with the system in an instance of the editor. If the system does not have
any associated design, a new design is created/initialized for the system and that new design is opened
for edit.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1047
Namespaced Commands
Required Arguments
Type DataReference
ExportDesignPointsToDesktop
Exports the values of all the input paramters of the supplied System for all the design points covdred
by the supplied scope. The resulting table of values will be exported to the selected DXSetup's table
in desktop.
Required Arguments
DesignPointScope The collection of design points for which the input parameter values of the supplied
system will be exported.
Type EDesignPointScope
Type DataReference
ForceSolutionIntoUpdateRequiredState
Force the specified container's component into the "UpdateRequired" or Lightning blot state to allow
the associated editor to update its solution. This is primarily needed to incorporate feedback provided
from downstream connected systems in a pseudo two-way multiphysics silumation.
Required Arguments
Type DataReference
Optional Arguments
InvalidateAllDesignPoints Whether this should invalidate all design points or just the current one.
Default is true: invalidate all design points.
Type bool
GetDesign
Given an Ansoft system, obtain a proxy (IDispatch dynamic object) to the script/COM object corresponding
to the design associated with the system. This will be more-or-less equivalent to the following in Desktop
"oDesktop.GetActiveProject().GetActiveDesign()"
Type Object
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1048 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
System The ansoft system for which we want the Design script/IDispatch object.
Type DataReference
GetDesktop
Given an Ansoft system, obtain a proxy (IDispatch dynamic object) to the script/COM object corresponding
to the Desktop scripting objectdesign associated with the system. This will be more-or-less equivalent
to the "oDesktop" scripting object in Desktop's CommandWindow
Type Object
Required Arguments
System The ansoft system for which we want the Desktop script/IDispatch object.
Type DataReference
ImportProjectFile
Import an existing Ansoft project file into workbench. The return value is a dictionary the keys of which
are the systems created for the imported project and the values are the names of said systems.
Required Arguments
Type string
LaunchDesktop
Launches an instance of the editor associated with the System in standalone mode (cannot open
workbench owned Ansoft projects). While the system itself cannot be edited (or even loaded) into the
opened editor, application defaults and options can be set.
Required Arguments
System The system that is used to figure out which editor is to be launched.
Type DataReference
RefreshCurrentDesignPoint
Synchronize Desktop variable values to current design point
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1049
Namespaced Commands
Required Arguments
System The system from which all design/project variables values will be synchronized to corresponding
ones in the editor design.
Type DataReference
EKM
This namespace holds top-level commands and queries related to Engineering Knowledge Manager.
AutoregisterSession
Auto-registers this Workbench session with the Workbench Job Manager object in EKM. This command
is used when EKM starts a Workbench job. The registration details include hostname and port.
ConnectEkmServer
Connect Workbench to an EKM server. To connect to a server in batch mode, there is at least one con-
nection's credential (userName plus password) is saved during WB GUI mode. The only required para-
meter is the server location. Input UserName will be used to compare with saved credential. If no
UserName provided, any of the saved user names will be used.
Required Arguments
Type string
Optional Arguments
Type bool
Type long
Type string
Type string
Example
The following example illustrates the connecting to a given EKM server with other optional parameters.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1050 of ANSYS, Inc. and its subsidiaries and affiliates.
EKM.ConnectEkmServer(Location="auswchiang64", // Required
Workspace="Default", // Optional
Port=8080, // Optional
IndividualServer=False, // This parameter will eventually obsolete since individual s
UserName="root" // Optional
)
GetChangesFromRepository
Get changes of the project from EKM repository.
Optional Arguments
Type bool
Type bool
Example
The following example illustrates the obtaining of project changes from an EKM repository.
EKM.GetChangesFromRepository(BackupProject=False,
Checkout=False)
GetSessionId
A query for getting the unique id of current Workbench session.
Type string
LaunchWebUi
Launches EKM Desktop.
Required Arguments
Type string
OpenFromRepository
Open an archived project from EKM repository to Workbench. The opened project will also saved in
your local disk with repository info saved in the local project. Once it's opened, user can modify and
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1051
Namespaced Commands
save the project locally, send local changes to repository, and also update local project from repository
if the project is changed in repository.
Required Arguments
Type string
Type string
Optional Arguments
Type bool
Example
The following example illustrates the opening of an archive from an EKM Repository to local disk.
EKM.SaveToRepository(RepositoryPath=r"\\path_to_EKM_repository\archived_project.wbpz", // Required
ProjectPath=r"\\local_project_path", // Required
CheckOut=False // Optional, appl
)
RegisterSession
Registers the current Workbench session with EKM so that it can be controlled through EKM Web inter-
face.
Required Arguments
Type string
SaveToRepository
Save archived project to EKM repository. The project must be saved before calling this command. A
warning will popup if not saved.
Required Arguments
RepositoryFolderPath Remote repository directory path for the archived file to be uploaded in the
repository
Type string
Optional Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1052 of ANSYS, Inc. and its subsidiaries and affiliates.
Type bool
Description Whether to include files imported to the project from external locations.
Type string
Type bool
Type bool
Type bool
Type bool
Example
The following example illustrates the saving of an archive to an EKM Repository. It will save the specified
archived project to the specified EKM repository, placing it under source control, and checking it out to
my local machine.
EKM.SaveToRepository(RepositoryFolderPath=r"\\path_to_EKM_repository",
IncludeResultFiles=True,
IncludeExternalFiles=True,
GetExclusiveControle=False,
PlaceUnderVersionControl=False,
CheckOut=False,
Description="My Sample EKM Project Save")
SendChangesToRepository
Save archived project to EKM repository. The project must be saved before calling this command. A
warning will popup if not saved.
Required Arguments
RepositoryPath Remote repository directory path for the project to be sent into repository
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1053
Namespaced Commands
Optional Arguments
Type bool
Type bool
Comments Comments
Type string
Type bool
Type bool
Type bool
Example
The following example illustrates the sending of project changes to an EKM repository. The specified
archived project will be sent to the specified EKM Repository. The additional arguments specify, in order:
(1) Whether a new EKM project version will be assigned (InExiting). (2) Source control behavior (Checkin-
Option : a value greater than zero will issue a checkin. A value of 2 will check out the project after a suc-
cessful checkin.). (3) Whether to release the exclusive control (lock) upon successful project submission
(ReleaseExclusiveControl).
EKM.SendChangesToRepository(RepositoryPath=r"\\path_to_my_EKM_repository",
InExiting=True,
CheckinOption=0,
ReleaseExclusiveControl=False,
Comments="These are my comments for my changes")
UnregisterSession
Unregisters this Workbench session by deleting all job object(s) created in EKM to control it.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1054 of ANSYS, Inc. and its subsidiaries and affiliates.
UploadToRepository
Save archived project to EKM repository. The project must be saved before calling this command. A
warning will popup if not saved.
Required Arguments
ArchiveFilePath Local file path for the archived project file to be save to repository
Type string
RepositoryFolderPath Remote repository directory path for the archived file to be uploaded in the
repository
Type string
Optional Arguments
Type bool
Description Whether to include files imported to the project from external locations.
Type string
Type bool
Type bool
Example
The following example illustrates the saving of the specified archive to the specified EKM repository and
updates the timestamp in the specified EKM record file. The additional arguments specify, in order: (1)
Whether to obtain exclusive control for the archive after successful EKM upload (GetExclusiveControl). (2)
Whether to place the uploaded archive under version control (PlaceUnderVersionControl). (3) Whether to
check out the archived project after uploaded to EKM and placing it under version control (Checkout).
EKM.UploadToRepository(ArchiveFilePath=r"C:\Users\anyuser\path_to_my_wbpz_file.wbpz",
RepositoryFolderPath=r"\\path_to_my_EKM_repository",
LocalRepositoryRecordFilePath=r"C:\Users\anyuser\path_to_local_repository_project_re
GetExclusiveControl=True,
PlaceUnderVersionControl=True,
CheckOut=True,
Comments="These are my comments for this update.")
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1055
Namespaced Commands
EngData
This namespace holds top-level commands and queries related to Engineering Data.
CreateLibrary
Creates a new Engineering Data library.
Type DataContainerReference
Required Arguments
Type string
Optional Arguments
Type string
OpenLibrary
Opens a library of engineering information so that it can be viewed and if permissions allow, edited.
Type DataContainerReference
Required Arguments
Type string
Example
This code shows how to open a library from the provided samples.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1056 of ANSYS, Inc. and its subsidiaries and affiliates.
Extensions
This namespace holds top-level commands and queries related to ACT.
InstallExtension
This command install an extension identified by its filename.
If this extension already exists, the user can force to install the extension by setting the variable "For-
ceInstall" to true.
Required Arguments
Type string
Optional Arguments
ForceInstall Indicates whether the extension will be installed even if this extension already exists.
Type bool
Example
To install an extension:
Extensions.InstallExtension(ExtensionFileName=r"c:\my_extensions_repository\my_extension.wbex")
Extensions.InstallExtension(ExtensionFileName=r"c:\my_extensions_repository\my_extension.wbex",ForceInstall
LoadExtension
This command load an installed extension.
Required Arguments
Type string
Optional Arguments
Format Format argument containing the format of the extension (Scripted or Binary).
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1057
Namespaced Commands
Type string
Example
To load an extension:
Extensions.LoadExtension(Id="7FD4DE83-39D0-4252-859B-2393C67F8EC8")
Extensions.LoadExtension(Id="7FD4DE83-39D0-4252-859B-2393C67F8EC8", Version="1.0")
Extensions.LoadExtension(Id="7FD4DE83-39D0-4252-859B-2393C67F8EC8", Version="1.0", Format="Binary")
UninstallExtension
This command uninstall an extension.
Required Arguments
Type string
Optional Arguments
Type bool
Format Format argument containing the format of the extension (Scripted or Binary).
Type string
Type string
Example
To uninstall an extension:
Extensions.UninstallExtension(ExtensionFileName=r"c:\my_extensions_repository\my_extension.wbex")
UnloadExtension
This command unload a loaded extension.
Required Arguments
Type string
Optional Arguments
Format Format argument containing the format of the extension (Scripted or Binary).
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1058 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Type string
Example
To unload an extension:
Extensions.UnloadExtension(Id="7FD4DE83-39D0-4252-859B-2393C67F8EC8")
Extensions.UnloadExtension(Id="7FD4DE83-39D0-4252-859B-2393C67F8EC8", Version="1.0")
Extensions.UnloadExtension(Id="7FD4DE83-39D0-4252-859B-2393C67F8EC8", Version="1.0", Format="Binary")
Fluent
This namespace holds top-level commands and queries related to Fluent.
FluentStartPolling
No details are provided for this entry.
CfxStartPolling
No details are provided for this entry.
Graphics
This namespace holds top-level commands and queries related to Graphics.
GetAxisContinuous
A query to return an AxisContinuous data reference.
Type DataReference
Required Arguments
Type string
GetAxisDiscrete
A query to return an AxisDiscrete data reference.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1059
Namespaced Commands
Required Arguments
Type string
GetChartXY
A query to return a ChartXY data reference.
Type DataReference
Required Arguments
Type string
GetChartXYZ
A query to return an ChartXYZ data reference.
Type DataReference
Required Arguments
Type string
GetCorrelationMatrix
A query to return a CorrelationMatrix data reference.
Type DataReference
Required Arguments
Type string
GetLegend
A query to return a Legend data reference.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1060 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
GetMultiAxisChart
A query to return a MultiAxisChart data reference.
Type DataReference
Required Arguments
Type string
GetPieChart
A query to return a PieChart data reference.
Type DataReference
Required Arguments
Type string
GetRenderStyle
A query to return a RenderStyle data reference.
Type DataReference
Required Arguments
Type string
GetVariable
A query to return a Variable data reference.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1061
Namespaced Commands
Required Arguments
Type string
GetVariableXY
A query to return a VariableXY data reference.
Type DataReference
Required Arguments
Type string
GetVariableXYZ
A query to return a VariableXYZ data reference.
Type DataReference
Required Arguments
Type string
Mechanical
This namespace holds top-level commands and queries related to Mechanical.
ImportLegacyDatabase
Imports a legacy database given the filepath
Type DataReference
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1062 of ANSYS, Inc. and its subsidiaries and affiliates.
Meshing
This namespace holds top-level commands and queries related to Meshing.
ImportLegacyDatabase
Imports legacy Meshing editor files or CFX mesh files to the Meshing editor from an existing .cmdb file.
Type DataReference
Required Arguments
Type string
Parameters
This namespace holds top-level commands and queries related to Parameters, Design Points and
DesignXploration.
ClearDesignPointsCache
Clears the Design Points Cache for Design Exploration features. DesignXplorer is using an internal cache
of Design Points to reduce the number of Design Point update operations. This cache is available accross
all of the design exploration systems of a project. This command clears all the data contained in the
cache.
Example
The following example shows how to clear the cache in a project.
ClearDesignPointsCache()
CreateDesignPoint
A command to create a new design point that contains all the parameters, but with their values set to
null.
The design point can be created initially as a "exported" design point, which will allow the files and
associated databases to be reloaded at a later time to view the results of the design point update.
Type DataReference
Optional Arguments
Exported Indicates that the newly created design point will be exported.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1063
Namespaced Commands
Type bool
Retained Indicates that the newly created design point will be retained.
Type bool
Example
The following example illustrates proper CreateDesignPoint command invocation:
CreateParameter
Creates a parameter, optionally associated with a data entity property. The expression and visible name
for the parameters can be optionally specified.
Type DataReference
Optional Arguments
Type string
Entity The data model entity that holds the property to be parameterized.
Type DataReference
Type string
Type bool
Type bool
PropertyName The name of the data model property which the parameter is associated with.
Type string
Example
The following two examples illustrate input and output parameter creation
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1064 of ANSYS, Inc. and its subsidiaries and affiliates.
myEntity = #Query to obtain your entity on to which parameters will be created.
inptParam1 = Parameters.CreateParameter(Entity=myEntity,
PropertyName="Value",
IsOutput=False,
IsDirectOutput=False,
Expression=None,
DisplayText="My Input Parameter")
outpParam1 = Parameters.CreateParameter(Entity=myEntity,
PropertyName="Value",
IsOutput=True,
IsDirectOutput=True,
Expression=None,
DisplayText="My Output Parameter")
exprParam1 = Parameters.CreateParameter(Entity=None,
PropertyName=None,
IsOutput=False,
IsDirectOutput=False,
Expression="cos(1)",
DisplayText="My Input Expression Parameter")
exprParam2 = Parameters.CreateParameter(Entity=None,
PropertyName=None,
IsOutput=True,
IsDirectOutput=False,
Expression="sin(P1)",
DisplayText="My Output Expression Parameter")
CreateParameterSummaryChart
Creates a multi-axis parallel coordinate chart based on the parameters supplied to the command.
chart1 = Parameters.CreateParameterSummaryChart(Parameters=[])
-or-
parameter1 = Parameters.GetParameter(Name="P1")
parameter2 = Parameters.GetParameter(Name="P2")
parameter3 = Parameters.GetParameter(Name="P3")
chart1 = Parameters.CreateParameterSummaryChart(Parameters=[parameter1, parameter2, parameter3])
Type DataReference
Required Arguments
Type DataReferenceSet
CreateParameterVsParameterChart
Creates a 2-dimensional (x,y) chart that can be used to compare two parameters.
Type DataReference
Optional Arguments
XAxisBottom A data reference for the parameter that represents the bottom x-axis.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1065
Namespaced Commands
Type DataReference
XAxisTop A data reference for the parameter that represents the top x-axis.
Type DataReference
YAxisLeft A data reference for the parameter that represents the left y-axis.
Type DataReference
YAxisRight A data reference for the parameter that represents the right y-axis.
Type DataReference
Example
This example illustrates the creation of a chart comparing two parameters.
parameter1 = Parameters.GetParameter(Name="P1")
parameter2 = Parameters.GetParameter(Name="P2")
chart1 = Parameters.CreateParameterVsParameterChart(XAxisBottom=parameter1, YAxisLeft=parameter2)
ExportAllDesignPointsData
Export the data of all design points to a csv file.
Required Arguments
Type string
Optional Arguments
Type bool
Example
The following example shows how the user can export all the design points of the project.
Parameters.ExportAllDesignPointsData(FileName="designPoints.csv")
ExportLink
Export the link to design set to a csv file.
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1066 of ANSYS, Inc. and its subsidiaries and affiliates.
Optional Arguments
Type bool
Example
The following example shows how the user can export the dictionary of linked point.
Parameters.ExportLinkCommand(FileName="Link.csv")
GetAllDesignPoints
Returns a set of all design points in the project.
Type DataReferenceSet
GetAllSortedDesignPoints
Returns a set of all design points, sorted by their update order in ascending, in the project.
Return A data reference set containing all the sorted design points.
Type DataReferenceSet
GetAllExportedDesignPoints
Retrieves a set of all exported design points.
Type DataReferenceSet
Optional Arguments
IncludingBaseDesignPoint A flag to determine whether the query to also return the base design
point, which is always retained.
Type bool
GetAllParameters
Returns a set of all parameters in the project.
Type DataReferenceSet
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1067
Namespaced Commands
GetAllRetainedDesignPoints
Retrieves a set of all retained design points.
Type DataReferenceSet
Optional Arguments
IncludingBaseDesignPoint A flag to determine whether the query to also return the base design
point, which is always retained.
Type bool
GetAllRetainedDesignPointsWithValidData
Retrieves a set of all retained design points with valid data
Type DataReferenceSet
Optional Arguments
IncludingBaseDesignPoint A flag to determine whether the query to also return the base design
point, which is always retained.
Type bool
GetDesignPoint
Returns a design point based on the name of the design point.
Type DataReference
Required Arguments
Type string
GetNamedExpression
A query to return a reference for a named expression given a name and a scope
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1068 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
Optional Arguments
Scope The scope in which the named expression is located. Default is global scope.
Type DataReference
GetParameter
A query to return a reference for a parameter given a name and a scope
Type DataReference
Required Arguments
Type string
Optional Arguments
Scope The scope in which the parameter is located. If this parameter is omitted or is null then the returned
parameter will be global.
Type DataReference
GetParameterSummaryChart
A query to return a reference for a parameter summary chart by name.
Type DataReference
Required Arguments
Type string
GetParameterVsParameterChart
A query to return a reference for a parameter vs. parameter chart by name.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1069
Namespaced Commands
Required Arguments
Type string
GetScope
Returns a data reference to a named scope
Type DataReference
Required Arguments
Type string
IsParameterInDesignPointUpToDate
Checks whether a parameter is up to date in a design point.
Type bool
Required Arguments
Type DataReference
Type DataReference
IsParameterUpToDate
Indicates whether a parameter is up to date in a design point.
Type bool
Required Arguments
Parameter Parameter
Type DataReference
Optional Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1070 of ANSYS, Inc. and its subsidiaries and affiliates.
Type DataReference
OptimizeUpdateOrder
Optimizes Update Order of Design Points to minimize the number of modifications between two con-
secutives Design Points
SetParameter
Sets the expression of the specified parameter in the base design point.
Required Arguments
Type string
Type DataReference
SetUpdateOrderByRow
Sets a value for the update order property of all design points using a sorting method.
Optional Arguments
Type List<string>
Project
This namespace holds top-level commands and queries related to the Project, File and Units.
AbandonBackgroundTasks
Abandon all pending background tasks from last update.
AbandonTopLevelBackgroundDesignPointUpdate
Abandon all top-level pending background DP updates if none is running.
AddPropertyTable
This command is used to allow the expression of a property to reference data in the named table. This
is a reference and not a copy, and so if the table is used in the expression, and a change is made on
the referenced table and the change is in the data being referenced the value of the property will be
modified. The command creates table functions in the context of this expression which can be used
with constants, field variables, or another named expression. If the property does not support an expres-
sion an error will occur.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1071
Namespaced Commands
Return An int which corresponds to the Index passed in to the command and
indicates the comand successfully completed.
Type int
Required Arguments
Dependents A List of the column index(es) to use from the Table which correspond to the dependent
variable(s) of the Property. The indexes can be an Integer index or the String name of the
column.
Type List<Object>
Independents A List of the column index(es) to use from the Table for use in the expression and correspond
to the independent variables of the Property. The indexes can be an Integer index or the
String name of the column.
Type List<Object>
Index An integer which uniquely identifies the Table for use in the expression of the Property. In
the expression this table can be accessed via tableIndex(args). The table with an index of
one can be accessed in the expression as table(args) or table1(args).
Type uint
Parent The DataReference of the object which has the Property that the Table should be added
to.
Type DataReference
Property The String which provides the path of the property on the Parent.
Type string
Type DataReference
Optional Arguments
Bounds An enum which describes what will occur when the index is outside of the bounds of the
table. The valid enum values are; Constant, Fit, Zero, and Error. The default is Error.
Type TableInterpolationBeyondBounds
Interpolation An enum of the type of interpolation to use when accessing data from the table at a
given index. The valid enum values are; None, Linear, Cubic Spline. The default is Linear.
Type TableInterpolation
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1072 of ANSYS, Inc. and its subsidiaries and affiliates.
Example
AddSourceToComponentInSystem
Add a connection between two components in the same system.
Required Arguments
Type DataReference
Type DataReference
AddTableColumn
AddColumn will add a column at the specified index to the table.
Return The Integer which corresponds to the index of the column which was
newly added to the table.
Type int
Required Arguments
Name The String used to uniquely identify the column (case-sensitive) in this table. If the
value is not unique an error will occur.
Type string
PhysicalQuantity The String for the physical quantity (e.g. Density, Pressure, etc.) used to verify the
data has the correct units.
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1073
Namespaced Commands
Type DataReference
Optional Arguments
Data A List of Strings which specifies the data for this column. The String must be a valid Quantity string
in the form "value [units]".
If the size of the list is smaller than the current number of rows the data will be initialized to
an undefined value. If the size of the List is greater than the current number of rows then an
error will occur.
Type List<Quantity>
Index The Integer index of the location for the newly added column. An index of 0 (zero) will add to the
left-most side of the table. The default is to add the column to the right-most side of the table.
Type int
Example
This example illustrates adding columns to a table.
# NameSpace is the Addin namespace in use (e.g. Study, EngData, etc.) which may have its specific CreateTa
# drParent is the DataReference of an object that has been previously created
table1 = NameSpace.CreateTable(Parent=drParent, Columns=[])
table1.AddRow()
table1.AddRow()
table1.AddRow()
table1.AddColumn("Displacement", "Length", Data=["0 [m]",".001 [m]"])
table1.AddColumn("Temperature","Temperature", Index=0)
AddTableRow
AddRow will add a row at the specified index to the table.
Return The Integer which corresponds to the index of the row which was newly
added to the table.
Type int
Required Arguments
Type DataReference
Optional Arguments
Data A List of Strings which specifies the data for this row. The String must be a valid Quantity string in
the form "value [units]".
Type List<Quantity>
Index The Integer index of the location for the newly added row. An index of 0 (zero) will add to the top
of the table. The default is to add the row to the end of the table.
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1074 of ANSYS, Inc. and its subsidiaries and affiliates.
Example
This example illustrates adding rows to a table.
# NameSpace is the Addin namespace in use (e.g. Study, EngData, etc.) which may have its specific CreateTa
# drParent is the DataReference of an object that has been previously created
table1 = NameSpace.CreateTable(Parent=drParent, Columns=[("Temperature","Temperature"),("Displacement","Len
table1.AddRow(Data=["100 [C]","1.0 [m]"])
table1.AddRow()
table1.AddRow(Data=["300 [C]",".06 [m]"])
table1.AddRow(Index=0, Data=["50 [C]",".001 [m]"])
Archive
Creates a project archive based on current project files and contents. The project must be saved before
an archive can be created.
Required Arguments
Type string
Optional Arguments
FailIfMissingFiles Set to true to force failure if there are any files to repair.
Type bool
IncludeExternalImportedFiles Whether to include files imported to the project from external locations.
Type bool
Type bool
Type bool
Example
This example creates a project archive from the currently loaded project. The full file path is specified and
the argument will include items from the user_files folder, include results/solution files, and exclude ex-
ternal files imported into the project.
Archive(FilePath=r"C:\Users\AnsUser\simpleStructural.zip",
IncludeUserFiles=True,
IncludeSkippedFiles=True,
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1075
Namespaced Commands
IncludeExternalImportedFiles=False,
FailIfFilesNeedRepair=False)
CleanSystem
Clears generated data on all components in the given system(s).
Required Arguments
Type List<DataReference>
ClearMessagesBySource
Clears all messages that have no Source from the message store.
Optional Arguments
Type Object
Type ClearMessagesOption
ClearMessages
Clears all messages from the message store.
ConvertRepositoryFileToLocalFile
Convert a repository file to local file
Required Arguments
Type DataReference
CopyFile
Copies a file to a target directory. Either the SourceFile argument or the SourceFilePath argument must
be specified.
Type DataReference
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1076 of ANSYS, Inc. and its subsidiaries and affiliates.
Overwrite Specifies whether to overwrite an existing files of the same name. Note:
A registered file may not be overwritten.
Type bool
Optional Arguments
SourceFile A reference to the file to be copied. A file reference can be obtained from commands
and queries like RegisterFileCommand and GetRegisteredFileQuery.
Type DataReference
Type string
Example
This example illustrates a path-based file copy procedure. The specified file will be copied to the specified
destination directory path. The destination file will not be registered and the return value will be null.
CopyFile(SourceFilePath=r"C:\Users\anyuser\myTextFile.txt",
DestinationDirectoryPath=r"C:\Users\anyuser\newfolder",
Overwrite=True)
This second example illustrates a reference-based file copy procedure. The specified file will be
copied to the specified destination directory path. The destination file will also be registered and
the new reference returned.
file1 = GetRegisteredFile(FilePath=r"C:\path_to_file\file.txt")
file2 = CopyFile(SourceFile=file1,
DestinationDirectoryPath=r"C:\Users\anyuser\newfolder",
Overwrite=True)
CreateCustomUnitSystem
Creates a custom unit system based on predefined unit system (e.g., MKS, US Customary) or other custom
unit sytem already defined.
Type DataReference
Required Arguments
BaseUnitSystemName The internal name of the unit system that is the basis for the newly created
system.
Type string
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1077
Namespaced Commands
Type string
Example
This example illustrates the creation of a custom unit system.
myUnitSystem = CreateCustomUnitSystem(UnitSystemName="MyUnitSystem",
UnitSystemDisplayName="My Custom Unit System",
BaseUnitSystemName="SI")
CreateTemplateFromProject
Creates a Project Template from the current project and adds it to the list of Custom systems.
Type DataReference
Required Arguments
Type string
CreateUnitSystem
Creates the UnitSystem data entity for the named system.
Type DataReference
Required Arguments
Type string
DeleteFile
Deletes the specified file. Either the File argument or the FilePath argument must be specified.
Optional Arguments
BackUp Specifies whether to back up the file before deletion. This optional argument's default
value is true.
Type bool
DeleteIfShared Specifies whether a registered file should be deleted even if it is still in use. This optional
argument's default value is true. If this argument's value is false, an exception will be
thrown if a shared file is encountered. To avoid the exception, set ErrorIfShared to false.
Type bool
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1078 of ANSYS, Inc. and its subsidiaries and affiliates.
Default Value False
ErrorIfShared Specifies whether to throw an exception when trying to delete a shared file if DeleteIf-
Shared is set to false.
Type bool
File A reference to the file to be deleted. A file reference can be obtained from commands
and queries like RegisterFileCommand and GetRegisteredFileQuery.
Type DataReference
Example
The following example illustrates a simple file deletion; file is not deleteed if it is registered.
DeleteFile(FilePath=r"C:\Users\anyuser\path-to-file.extension")
DeleteFile(FilePath=r"C:\Users\anyuser\path-to-file.extension", DeleteIfShared=True)
The next example illustrates a deletion of a registered file via a file reference. The file will be deleted
if even if it is still in use. Note that the file will be backed up.
fileRef = GetRegisteredFile(FilePath=r"C:\Users\anyuser\path-to-file.extension")
DeleteFile(File=fileRef, DeleteIfShared=True,
BackUp=True)
The final example illustrates a deletion of a registered file via a file reference without a forced deletion.
If the file is shared, an error will not occur, and the file reference count will be decremented.
fileRef = GetRegisteredFile(FilePath=r"C:\Users\anyuser\path-to-file.extension")
DeleteFile(File=fileRef, ErrorIfShared=False)
DeleteTableColumn
DeleteColumn will delete a column at the specified index from the table.
Required Arguments
Index An Integer index or the String name of the column (case-sensitive) to remove from the table. The
first column has an index of 0 (zero).
Type Object
Type DataReference
Example
This example illustrates removing a column from a table.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1079
Namespaced Commands
# NameSpace is the Addin namespace in use (e.g. Study, EngData, etc.) which may have its specific CreateTa
# drParent is the DataReference of an object that has been previously created
table1 = NameSpace.CreateTable(Parent=drParent, Columns=[("Temperature","Temperature"),("Displacement","Len
table1.AddRow(Data=["100 [C]","1.0 [m]"])
table1.AddRow(Data=["200 [C]",".02 [m]"])
table1.AddRow(Data=["300 [C]",".06 [m]"])
table1.DeleteColumn(Index='Displacement')
DeleteTableRow
DeleteRow will delete a row at the specified index from the table.
Required Arguments
Index The Integer index of the row to remove from the table. The row indexes for the table begin at 0 (zero).
Type int
Type DataReference
Example
This example illustrates removing a row from a table.
# NameSpace is the Addin namespace in use (e.g. Study, EngData, etc.) which may have its specific CreateTa
# drParent is the DataReference of an object that has been previously created
table1 = NameSpace.CreateTable(Parent=drParent, Columns=[("Temperature","Temperature"),("Displacement","Len
table1.AddRow(Data=["100 [C]","1.0 [m]"])
table1.AddRow(Data=["200 [C]",".02 [m]"])
table1.AddRow(Data=["300 [C]",".06 [m]"])
table1.DeleteRow(Index=2)
DeleteTabularDataRow
Delete a row from a tabular data sheet.
Required Arguments
Type int
Type DataReference
Optional Arguments
Type string
SheetQualifiers SheetQualifiers is used to pass in the qualifiers to select between multiple sheets witht
the same name. This is a dictionary of the Qualifier and its Value.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1080 of ANSYS, Inc. and its subsidiaries and affiliates.
Type Dictionary<string, string>
Example
The following example illustrates the deletion of a row from a tabular data sheet.
#
# Create a new Engineering Data System and access Structural Steel
#
template1 = GetTemplate(TemplateName="EngData")
system1 = template1.CreateSystem()
engineeringData1 = system1.GetContainer(ComponentName="Engineering Data")
matl1 = engineeringData1.GetMaterial(Name="Structural Steel")
#
# Delete the first row in the Density property
#
matlProp1 = matl1.GetProperty(Name="Density")
matlProp1.DeleteTabularDataRow(Index = 0)
#
# Delete the first row in the Coefficient of Thermal Expansion property with optional SheeetNamea nd SheetQ
#
matlProp2 = matl1.GetProperty(Name="Coefficient of Thermal Expansion")
matlProp2.DeleteTabularDataRow(
SheetName="Coefficient of Thermal Expansion",
SheetQualifiers={"Definition Method": "Secant", "Behavior": "Isotropic"},
Index = 0)
DeleteUnitSystem
Deletes the named unit system.
Required Arguments
Type string
DownloadRepositoryFile
Download the specified file from repository
Return Holds the reference to the Repository file as the output value.
Type DataReference
Required Arguments
Type RepositoryFileInfo
ExportReport
Writes out project report containing both framework- and addin-supplied content. The report output
is XML in accordance to EKM schema. If the file path extension is html, the XML will be converted to
an html output file.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1081
Namespaced Commands
Required Arguments
FilePath The full destination file path for the reporting. If the extension is .xml, the report will be produced
in XML format per EKM schema. If the extension is .html, the report will be poduced using the
EKM schema-certified XML and then translated in html.
Type string
GetAbsoluteUserPathName
Gets the absolute user path name for the given relative path name, based on the current setting of the
user path root. See also GetUserPathRoot and SetUserPathRoot.
Type string
Required Arguments
Type string
Example
This example uses the SetUserPathRoot and GetAbsoluteUserPathName to read a project from two different
user directories.
SetUserPathRoot(DirectoryPath = "C:/Users/myUser1/Projects")
Open(FilePath=GetAbsoluteUserPathName("proj1.wbpj")) # Read project from first location
SetUserPathRoot(UserPathRoot = "C:/Users/myUser2/Projects")
Open(FilePath=GetAbsoluteUserPathName("proj1.wbpj")) # Read project from second location
GetAllFiles
Gets the list of all files that have been registered with the project (even if external to the project directory)
or exist within the project files directory.
Type List<string>
GetAllSystems
Query to return the set of Data References to all System entities in the project.
Type DataReferenceSet
GetComponentTemplate
Query to return the Data Reference to the Component Template of the given name.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1082 of ANSYS, Inc. and its subsidiaries and affiliates.
Type DataReference
Required Arguments
Type string
GetCurrentRegisteredFiles
Gets the files registered with the project.
Type DataReferenceSet
GetDesignPointUpdateSettings
Query to return the singleton DesignPointUpdateSettings.
Type DataReference
GetFileReference
Gets the File Reference to a registered file based upon the file reference's name. Throws an Invalid
Operation Exception if a matching File Reference is not found.
Return The data reference of the file whose name matches the supplied paramet-
er.
Type DataReference
Required Arguments
Type string
GetFilesForDirectory
Gets the set of data references to registered files within a directory.
Type DataReferenceSet
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1083
Namespaced Commands
GetFileType
Returns a reference to a FileType data entity, given the data entity name of the FileType object.
Type DataReference
Required Arguments
Type string
GetFrameworkBuildVersion
Get the current framework build version.
Type string
GetLicenseNames
Query to return license features ID and names.
GetMaxProjectPathLength
Gets the max project path length created in WorkBench based on the project directory and project
name.
Type int
Required Arguments
Type string
Type string
GetMessages
Returns DataReferences for all stored messages, ordered by message publication date/time with most
recent messages first.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1084 of ANSYS, Inc. and its subsidiaries and affiliates.
Type DataReferenceSet
GetNeededLicenses
Query to return the needed licenses to update project.
GetPersistedProjectVersion
Given the path to a WB project, return the last-saved-in version. Note: The command will return '00' if
a project is not supplied and the current session project has not been saved.
Return The Project's persisted version (e.g, 120, 121, 130, 140, 145, ...).
Type string
Optional Arguments
Type string
GetProjectDirectory
Gets the full path to the current project directory.
Type string
GetProjectFile
Gets the full path of the current project file (*.wbpj).
Type string
GetProjectTemplate
Query to return the Project Template of the given name.
Type DataReference
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1085
Namespaced Commands
GetProjectUnitSystem
Gets the current unit system for the project.
Type DataReference
GetPropertyExpression
Gets the expression defining a data entity property's value.
Return Returns the expression that currently defines the property's value.
Type string
Required Arguments
Type DataReference
Type string
GetQuantityUnitForUnitSystem
Gets the unit for a quantity in the specified unit system.
Type string
Required Arguments
Type string
Type string
GetRegisteredFile
Gets the File Reference to a registered file based upon the file's path.
Return The data reference of the file whose location points to the specified path.
Null if no data reference is found.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1086 of ANSYS, Inc. and its subsidiaries and affiliates.
Required Arguments
Type string
GetRegisteredFilesForDirectory
Gets list of File References for a directory path.
Return The list of data reference of files whose location root is DirectoryPath.
Empty list if no data reference is found.
Type DataReferenceSet
Required Arguments
Type string
GetSchematicSettings
Query to return the singleton SchematicSettings.
Type DataReference
GetScriptVersion
returns the software version that the current script that is being executed is compliant with
Return the software version that the current script that is being executed is
compliant with
Type string
GetSolveManagerQueues
Query to return queues available from a solver manager host.
Type List<string>
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1087
Namespaced Commands
GetSystem
Query to return the Data Reference to the system of the given name.
Type DataReference
Required Arguments
Type string
GetTableData
GetData will return the data in a table.
Return A List of Strings or a List of List of Strings for the requested range.
Type List<Object>
Required Arguments
Type DataReference
Optional Arguments
ColumnRange A Tuple of the column starting index and ending index to access the data. The default is (0,
maximumColumns - 1). A single index may be used also to return a single column. The first
column has an index of 0 (zero).
Type Object
RowRange A Tuple of the row starting index and ending index to access the data. The default is (0,
maximumRows - 1). A single index may be used also to return a single row. The first row has
an index of 0 (zero).
Type Object
Example
This example illustrates data retrieval from a table.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1088 of ANSYS, Inc. and its subsidiaries and affiliates.
colMajorArr
GetTabularData
Returns the tabular data associated with the data entity.
Type Object
Required Arguments
Type DataReference
Optional Arguments
AsDictionary If set to true, the data will be returned as a dictionary where the keys are variable names
and the values are the data for each variable. If set to false, the data will be returned
in scalar or list format without the variable names.
Type bool
ColumnMajor If set to true, the data will be returned in column-major order. If set to false, the data
will be returned in row-major order.
Type bool
EndIndex The end index for requesting a subset of the data (zero-based).
Type int
SheetName Specifies the sheet name when the data contains multiple sheets.
Type string
SheetQualifiers Used to pass in the qualifiers to select between multiple sheets with the same name.
This is a dictionary of qualifiers and values.
StartIndex The start index for requesting a subset of the data (zero-based).
Type int
Default Value 0
Variables Names of the variables for which data is requested (string or list of strings).
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1089
Namespaced Commands
Type Object
Example
In this example, all data is requested for the given tabular data entity.
tabData1.GetData()
tabData1.GetData(ColumnMajor=False)
tabData1.GetData(AsDictionary=True)
In this example, data for variables Density and Temperature is requested in dictionary format.
GetAllTeamcenterConnections
A query to return all Teamcenter geometry connections.
Type List<string>
GetTemplate
Query to return a System Template reference, based on the template name and additional solver spe-
cification.
Type DataReference
Required Arguments
Type string
Optional Arguments
Type string
GetUnitsDisplaySettings
Gets the value of units display settings ("DisplayValuesAsDefined" or "DisplayValuesInProjectUnits").
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1090 of ANSYS, Inc. and its subsidiaries and affiliates.
Return The current value of the Units display setting.
Type string
GetUnitSystem
Gets a reference to the UnitSystem entity of the given internal name.
Type DataReference
Required Arguments
Type string
GetUnitSystemsNames
Gets the internal names of all currently defined unit systems (Predefined and Custom Unit Systems).
Type List<string>
GetUserFilesDirectory
Gets the current user_files directory.
Type string
GetUserPathRoot
Gets the current user path root.
Type string
ImportFile
Imports a file into the project. The result of the import varies, dependent upon the file type's defined
import behavior. Usually a corresponding system is created in the project view. Sometimes, the file is
simply added to the files view. To be imported, a file's type must be registered and the ImportFileCom-
mandName property must be non-null. Use FileTypeRepository.RegisterFileTypeTemplate or FileTypeTem-
plateRecord.ImportFileCommandName to specify the command to be invoked when importing a file
of a given type.
Required Arguments
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1091
Namespaced Commands
Type string
Optional Arguments
FileType The reference to the type of the file to import. If not specified, the type will be inferred from the
file's extension.
Type DataReference
ImportJournalVariables
Imports any variables defined in the currently-recorded journal file into the scripting environment so
they can be accessed in the command window.
ImportUnitSystem
Imports a unit system from a Units .xml file.
Type DataReference
Required Arguments
Type string
Optional Arguments
Type string
IsProjectUpToDate
A query to determine if all systems and their components in the project are up to date.
Type bool
MergeRsmProject
Merging multiple project tasks solved from RSM design point updates into the current project. This
command should *NOT* be used to merge any un-related projects. Solved projects may be either inter-
mediate or final results.
Required Arguments
MergingProjects The dictionary contains full file path of base project of the RSM project as key, and a
dictionary of the full file path to the updated RSM project and its design points to be
merged into the current project as value. The file paths can be either standard wbpz
file or partial wppz file or wbpj file. If the project is a standard wbpz or partial wppz
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1092 of ANSYS, Inc. and its subsidiaries and affiliates.
archive, it will be unpacked to a sub-directory (whose name is the same as archive file
name) under the same directory as the wbpz directory first before merging.
Optional Arguments
Type bool
KeepFilesInRsmProject Determines whether we should keep the project files from the (unarchived)
RSM project after it is merged into the current project. Note that keeping the
RSM project will significant slow down the project file merging performance
and will require more disk space. If this option is false, it is up to the caller to
backup the original project first. Also note that if the ProjectFilePath is a *.wbpz
file, it will not be affected.
Type bool
Overwrite If the ProjectFilePath is an archive file (*.wbpz), and if the same unpacked
project already exists on the same directory, this flag determines whether we
should overwrite it.
Type bool
Type bool
Example
The following example illustrates how this command may be used to merge all Design Points from RSM-
solved projects into the current project. Existing Rsm Project files are retained. Any existing archive with
the same name in the destination project will be overwritted. The project will be first saved using a revertible
save.
MoveFile
Moves a file to a new directory. Either the File argument or the FilePath argument must be specified.
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1093
Namespaced Commands
Optional Arguments
BackUp Specifies whether to back up the file before the move. This optional argument's default value is
true.
Type bool
File A reference to the file to be moved. A file reference can be obtained from commands and queries
like RegisterFileCommand and GetRegisteredFileQuery.
Type DataReference
Type string
Example
This example illustrates a path-based file move procedure. The specified file will be moved to the specified
destination directory path.
MoveFile(FilePath=r"C:\Users\anyuser\myTextFile.txt",
NewDirectoryPath=r"C:\Users\anyuser\newfolder")
This second example illustrates a reference-based file move procedure. The specified file will be
moved to the specified destination directory path.
file1 = GetRegisteredFile(FilePath=r"C:\path_to_file\file.txt")
MoveFile(SourceFile=file1,
NewDirectoryPath=r"C:\Users\anyuser\newfolder")
This final example also illustrates a reference-based file move procedure. The specified file will be
moved to the specified destination directory path. The file will not be backed up prior to the move.
file1 = GetRegisteredFile(FilePath=r"C:\path_to_file\file.txt")
MoveFile(SourceFile=file1,
NewDirectoryPath=r"C:\Users\anyuser\newfolder",
Backup=False)
Open
Opens a Workbench project from the specified .wbpj file.
Required Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1094 of ANSYS, Inc. and its subsidiaries and affiliates.
Refresh
Refreshes the input data for the entire project by reading changed data from upstream sources. Does
not perform any calculations or updates based on the new data.
RegisterFile
Registers the specified file with the project. Either the FilePath argument or the RepositoryFile argument
must be specified.
Return Holds the reference to the registered file as the output value.
Type DataReference
Optional Arguments
Type string
FileType The reference to the type of the file to register. If not specified, the type will be inferred from
the file's extension.
Type DataReference
Example
This example illustrates a path-based file registration procedure. The specified file will be registered and
the resulting file reference will be returned.
file1 = RegisterFile(FilePath=r"C:\Users\anyuser\myTextFile.txt")
This second example illustrates a file type based file registration procedure. The specified file will
be registered with the corresponding (supplied) file type and the resulting file reference will be re-
turned.
fileType1 = GetFileType(Name="MyFileType")
file1 = RegisterFile(FilePath=r"C:\Users\anyuser\myFile.abc",
FileType=fileType1)
RemovePropertyTable
Remove a table reference from a property to prevent its use in an expression. If the property does not
support an expression an error will occur.
Required Arguments
Index The integer which uniquely identifies the Table for use in the expression of the Property.
Type uint
Parent The DataReference of the object which has the Property that the Table should be removed from.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1095
Namespaced Commands
Property The String which provides the path of the property on the Parent.
Type string
Example
RenameFile
Renames a file. Either the File argument or the FilePath argument must be specified.
Required Arguments
New- The new file name, excluding the directory path. To change the directory, see MoveFileCommand.
Name
Type string
Optional Arguments
BackUp Specifies whether to back up the file before renaming it. This optional argument's default value
is true.
Type bool
File A reference to the file to be renamed. A file reference can be obtained from commands and
queries like RegisterFileCommand and GetRegisteredFileQuery.
Type DataReference
Type string
Example
This example illustrates a path-based file rename procedure. The specified file will be renamed with the
specified new name.
RenameFile(FilePath=r"C:\Users\anyuser\myTextFile.txt",
NewName="myTextFileRENAMED.txt")
This second example illustrates a reference-based file rename procedure. The specified file reference
will be renamed with the specified new name.
file1 = GetRegisteredFile(FilePath=r"C:\path_to_file\file.txt")
RenameFile(File=file1,
NewName="fileRENAMED.txt")
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1096 of ANSYS, Inc. and its subsidiaries and affiliates.
This final example also illustrates a reference-based file rename procedure. The specified file will be
renamed with the specified new name. The file will not be backed up prior to the move.
file1 = GetRegisteredFile(FilePath=r"C:\path_to_file\file.txt")
RenameFile(File=file1,
NewName="fileRENAMED.txt",
Backup=False)
RenameUnitSystem
Renames a unit system.
Required Arguments
Type string
Type string
Reset
Resets Workbench to an empty project. Any unsaved changes in the current project are lost.
Resolve
A command used to resolve the data object to make it consistent with the rest of the data model
Required Arguments
Type DataReference
ResumeBackgroundDesignPointUpdate
Resume given design point update session previously submitted for remote execution.
Return Optional output which will be set immediately to the input session. It is
provided for the convenience of the invoking code so that the same type
of output can be returned from this vs. UADP command.
Type DataReference
Optional Arguments
Session If not specified, top level background UADP sessions will be resumed.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1097
Namespaced Commands
ResumeDesignPointUpdates
Resume design point updates suspended waiting for subtasks executed in background; or resume sus-
pended parametric updates.
RunScript
Executes a Workbench script file from the specified location.
Required Arguments
Type string
Save
Saves the current project to disk.
Optional Arguments
Type string
Type bool
SaveProjectArchiveToTeamcenter
Saves a project archive to Teamcenter. The project archive must be created before calling this function.
Required Arguments
Type string
Type string
Type string
Optional Arguments
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1098 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
Type bool
Type string
Type string
Type string
Type string
Type string
Type string
Type string
Type string
Type string
Type string
Type int
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1099
Namespaced Commands
Example
Saves a project archive to Teamcenter
SaveProjectArchiveToTeamcenter(ArchiveFileName=r"C:\Users\AnsUser\simpleStructural.wbpz",
TeamcenterUserName="infodba",
TeamcenterUserPassword="infodba",
ItemName="ANS0048",
ItemRevision="001",
Decription="Workbench2 Project Archive")
SetDesignPointUpdateOption
Set the design point updates run mode.
Required Arguments
Type JobRunMode
SetProjectUnitSystem
Sets the unit system for the current project.
Return A reference to the UnitSystem entity that is now the project unit system.
Type DataReference
Required Arguments
UnitSystemName The internal name of the unit system to be used in the project.
Type string
SetQuantityUnitForUnitSystem
Sets the unit for a Quantity in the specified unit system. Changing Base or Common units will change
derived units if appropriate. Note: Quantity unit for a predefined unit system cannot be changed. Note:
Only consistent units (SI or US Customary) are allowed.
Return A dictionary of the Quantity names and new units for all resulting quantity
changes. This will be more than just the target quantity if a base unit is
changed.
Required Arguments
Type string
Type string
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1100 of ANSYS, Inc. and its subsidiaries and affiliates.
UnitSystemName The internal name of the unit system to be changed.
Type string
Example
The following example illustrates the setting of a quantity unit in a given unit system.
changedUnits = SetQuantityUnitForUnitSystem(UnitSystemName="myUnitSystem",
QuantityName="Temperature",
Unit="C")
SetScriptVersion
Sets the command API version used when executing a script.
Required Arguments
Version The command API version required to run the script. This string can either a 2 or 3 part version
string.
Type string
SetTableData
SetData will overwrite the data in a table beginning at the specified location.
Required Arguments
Column An Integer index or the String name of the column (case-sensitive) to begin setting data. The first
column has an index of 0 (zero).
Type Object
Data A String or List of Strings which specifies the data to set at the given row and column of the table.
The String must be a valid Quantity string in the form "value [units]". If a List is used see the DataOrder
argument for behavior.
Type List<Quantity>
Row The Integer index of the row of the table to begin setting data. The first row has an index of 0 (zero).
Type int
Table The DataReference of the table which will have data changed.
Type DataReference
Optional Arguments
DataOrder An enum of Row or Column which indicates if the Data is entered in a row-major or column-
major order. The default is Row.
When the DataOrder is Row the data is set beginning at the specified position and con-
tinues in the row. If the operation for the List of data would exceed the number of
columns an error will occur.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1101
Namespaced Commands
When the DataOrder is Column the data is set beginning at the specified position and
continues in the column. If the operation for the List of data would exceed the number
of rows an error will occur.
Type DataOrder
Example
This example illustrates setting data in a table.
# NameSpace is the Addin namespace in use (e.g. Study, EngData, etc.) which may have its specific CreateTa
# drParent is the DataReference of an object that has been previously created
table1 = NameSpace.CreateTable(Parent=drParent, Columns=[("Temperature","Temperature"),("Displacement","Len
table1.AddRow(Data=["100 [C]","1.0 [m]"])
table1.AddRow(Data=["200 [C]",".02 [m]"])
table1.AddRow(Data=["300 [C]",".06 [m]"])
tableData = ["100 [C]","0.0 [m]"]
table1.SetData(Row=0, Column=0, Data=tableData)
SetTabularData
Set tabular data associated with the data entity.
Required Arguments
Type DataReference
Optional Arguments
Data Sets the data using a dictionary form. The keys are the variable names and the values
are the data. The use of this argument is mutually exclusive with "Values" and "Vari-
ables".
Index Specifies the starting location used to set the data (zero-based). A value of -1 indicates
that the data should be appended to the existing data.
Type int
Default Value 0
SheetName Specifies the sheet name when the data contains multiple sheets.
Type string
SheetQualifiers Used to pass in the qualifiers to select between multiple sheets with the same name.
This is a dictionary of qualifiers and values.
Values List of data values set in conjunction with the "Variables" parameter. This parameter
and the "Data" parameter are mutually exclusive.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1102 of ANSYS, Inc. and its subsidiaries and affiliates.
Type List<List<Object>>
Variables Names of the variables for which data is being set. This parameter and and the "Data"
parameter are mutually exclusive.
Type List<string>
Example
#
# Create a new Engineering Data System and access Structural Steel
#
template1 = GetTemplate(TemplateName="EngData")
system1 = template1.CreateSystem()
engineeringData1 = system1.GetContainer(ComponentName="Engineering Data")
matl1 = engineeringData1.GetMaterial(Name="Structural Steel")
#
# Change the value of a simple single-valued property
#
matlProp1 = matl1.GetProperty(Name="Density")
matlProp1.SetData(
Variables="Density",
Values="8500 [kg m^-3]")
#
# Set Temperature-dependent data for Elasticity based
# on lists of variables and values.
matlProp2 = matl1.GetProperty(Name="Elasticity")
temperature = ["400 [K]", "600 [K]", "800 [K]"]
E = ["2e5 [MPa]", "1.9e5 [MPa]", "1.6e5 [MPa]"]
matlProp2.SetData(
Variables = ["Temperature","Young's Modulus"],
Values = [temperature, E])
#
# Change the Temperature for the second table entry.
#
matlProp2.SetData(
Index = 1,
Variables = "Temperature",
Values = "625 [K]")
#
# Set a list for Poisson's Ratio starting at the second table entry.
#
matlProp2.SetData(
Index = 1,
Variables = "Poisson's Ratio",
Values = [0.3, 0.3])
#
# Set Temperature-dependent property data for the Coefficient of Thermal Expansion
# using a dictionary. The dictionary key is the Variable name,
# followed by the list of values for the variable.
#
matlProp3 = matl1.GetProperty(Name="Coefficient of Thermal Expansion")
newData = {"Temperature": ["200 [F]","400 [F]","600 [F]","800 [F]","1000 [F]"],
"Coefficient of Thermal Expansion" : ["6.3e-6 [F^-1]", "7.0e-6 [F^-1]",
"7.46e-6 [F^-1]", "7.8e-6 [F^-1]",
"8.04e-6 [F^-1]"]}
matlProp3.SetData(
SheetName="Coefficient of Thermal Expansion",
SheetQualifiers={"Definition Method": "Secant", "Behavior": "Isotropic"},
Data = newData)
SetTabularDataQualifier
Changes the values of a specifiec qualifier in a data table.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1103
Namespaced Commands
Required Arguments
Type string
Type DataReference
Type string
Optional Arguments
SheetName The name of the tabular data sheet that contains the qualifier.
Type string
SheetQualifiers SheetQualifiers can be used to pass in the qualifiers to select between multiple
sheets witht the same name. This is a dictionary of the Qualifier and its Value.
VariableName The name of the Variable that contains the qualifier to be changed.
Type string
VariableQualifiers VariableQualifiers can used to pass in the qualifiers to select between multiple
variables witht the same name. This is a dictionary of the Qualifier and its Value.
Example
The following example changes the 'Derive From' setting within an Isotropic Elasticity material property
to be "Bulk Modulus and Poisson's Ratio".
SetUnitsDisplaySettings
Sets units display settings.
Required Arguments
DisplaySettings The new value to be used for Unit display settings. Allowed values are:
DisplayValuesAsDefined
DisplayValuesInProjectUnits
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1104 of ANSYS, Inc. and its subsidiaries and affiliates.
Type string
SetUserPathRoot
Sets the current user path root. The root path facilitates portability of session journals by allowing rel-
ative rather than absolute paths to be recorded. During command journal replay, paths are reconstructed
using the active user path root setting.
Required Arguments
Type string
Unarchive
Restores a project from an archive to the specified location.
Required Arguments
Type string
Type bool
Optional Arguments
ProjectPath The path to which the archived project will be uncompressed. If not specified, it will be ex-
tracted to a directory under "ProjectTemporaryFilesFolder" set by user preference. If the
"ProjectTemporaryFilesFolder" is not set, it will be extracted to a directory under system
temp directory.
Type string
Example
This example illustrates an unarchive procedure. The specified archive will be un-archived to the specified
project file path. If the project file path already exists, it will be overwritten since Overwrite=True.
Unarchive(ArchivePath=r"C:\Users\anyuser\myProjectArchive.wbpz",
ProjectFilePath=r"C:\Users\anyuser\myProject.wbpj",
Overwrite=True)
UpdateAllDesignPoints
Updates all design points or a subset of them if specified.
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1105
Namespaced Commands
Optional Arguments
CannotCompleteBehavior Determines the action to take when a component cannot be updated but
does not have an error, for example if it needs user intervention.
Type UpdateErrorBehavior
DesignPoints The set of design points to update. If this parameter is not given, all out of
date design points are updated.
Type List<DataReference>
Type UpdateErrorBehavior
Parameters The set of parameters to update. If this parameter is not given, all parameters
are updated.
Type List<DataReference>
Example
The following example illustrates a more verbose usage of UpdateAllDesignPoints, as general users will
typically call just UpdateAllDesignPoints(). The following call processes two design points for all parameters
(all when None is specified), skips the executing design point when observing an error, and stops if a design
point update cannot be completed.
dps = []
dp = Parameters.GetDesignPoint("1")
dps.append(dp)
dp = Parameters.GetDesignPoint("2")
dps.append(dp)
UpdateAllDesignPoints(DesignPoints=dps,
Parameters=None,
ErrorBehavior="SkipDesignPoint",
CannotCompleteBehavior="Stop")
Update
Updates all components in the project by refreshing all input data and performing local calcuations to
produce new output if the component is out of date.
ValidateDesignPointUpdateSettings
Validate DesignPointUpdateSettingsEntity initialization.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1106 of ANSYS, Inc. and its subsidiaries and affiliates.
Study
This namespace holds top-level commands and queries related to Study
CreateTask
Create a task, given the name for the task type.
Type DataReference
Required Arguments
Type DataReference
Type string
Optional Arguments
Input Optional, the task component which should be an upstream source for the created component.
Type DataReference
Output Optional, the task component which should be downstream of the created component.
Type DataReference
Example
Required example does not exist.
CreateGroup
Create a new task group based on the given task group name.+
Type DataReference
Required Arguments
Type string
GetAllEngineeringDataInProject
Find all engineering data objects in the project.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1107
Namespaced Commands
Type DataReferenceSet
GetAllLeafTasksInProject
Returns all leaf tasks in the project.
Type DataReferenceSet
GetAllRootTasksInProject
Returns all root tasks in the project.
Type DataReferenceSet
GetAllTasksInProject
Returns all tasks in the project.
Type DataReferenceSet
GetInputMesh
If available for a task, return the input mesh; otherwise null.
Type DataReference
Required Arguments
Type DataReference
GetInputModel
If available for a task, return the input model; otherwise null.
Type DataReference
Required Arguments
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1108 of ANSYS, Inc. and its subsidiaries and affiliates.
GetOutputMesh
If available for a task, return the output mesh; otherwise null.
Type DataReference
Required Arguments
Type DataReference
GetOutputModel
If available for a task, return the output model; otherwise null.
Type DataReference
Required Arguments
Type DataReference
GetReferences
Returns a list of reference strings of the specified model components.
Type List<string>
Required Arguments
Type DataReferenceSet
GetReferenceString
Returns a reference string for a user object. This is a special case query, for those objects that contain
references, not stored in LocationSets. For now, works on Locator objects only, and is to be used to
retrieve the surface area of bounded surfaces: Sphere, Torus, and CappingSurface only.
Type string
Required Arguments
ObjectReference The DataReference for the specified object that is assumed to be Analytic.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1109
Namespaced Commands
Type DataReference
GetTaskUserObjectBelongsTo
Returns a data reference to a Task that the provided UserObject maps to. May return null.
Type DataReference
Required Arguments
Type DataReference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1110 of ANSYS, Inc. and its subsidiaries and affiliates.
Data Types
Data Types
A breakdown of the types represented in this document
AdaptKrigOutType
Enumeration for the Output Variable Combinations type when refining for the Kriging algorithm.
Possible Values
AK_MAXOUT Maximum Output
AK_ALLOUT All Outputs
AK_SUMOUT Sum of Outputs
Aggressive
Used to specify whether mesh may deviate from geometry as a result of wrapper surface improvement.
The default value is MeetTarget.
Possible Values
MeetTarget Modify the geometry as needed to meet
quality target.
MaintainGeometry Compromise targets to maintain geometry.
AnalysisType
3D/2D import option
Possible Values
AnalysisType_3D Import all 3D objects
AnalysisType_2D Import only 2D objects (The model must be
in the x-y plane.)
AutoAsymmetryBehavior
A flag to notify the program if auto-asymmetry should be used in the physics solution. This option is
available if the Symmetry Behavior is set to Yes.
Possible Values
Yes
No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1111
Data Types
AxesRangeModes
Enumeration of the Automatic Range modes for output parameters.
Possible Values
OutputParameterMinMax The range of the output parameter axis is de-
termined from the minimum and maximum
of the parameter (min-max search of DPs min-
max)
ChartData The range of the output parameter axis is de-
termined by the min and max of the chart's
data.
Axis
The specification of allowed chart axes.
Possible Values
None
X_Axis
Y_Axis
Z_Axis
AxisDefineBy
Options for defining an axis
Possible Values
Direction
Point
AxisType
Options specifying which axis to define
Possible Values
XAxis
YAxis
ZAxis
BiasMethod
Used to specify the bias option. Currently, this is always SmoothTransition.
Possible Values
SmoothTransition
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1112 of ANSYS, Inc. and its subsidiaries and affiliates.
BiasType
Used to specify the option for bias type. The default value is Constant.
Possible Values
Right
Left
CenterIn
CenterOut
Constant
BladeLoftType
Enumeration of the possible blade lofting directions.
Possible Values
Streamwise
Spanwise
BladeType
Blade type for export to BladeGen
Possible Values
IGV IGV
Rotor Rotor
OGV OGV
BladeType
Blade type for export to BladeGen
Possible Values
IGV IGV
Rotor Rotor
OGV OGV
BMunitsType
BladeGen/BladeEditor units type
Possible Values
m Create blade model in metres
cm Create blade model in cm
mm Create blade model in mm
inches Create blade model in inches
ft Create blade model in feet
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1113
Data Types
BMunitsType
BladeGen/BladeEditor units type
Possible Values
mm Create blade model in mm
inches Create blade model in inches
BodyGrouping
The body grouping property used when importing the model.
Possible Values
None No body grouping action should be per-
formed.
Material The model should be grouped by material IDs.
ElementType The model should be grouped by element
type IDs.
Thickness The model should be grouped by thickness
IDs.
Components The model should be grouped by component
IDs.
Unknown The body grouping property is not set.
BodyGroupingType
Type of geometry that is being attached.
Possible Values
MaterialNumber
MaterialNumberAndThickness
BoltDefineBy
No details are provided for this entry.
Possible Values
ProgramControlled
UserDefined
bool
This type represents a Boolean value. Valid values are 'True' or 'False'.
BoxCushionType
Box cushion type options.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1114 of ANSYS, Inc. and its subsidiaries and affiliates.
Possible Values
Uniform Uniform cushion around box.
Nonuniform Non-Uniform cushion around box.
CalculationFrequency
No details are provided for this entry.
Possible Values
AllTimePoints
LastTimePoint
EquallySpacedTimePoints
SpecifiedRecurrenceRate
Never
CalculationType
The available analysis types for an analysis.
Possible Values
Static Computation of the system that is time inde-
pendent.
Modal Computation of the dynamic response of a
system under excitation
All All domains.
CandidatesColoringMethods
Enumeration of the Coloring methods used for Candidates chart.
Possible Values
ColoringPerPointType The color is used to distinguish the different
types of candidate points (Starting Points,
Candidate Points, etc).
ColoringPerOutputNature The color is used to distinguish the nature of
the output values (Response Surface or Simu-
lation).
CappingSurfaceConstructionMethod
Options for choosing selection method for capping surface.
Possible Values
CappingSurfaceFacesConstraint Construct capping surface by capping all
laminar loops of selected faces.
CappingSurfaceEdgesConstraint Construct capping surface by capping all loops
of selected edges.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1115
Data Types
CasePrecision
Precision of FLUENT Session.
Possible Values
Single
Double
CCDTemplateType
Enumeration for the Template Type for CCD algorithm.
Possible Values
CCD_STANDARD_TEMPLATE Standard
CCD_ENHANCED_TEMPLATE Enhanced
CentralCompositeDesignType
Enumeration of the available design types for the Central Composite Design algorithm.
Possible Values
CCDTYPE_FACE_CENT Face-Centered
CCDTYPE_ROT Rotatable
CCDTYPE_VIF_OPT VIF-Optimality
CCDTYPE_G_OPT G-Optimality
CCDTYPE_AUTO Auto Defined
ChartAxes
The possible chart axes.
Possible Values
XAxis X axis
YAxis Y axis
ZAxis Z axis
XTopAxis Secondary X axis drawn at the top of the
chart.
YRightAxis Secondary Y axis drawn at the right of the
chart.
SweepAxis An axis used to sweep over an additional
parameter.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1116 of ANSYS, Inc. and its subsidiaries and affiliates.
ChartColoringMethods
Enumeration of the Coloring methods used for Tradeoff and Samples charts.
Possible Values
ColoringPerFront A different color for each Pareto fronts (several
samples have the same color).
ColoringPerSample A different color for each sample.
ChartStyle
Allowed styles of a multi-axis chart.
Possible Values
PCP Parallel Coordinate Plot
Spider Spider Plot
ChartType
Enumeration for the chart type.
Possible Values
ChartUnknown Unknown
ChartResponse Response
ChartTradeoff Tradeoff
ChartSamples Samples
ChartDistributions Distributions
ChartCorrelation Correlation
ChartSpiderResponses Spider
ChartLocalSensitivity Local Sensitivity
ChartSensitivities Sensitivities
ChartStatistics Statistics
ChartCorrelationScatter Correlation Scatter
ChartDesignPointsParallel Parameters Parallel
ChartDesignPointsCurves Design Points vs. Parameters
ChartDetermination Determination Matrix
ChartPredictedvsObserved Predicted vs. Observed
ChartDeterminationHistogram Determination Histogram
ChartConvergence Convergence
ChartLocalSensitivityCurves Local Sensitivity Curves
ChartCustom Custom Chart
ChartCandidates Candidates
ChartHistory History
ChartConvergenceCriteria History
ChartParameterRelationship History
ClearanceType
Enumeration of the tip clearance specification options.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1117
Data Types
Possible Values
None
RelativeLayer
AbsoluteLayer
ClearanceType
inpeller clearance type
Possible Values
Ratio tip clearance specified as a ratio
User tip clearance specified directly
ClearMessagesOption
Options when deleting messages.
Possible Values
KeepMessagesIfSourceMatched Do not delete message if its source matches
the specified one.
ClearMessagesIfSourceMatched Delete message if its source matches the
specified one.
ClearMessagesIfSourceNotMatched Delete message if its source does not match
the specified one.
IgnoreSource Do not check source attribute.
CollisionAvoidance
Used to specify the strategy to be used for avoiding collisions between inflated surface meshes. The
default value is StairStepping.
Possible Values
None No check for layer collisions.
LayerCompression Inflation layers are compressed in collision
areas.
StairStepping Prism layers are stair stepped to avoid collision
and maintain the gap defined by gap factor.
Color
This type represents a 32-bit Red/Green/Blue/Alpha color.
When working with Workbench Scripting, a color is represented as a four entry string in the form "R G
B A", where each entry is in the range 0-255. Alpha (A) is optional and will be set to 255 (opaque) if not
supplied. For example:
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1118 of ANSYS, Inc. and its subsidiaries and affiliates.
ComparePartsOnUpdateMethod
Compare parts on update options
Possible Values
ComparePartsMethod_None Do NOT compare parts on update -- default
value
ComparePartsMethod_Associatively Compare parts using associative mechanism,
if geometry interface is non-associative expect
failures in compare
ComparePartsMethod_NonAssociatively Compare parts using entity comparisons based
on index of second model to original attach
ComparePartsTolerance
Compare parts on update tolerance options
Possible Values
ComparePartsTolerance_Loose A greater loosening of the default tolerance
ComparePartsTolerance_Normal Looser tolerance than default to allow some
wiggle room for slight deviations
ComparePartsTolerance_Tight Default, existing behavior
ComponentConfigType
List of available component configurations
Possible Values
ImpellerMainOnly impeller (main blade only)
ImpellerOneSplitter impeller (main blade + 1 splitter)
ImpellerTwoSplitters impeller (main blade + 2 splitters)
ConductanceControlType
Switch to use program controlled conductance value or enter value.
Possible Values
ProgramControlled
Manual
ConnectionCreationMode
It tells if this connection was created automatically by the program or created manually by the user
Possible Values
Automatic
Manual
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1119
Data Types
ConstraintHandlingType
Enumeration of the Constraint Handling types.
Possible Values
AsGoals Relaxed constraint.
AsHardConstraints Strict constraint.
ConstraintType
Enumeration of the possible optimization constraint types.
Possible Values
CT_NoPreference No constraint defined.
CT_NearTarget Equals target.
CT_LessThanTarget Less than target.
CT_GreaterThanTarget Greater than target.
CT_InsideBounds Inside bounds.
ConstructionAlgorithm
Options for choosing construction algorithm for capping surface.
Possible Values
Delaunay Construct capping surface by using delaunay
triangulation.
FillHole Construct capping surface by using hole filling
algorithms.
ConvexHull Construct capping surface by using convex
hull approach.
Automatic Construct capping surface by choosing appro-
priate construction algorithm.
ContactDetectionPoint
Specify the location of contact detection to be used in the analysis in order to obtain a good convergence.
Possible Values
ProgramControlled
DetectOnGaussPoint
DetectNodalNormalFromContact
DetectNodalNormalToTarget
DetectNodalProjectedNormalFromContact
ContactPairOutputYesNo
Activate Contact Pair Output in MAPDL solution.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1120 of ANSYS, Inc. and its subsidiaries and affiliates.
Possible Values
kNo
kYes
ContactPhysicsSelection
Method for selecting the physics type: Program Controlled or Manual
Possible Values
ProgramControlled
Manual
ContactType
Type of contact for eg. Bonded, Frictional, Frictionless, etc.
Possible Values
Bonded
NoSeparation
Frictionless
Rough
Frictional
ConvectionMatrixType
Matrix type for the film coefficient: Diagonal or Consistent.
Possible Values
ProgramControlled
Diagonal
Consistent
CoordinateInputMethod
Options for definining vectors
Possible Values
Entry
Location
CoordinateSystemType
Enumeration to specify the coordinate system type for imported data.
Possible Values
Cartesian
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1121
Data Types
Cylindrical
CorrelationAutoStopType
Enumeration of the correlation Auto Stop types.
Possible Values
ExecuteAllSimulations Execute all Simulations.
EnableAutoStop Enable Auto Stop: execute Simulations iterat-
ively until the process converges or the max-
imum number of simulation specified is
reached.
CoupledAnalysisType
The valid coupling types
Possible Values
Undefined This is internal option used to cache the user
selection of analysis type. It cannot be spe-
cified by the user.
General Define the coupling by time steps
Transient Define the coupling by time intervals
Harmonic Define the coupling by frequency intervals.
The harmonic coupled analysis is not currently
supported.
CreateIntersectingEdgesForOverlappingBodies
Used to specify whether intersecting edges should be created for overlapping bodies. The default value
is No.
Possible Values
Yes
No
DampedSolverType
An enumeration for damped modal solver types as available from MAPDL solver.
Possible Values
ProgramControlled
FullDamped
ReducedDamped
DataContainerReference
A reference to a data container, similar to a DataReference referring to an entity.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1122 of ANSYS, Inc. and its subsidiaries and affiliates.
DataObject
Implements the virtual data model concepts for native C# code.
DataOrder
An enum of Row or Column which indicates if the Data is entered in a row-major or column-major order.
The default is Row.
Possible Values
Column Column-major
Row Row-major
DataReference
A Data Reference holds and manages a reference to a data entity in the Workbench data model.
DataReferenceSet
This type contains an ordered set of DataReferences. No modifications can be made to the contents.
DataTypeEnumeration
This enumeration represents all of the tensor types supported by the MPC variable.
Possible Values
AType An unknown type
Scalar A scalar
VectorXY A vector in x and y components
VectorYZ A vector in y and z components
VectorXZ A vector in x and z components
VectorXYZ A vector in x, y, and z components
VectorRA A vector in r and a components
VectorAZ A vector in a and z components
VectorRZ A vector in r and z components
VectorRAZ A vector in r, a, and z components
VectorRI A vector in r and i components
VectorIA A vector in i and a components
VectorRIA A vector in r, i, and a components
Tensor2XYZ A 2D tensor
Tensor4XYZ A 4D Tensor
SymTensor2XYZ A 2D symmetric tensor
SymTensor4XYZ A 4D symmetric tensor
AntisymTensor2XYZ An anti-symmetric tensor
DateTime
This type represents a date and time. The default format for printing a DateTime object is "DD/MM/YYYY
HH:MM:SS AMPM". Additional properties which can be examined on a DateTime object to extract extra
detail include Year, Month, Day, Hour, Minute, Second and Date.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1123
Data Types
DebugLevel
Debug levels for the log output. Increasing levels generates more detailed output in the log.
Possible Values
None No debug output
Level1 Level 1
Level2 Level 2
Level3 Level 3
Level4 Level 4
Level5 All Levels
Default Use Default Output Level
DeformationScaling
How much to deform the Results display
Possible Values
None
Actual
FiftyPercent
OneHundredPercent
TwoHundredPercent
FiveHundrenPercent
Custom
DelimiterType
Enumeration to specify the type of delimiter in imported data.
Possible Values
Comma
Semicolon
Space
Tab
UserDefined
DerivationType
The enum values for the Derivation property to use for the IsotropicElasticity values.
Possible Values
Unknown
YoungsModulusPoissonsRatio
ShearModulusPoissonsRatio
BulkModulusPoissonsRatio
YoungsModulusShearModulus
YoungsModulusBulkModulus
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1124 of ANSYS, Inc. and its subsidiaries and affiliates.
BulkModulusShearModulus
DerivativeApproximationType
Enumeration for the derivative approximation type.
Possible Values
DA_CentralDifference Central Difference
DA_ForwardDifference Forward Difference
DeterminationCoefficientChartModes
Enumeration of the Determination Coefficient chart modes.
Possible Values
Linear Display linear determination coefficients.
Quadratic Display quadratic determination coefficients.
Dictionary<Key, Value>
This type represents a data dictionary, where a Key is used to access an associated Value. When used
in scripting, a dictionary is created or printed using the form
myDict = {key1:value1, key2:value2, ...}
Python functionality can be used to examine dictionary keys, test for key existence and perform other
useful operations on dictionaries.
SolverCommandMode = Foreground
DisplayText = Solution Source
InitializationOption = CurrentSolutionData
LoadMResOptions = LastConfigOnly
ResultsFile = None
>>> myProps={"SolverCommandMode":"Background","InitializationOption":"InitialConditions"}
>>> cfxSolutionProperties1.SetEntityProperties(Properties=myProps)
# The above is equivalent to:
# cfxSolutionProperties1.InitializationOption ="InitialConditions"
# cfxSolutionProperties1.SolverCommandMode="Background"
DiffuserType
diffuser type
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1125
Data Types
Possible Values
Vaned vaned diffuser
Vaneless vaneless diffuser
DimensionsType
Enumeration to specify the dimensionality of imported data.
Possible Values
Dimension2D
Dimension3D
DirectionType
The direction the streamline is moving, relative to inlets and outlets
Possible Values
Backward
Forward
DistributionType
Enumeration of the possible parameter distribution types.
Possible Values
Uniform Uniform
Triangular Triangular
Gauss Normal
TruncGauss Truncated Normal
LogNorm Lognormal
Exponential Exponential
Beta Beta
Weibull Weibull
DotStyles
Styles of dot symbols. Default is none
Possible Values
None
Ellipse
Rect
Diamond
Hexagon
Triangle
DTriangle
UTriangle
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1126 of ANSYS, Inc. and its subsidiaries and affiliates.
LTriangle
RTriangle
Cross
XCross
Star
Default
double
This type represents a double-precision floating point number.
DurationType
The methods used to specify duration
Possible Values
NumberOfSteps The coupling will end at a given number of
steps
EndTime The coupling will end at a given time
EDesignPointScope
This describes specific groups of design points and is used by some commands that can work on a
variable number of design points EPS_CURRENT - current design point in parameter manager
EPS_PARAMETER_MANAGER - the parameter manager design point table EPS_DOE - parameter table
built from all the DOE components that enable parameters associated with the system in question
EPS_ALL - the combination of design points obtained by using the rules used for EPS_ALL and
EPS_PARAMETER_MANAGER
Possible Values
EPS_CURRENT
EPS_PARAMETER_MANAGER
EPS_DOE
EPS_ALL
EdgeSizingMethod
Used to specify if the edge sizing should be based on the element size or on the number of divisions.
Possible Values
ElementSize
EdgeDivisions
EffType
Impeller efficiency type
Possible Values
Automatic Efficiencies calculated from correlations
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1127
Data Types
ElementMidsideNodes
Used to define whether elements are created with or without midside nodes. The default value is
UseEngineeringIntent.
Possible Values
UseEngineeringIntent Determine whether midside nodes are kept
or dropped based on the Engineering Intent.
Dropped Elements are created without midside nodes.
Kept Elements are created with midside nodes.
ElementShape
Used to specify the mesh element shape for the bodies associated with this control.
Possible Values
Automatic
Tetrahedrons
Hexahedrons
EngineeringDataType
Supported types of engineering data.
Possible Values
Unknown
Material
Load
BeamSection
Mixture
EngineeringIntent
Used to define the kind of physics that is being studied in this simulation process (used in part-based
Meshing).
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1128 of ANSYS, Inc. and its subsidiaries and affiliates.
Possible Values
Unknown Intent of this process is not yet known due to
insufficient information in connected Physics
task(s).
StructuralOrThermalOrElectricConduction Intent of this process is a structural, electric
conduction and/or thermal simulation.
FluidFlow Intent of this process is a fluid flow simulation.
EntityType
Available expression entity types
Possible Values
Node
Face
Element
Edge
EquationSolverType
Equation Solver Types as available from MAPDL solver.
Possible Values
ProgramControlled
Direct
Iterative
Unsymmetric
Supernode
Subspace
EtaCorrelType
Efficiency correlation type
Possible Values
CaseyRobinson Casey-Robinson correlation
CaseyMarty Casey-Marty correlation
Rodgers Rodgers correlation
EtaCorrelType
Efficiency correlation type
Possible Values
Suhrmann Suhrmann's correlation
Baines Baines' correlation
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1129
Data Types
EtaImpType
impeller isentropic efficiency type
Possible Values
LinkToStage linked to stage efficiency
User user specified efficiency
EtaType
Stage efficiency type
Possible Values
User User defined efficiency
Correlation Efficiency calculated from correlation
EtaType
Stage efficiency type
Possible Values
User User defined efficiency
Correlation Efficiency calculated from correlation
EtaUserType
User specified stage efficiency type
Possible Values
Isentropic user-specified isentropic efficiency
Polytropic user-specified polytropic efficiency
ExcelConnectionState
Enumeration for the Excel Connection states
Possible Values
NotConnected The connection with Excel is not established
ConnectionAlive The connection is alive
ConnectionLost The connection has been lost
ExecutionControlConflictOptions
Options for handling execution control conflicts on Edit
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1130 of ANSYS, Inc. and its subsidiaries and affiliates.
Possible Values
Default
UseSetupExecutionControl
UseSetupExecutionControlAlways
UseSolutionExecutionControl
UseSolutionExecutionControlAlways
ExecutionControlSource
Enumeration for the execution control conflict resolution.
Possible Values
IssueWarning
UseExecutionControlFromSetup
UseExecutionControlFromSolution
ExitAngleType
Exit angle type
Possible Values
Absolute Absolute exit angle
Relative Relative exit angle
Expression<Type>
The Expression type is used to hold an expression that returns a result of a given type or a result in a
homogenous vector of the given type.
ExpressionType
Specifies the possible types of parameter expression.
Possible Values
Undefined An undefined(null) expression.
Constant An expression without dependency on other
parameter.
Derived An expression with dependency on other
parameters.
FileType
File Types recognized by FLUENT. Includes native FLUENT files as well as files that FLUENT can import
or export. The Unknown File Type is used when FLUENT is unable to recognize the file type.
For more details on the file types recognized by FLUENT, please refer to the FLUENT User's Guide.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1131
Data Types
Possible Values
Mesh
Case
Data
Bc
Pdf
S2s
Flamelet
Dtrm
Udf
Udflib
UdfSource
Wave
SurfaceMonitors
VolumeMonitors
ParticleInjections
BoundaryProfile
SolutionTranscript
SchemeFile
JOUFile
FluentResidualFile
InterpolateDataFile
registeredTypes
AbaqusFilbin
AbaqusInput
AbaqusOdb
Ansys
AnsysResults
CfxDefn
CfxResults
Cgns
CgnsMeshData
Ensight
Fidap
Fluent4
FluentMesh
Gambit
Hypermesh
IdeasUniv
LstcInput
LstcState
MarcPost
Mechanica
MetisCase
MetisZoneCase
Nastran
NastranOutput
PamDaisy
Patran
PatranResults
Pda
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1132 of ANSYS, Inc. and its subsidiaries and affiliates.
Prebfc
Plot3dGrid
Plot3dResults
StlAscii
StlBinary
TecplotBinary
VkiGeneric
Unknown
FillStyles
Style of any filled region. The default is None.
Possible Values
None
Solid
Dense
Medium
Sparse
Horizontal
Vertical
Cross
BDiagonal
FDiagonal
CrossDiagonal
Gradient
Default
FittingType
Enumeration for the Response Surface type.
Possible Values
FITTINGTYPE_SRS Standard Response Surface - Full second order
Polynomials
FITTINGTYPE_KRIGING Kriging
FITTINGTYPE_MARS Non Parametric Regression
FITTINGTYPE_NN Neural Network
FITTINGTYPE_SPARSEGRID Sparse Grid
FixFirstLayer
Used to specify whether the heights or ratios of the first inflation layer will be modified to avoid collision.
The default value is No.
Possible Values
Yes
No
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1133
Data Types
FlowType
Enumeration of the flow boundary condition options.
Possible Values
MassFlow
PressureRatio
PressureDifference
FluidType
Enumeration of the types of available fluids.
Possible Values
IdealGas
RealGas
Liquid
FormatType
Enumeration to specify the format type for imported data.
Possible Values
UserDefined
Delimited
Cdb
Axdt
FormulationType
Set the contact formulation to be used by the solver for a particular contact pair.
Possible Values
ProgramControlled
MultiPointConstraint
PurePenalty
NormalLagrange
AugmentedLagrange
GasModelType
gas model type
Possible Values
Ideal ideal gas model
Real real gas model
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1134 of ANSYS, Inc. and its subsidiaries and affiliates.
GasPropType
Gas properties type
Possible Values
Air Gas props - Air
AFR Gas props - Air/fuel ratio
Fixed Gas props - Fixed
GeometryAnalysisType
3D/2D Geometry import option
Possible Values
Type3D Import all 3D objects
Type2D Import only 2D objects (The model must be
in the x-y plane.)
GeometryAttachType
Type of geometry that is being attached.
Possible Values
ThreeDimensional
TwoDimensional
Unknown
GeometryStyleType
Geometry export style type
Possible Values
Interactive Create interactive geometry
Parametric Create parametric geometry
GoalType
Enumeration of the possible optimization objective types.
Possible Values
GT_NoPreference No objective defined.
GT_MaximumPossible Maximize.
GT_MinimumPossible Minimize.
GT_SeekTarget Seek target.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1135
Data Types
GPUAccelerator
Enumeration for the graphics acceleration library to be used by the Mechanical APDL editor.
Possible Values
None
Amd
Intel
NVIDIA
GrowthRateType
Determines height of inflation layers for given initial height and height ratio. The default value is Geo-
metric.
Possible Values
Exponential Height of inflation layer determined exponen-
tially.
Geometric Height of inflation layer determined geomet-
rically.
Linear Height of inflation layer determined linearly.
HubLEBetaType
Hub and Mean LE blade angle option
Possible Values
Cot Hub/Mean LE blade angle calculated using
cotangent (rel to Shroud LE beta)
Cos Hub/Mean LE blade angle calculated using
cosine (rel to Shroud LE beta)
User User defined hub and mean LE blade angles
ICCombustionSimulationType
Type of IC Engine Combustion simulation type.
Possible Values
ICSector 0 for sector
ICFullEngineFullCycle 1 for full engine full cycle
ICFullEngineClosedValves 2 for full engine IVC to EVO
ICIVCandEVOoption
IVC and EVO options
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1136 of ANSYS, Inc. and its subsidiaries and affiliates.
Possible Values
ICLiftCurv 0 lift curv profile
ICIVCandEVO 1 for IVC EVO option
ICSimulationType
Type of IC Engine Simulation.
Possible Values
ICSimulationColdFlow 0 for Cold Flow Simulation
ICSimulationPortFLow 1 for Port Flow Simulation
ICSimulationCombustion 2 for Combustion Flow Simulation
IDHandling
The ID handling property for the current object.
Possible Values
None No action must be carried out when renum-
bering the attributes of the current object.
Automatic The IDs of the attributes of the current object
must be automatically renumbered so that no
conflicts will happen.
Unknown The ID Handling property is not set.
ImpellerExportType
Impeller export type
Possible Values
Coupled Coupled to volute
Isolated Isolated impeller
ImpellerLengthType
impeller length ratio type
Possible Values
Automatic automatic
User user specified
ImpellerType
impeller type
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1137
Data Types
Possible Values
Unshrouded unshrouded impeller
Shrouded shrouded impeller
ImportanceLevel
Enumeration of the importance levels which can be associated with an optimization objective or con-
straint.
Possible Values
GI_MediumImportant Default
GI_LowImportant Lower
GI_HighImportant Higher
ImportWeightclass
Preference for imported weightclass, could be used for identifying weightclasses of imported parts
Possible Values
ImportWeightclass_Heavyweight Heavyweight - all geometry and topology
ImportWeightclass_Middleweight Middleweight - facet only faces
ImportWeightclass_Lightweight Lightweight - each body consists of a single
facetted face
ImportWeightclass_Featherweight Featherweight - parts are created along with
the tree hierarchy, but no topology
IncidenceType
Incidence type
Possible Values
incidence specified incidence
choke specified choke
InflationAlgorithm
Used to specify if pre or post inflation algorithm should be used by the mesher. The default value is
Pre.
Possible Values
Post
Pre
InflationOption
Used to specify the way heights of the inflation layers are determined. The default value is
SmoothTransition.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1138 of ANSYS, Inc. and its subsidiaries and affiliates.
Possible Values
TotalThickness Creates constant inflation layers using the
values of Number of Layers and Growth Rate.
FirstLayerThickness Creates constant inflation layers using values
of First Layer Height, Maximum Layers and
Growth Rate.
SmoothTransition Mesher ensures smooth rate of volume change
using local tetrahedral element size.
FirstAspectRatio Creates inflation layers using values of First
Aspect Ratio, Maximum Layers and Growth
Rate.
LastAspectRatio Creates constant inflation layers using values
of First Layer Height, Maximum Layers and
Aspect Ratio.
InitializationMethods
Initilization Methods
Possible Values
ProgramControlled
SolverControlled
ProvideInitialSolution
InitializationOption
Enumeration for the Solution update initialization options.
Possible Values
CurrentSolutionData
InitialConditions
InitializationType
The initialization settings
Possible Values
ProgramControlled Program Controlled
StartTime Start Time
RestartStepTime Restart Step and Time
InletAngleType
Inlet angle type
Possible Values
Absolute Absolute inlet angle
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1139
Data Types
int
This type represents an Integer number.
long
This type represents a long (64-bit) Integer number.
IntegrationType
IntegrationType of elements used by solvers such as Full or Reduced.
Possible Values
Unknown
ProgramControlled
Full
Reduced
InterfaceBehavior
InterfaceBehavior is an abstraction over all kinds of interface behaviors such as JointBehavior, BeamBe-
havior, LinkBehavior, SpringBehavior and ContactBehavior.
InterfaceBehaviorCreation
It allows you to create one connection behavior and share it or create separate ones for each one of
searched interfaces.
Possible Values
Shared
Individual
InterfaceToleranceSpecification
It allows to let either program decides the tolerance value for you or you choose to input your own
tolerance value
Possible Values
Automatic
Manual
InterfaceType
Type of inerfaces to be generated. Select from Contact, Joint and Mesh Interface.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1140 of ANSYS, Inc. and its subsidiaries and affiliates.
Possible Values
None
Contact
Joint
MeshInterface
IsotropicElasticityDependents
Used when IsotropicElasticity is constant for all independent variables (e.g. Temperature).
IsovalueMethod
Specifies how to obtain the isovalues for the isosurface
Possible Values
Manual
Automatic
JobRunMode
The job running modes
Possible Values
Foreground Forground mode.
Background Background mode.
RemoteSolveManager Submitted to Remote Solve Manager to run
the job.
KernelVariationType
Enumeration of the Kernel Variation types.
Possible Values
VARIABLE Variable
CONSTANT Constant
LegendColoring
Types of allowed legend coloring.
Possible Values
Banded
Smooth
LinearCorrelationType
Enumeration of the Correlation types.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1141
Data Types
Possible Values
Spearman Spearman
Pearson Pearson
LineStyles
Styles of lines that can be displayed. The default is Solid.
Possible Values
None
Solid
Dense
Medium
Sparse
DashShort
DashMedium
DashLong
DashDot
DashDotDot
DashDashDot
Gradient
Default
List<Type>
This type represents an unordered list of values.
LocalElementMidsideNodes
Used to specify if the elements created for the bodies associated with this control should have midside
nodes or not. The default value is UseGlobalSettings.
Possible Values
UseGlobalSettings
Dropped
Kept
LocationSet
An immutable class representing a set of locations
A Location is a key value pair of a model reference string and Point3DUnited (coordinate of the hit
point on the model).
The order of the locations is maintained for the lifetime of the object.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1142 of ANSYS, Inc. and its subsidiaries and affiliates.
Model reference string with hit point [('FACE13', ('0.062 [m]', '0.197 [m]', '0.35
[m]')),('FACE23', ('0.07 [m]', '0.569 [m]', '0.502
[m]'))]
LocationSet returned from a function AllBodies()
MachineSpecification
List of computers to be used for a parallel FLUENT session. The list can be specified directly, or a hosts
file containing the list can be specified.
For more details on how to specify the machines to be used for a parallel FLUENT session, please refer
to the FLUENT User's Guide.
Possible Values
MachineList
FileName
MachineType
Setup Entity enum definition for machine type
Possible Values
Pump Pump
AxialCompressor Axial Compressor
CentrifugalCompressor Centrifugal Compressor
Fan Fan
AxialTurbine Axial Turbine
RadialTurbine Radial Turbine
HydraulicTurbine Hydraulic Turbine
Unknown Undefined machine type
Other Obsolete option, use 'Unknown' instead.
MAPDLSolverMode
Run the solver in batch mode just while solving or keep it live.
Possible Values
Live
Batch
Material
The material object holds all information that defines the behavior for a specific material.
MaterialAssignment
Assigns a Material to a specified Location.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1143
Data Types
MaterialNamesList
Database materials list Note that this is currently a fixed list which must correspond to the vistaFluids.xml
database
Possible Values
Air Air
CarbonDioxide Carbon dioxide
Hydrogen Hydrogen
Methane Methane
Nitrogen Nitrogen
Oxygen Oxygen
Parahydrogen Parahydrogen
Propylene Propylene
R123 R123
R125 R125
R134a R134a
R141b R141b
R142b R142b
R245fa R245fa
Water Water
MaterialPropsType
material properties type
Possible Values
Database select material from database
User user specified material properties
MeshBasedDefeaturing
Used to specify the type of automatic defeaturing for dirty geometries. The default value is Automatic-
allyDetermined.
Possible Values
AutomaticallyDetermined Automatically removes features smaller than
or equal to the calculated default tolerance
value on dirty geometry.
UserDefined Automatically removes features smaller than
or equal to the user defined defeaturing toler-
ance value on dirty geometry.
Off No defeaturing done on dirty geometry.
MeshFileType
MeshFileType is used to identify the format of the mesh data file. This is usually the same as the applic-
ation that generated the data file.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1144 of ANSYS, Inc. and its subsidiaries and affiliates.
Possible Values
CFX
ICEM_CFD
FLUENT
POLYFLOW
Unknown
MeshMetric
Used to specify the metric type based on which mesh quality is evaluated. The default value is None.
Possible Values
None No mesh metric type is selected.
ElementQuality A composite quality metric is computed ran-
ging between 0 and 1.
AspectRatio Aspect ratio is calculated based only on corner
nodes of elements.
JacobianRatio Jacobian ratio is computed for all elements
except those with no midside nodes or per-
fectly centered midside nodes.
WarpingFactor Warping factor is computed for quadrilateral
shell elements and quadrilateral faces of
bricks, wedges and pyramids.
ParallelDeviation Parallel deviation is computed ignoring mid-
side nodes and based on unit vectors along
each element size.
MaximumCornerAngle Maximum corner angles are computed
between adjacent edges and high corner
angles can degrade element performance.
Skewness Skewness is one primary quality measure that
determines how close to ideal (that is, equilat-
eral or equiangular) a face or cell is.
OrthogonalQuality Orthogonal quality is computed using face
normal vectors and ranges from 0 to 1.
MeshReading
Indicates the type of restart.
Possible Values
Direct In this mode, one loads directly the mesh (no
conversion).
Convert In this mode, one converts the *.poly or fluent
*.msh into a polyflow *msh file
MeshRestartMode
Indicates the type of mesh import we want : - no initialization from upstream system - select a mesh
in a list of mesh files coming from an upstream polyflow system
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1145
Data Types
Possible Values
NoUpstreamMeshFile in this mode, no mesh file is selected from the
upstream polyflow system.
SingleMeshFile in this mode, a mesh file is selected from a
list of meshes coming from the upstream
polyflow system.
MessageType
The valid message types.
Possible Values
Information An informational message for the user.
Warning A warning message for the user.
Error An error message for the user.
Fatal A fatal message for the user. On receiving a
message of this type, the framework will show
the message to the user, and then exit imme-
diately, without giving any chance to save
their work or shut down running processes.
Problems Problem messages (WARNING + ERROR +
FATAL).
Debug A debug message.
Progress A progress message for the user.
News A news update for the user.
AttentionRequired A message that requires user action to address
Standard All non-debug and non-progress messages.
Method
The method used to create the Single Value Result
Possible Values
FunctionCalculatorMethod
UserDefinedExpressionMethod
Metric
Used to specify the measure to be used for improving the mesh quality. The default value is Skewness.
Possible Values
Skewness
SizeChange
AspectRatio
MixedImportPref
Mixed import preference option for mixed dimension parts
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1146 of ANSYS, Inc. and its subsidiaries and affiliates.
Possible Values
MixedImport_None If mixed dimension part, import None
MixedImport_Solids If mixed dimension part, import Solids only
MixedImport_Surfaces If mixed dimension part, import Surfaces only
MixedImport_Lines If mixed dimension part, import Lines only
MixedImport_SolidsAndSurfaces If mixed dimension part, import Solids and
Surfaces only
MixedImport_SurfacesAndLines If mixed dimension part, import Surfaces and
Lines only
MixedResolutionType
Defines the mixed resolution option during geometry import.
Possible Values
None
Solid
Sheet
Wire
Point
SolidSheet
SolidWire
SolidPoint
SheetWire
SheetPoint
WirePoint
SheetWirePoint
SolidWirePoint
SolidSheetPoint
SolidSheetWire
All
ModelType
The type (format) of the model, either from files or data from other systems.
Possible Values
Abaqus The model is formatted according to the
ABAQUS standard.
CFX The model is formatted according to the CFX
standard.
CMDB The model is stored in a Meshing database.
Fluent The model is formatted according to the Flu-
ent standard.
Icem The model is formatted according to the Icem
standard.
MechAPDLCDB The model is formatted according to the CDB
standard, used in Mechanical APDL.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1147
Data Types
MonitorChartType
MonitorChartType enum: Residual or UserDefined
Possible Values
Residual
UserDefined
MPIType
Enumeration for the MPI library to be used by the Mechanical APDL solver.
Possible Values
Undefined
PCMPI
MSMPI
IntelMPI
MResOptions
Enumeration for the load options for Multi-configuration Results.
Possible Values
AllConfigsSingleCase
AllConfigsSeparateCases
LastConfigOnly
NodeAndElementRenumberingMethodType
No details are provided for this entry.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1148 of ANSYS, Inc. and its subsidiaries and affiliates.
Possible Values
None
Offset
Automatic
NumSampType
Enumeration to specify for the samples type for OSFD algorithm.
Possible Values
SFD_CCD CCD samples
SFD_LINEAR Linear model samples
SFD_PUREQUAD Pure quadratic model samples
SFD_CROSSQUAD Full quadratic model samples
SFD_USER User-defined samples
NuUserType
kinematic viscosity calculation type (obsolete)
Possible Values
Sutherland calculate viscosity from Sutherland's Law (us-
ing coeffs for air)
User user specified kinematic viscosity
Object
This type can represent any generic object. It is used when any type is a valid value.
ObjectRenamingType
No details are provided for this entry.
Possible Values
Off
BasedOnCellId
BasedOnSystemName
BasedOnUserInput
ObjectRenamingType
No details are provided for this entry.
Possible Values
Off
BasedOnCellId
BasedOnSystemName
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1149
Data Types
BasedOnUserInput
OnOffSwitch
This property specifies if a given mode should be turned on or not (used in distributed solve).
Possible Values
kOn
kOff
OpeningPositionMethod
Enumeration of the inlet/outlet placement options.
Possible Values
Manual
AdjacentBlade
OptimalSpaceFillingType
Enumeration of the available design types for the Optimal Space Filling algorithm.
Possible Values
SFDTYPE_MDIST Max-Min Distance
SFDTYPE_CL2 Centered L2
SFDTYPE_MAXENT Maximum entropy
OrientationStyle
Allowed orientation of a legend. Default is Vertical
Possible Values
Vertical
Horizontal
Default
Output<Type>
The Output type is used in select instances where a method returns additional information in a method
argument as well as the method return. These output arguments are typically optional, and a output
variable must be declared before it is used. Once assignment has been made to an output variable, the
return value can be evaluated by using the Get() method on the variable.
The following example shows the declaration and use of an output argument.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1150 of ANSYS, Inc. and its subsidiaries and affiliates.
>>> matlProp1 = matl1.GetProperty(Name="Density")
>>> matlProp1.SetData(
>>> Variables="Density",
>>> Values="-10 [kg m^-3]")
>>> from Ansys.Core.Commands import Output
>>> outMsg = Output[str]()
>>> if not matl1.IsValid(Message=outMsg):
>>> print "Material is not valid for the following reason:"
>>> print outMsg.Get()
Material is not valid for the following reason:
The value(s) for Density must be greater than zero.
OutputFrequencyType
The entitry stores the options to specify frequency of writing result files
Possible Values
None No intermediate result files
EveryStep Every Coupling Step
StepInterval At defined interval
OutputSource
Source of the output values, indicating the method used to obtain them.
Possible Values
UserEdited The output values are edited by the user.
Simulation The output values are obtained by a real sim-
ulation.
ResponseSurface The output values are obtained by evaluating
a response surface approximation.
OutputType
OutputType for OutputSpecification such as Deformation, Stress or Strain
Possible Values
None
All
Basic
NodalDofSolution
NodalReactionLoads
NodalVelocity
NodalAcceleration
ElementSolution
ElementNodalLoads
ElementNodalStresses
ElementElasticStrains
ElementThermalStrains
ElementPlasticStrains
ElementCreepStrains
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1151
Data Types
ElementDiffusionStrains
ElementNodalGradients
ElementNodalFluxes
IntegrationPointLocations
StateVariables
ElementMiscellaneousData
ParameterizedEntityPropertiesCollection
A ReadOnlyDictionary for parameterized properties. The keys are the data references to the entities that
hold the properties, the values are the list (one or more) of the parameterized properties.
ParameterNature
Enumeration of the possible nature of a parameter.
Possible Values
NatureContinuous Continuous
NatureUsability Obsolete. Instead of defining a usability para-
meter, define a continuous parameter with
the UseManufacturableValues set to True.
NatureDiscrete Discrete
ParameterRelationshipType
Enumeration of the possible parameter relationship types.
Possible Values
PRT_LessThanOrEqualTo Less Than or Equal To
PRT_GreaterThanOrEqualTo Greater Than or Equal To
ParameterUsage
Specifies the possible ways a parameter can be used or set within the data model.
Possible Values
Input A parameter whose value will be used by the
data model.
ExpressionOutput An output parameter whose value is based
on an expression. The parameter cannot be
associated directly with the data model.
DirectOutput A parameter whose value will be provided
directly by the data model. The parameter
expression has to be undefined(null).
ParameterValueType
Type of a parameter value.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1152 of ANSYS, Inc. and its subsidiaries and affiliates.
Possible Values
ActualValue The actual value of the parameter.
VariationToReference The variation of the parameter with respect
to the current reference point, as a decimal
number.
PeriodicSurfType
Enumeration of the periodic surface options.
Possible Values
OnePiece
ThreePieces
PhysicsRegion
Specifies the type and location of the fundamental physics in the simulation.
PhysicsType
The available physics types for an analysis.
Possible Values
Unknown Indicates physics type was never set
None Indicates physics type was set and then
cleared
Structural A mechanical analysis determines the displace-
ments, stresses, strains, and forces in struc-
tures or components caused by loads that do
not induce significant inertia and damping
effects. Steady loading and response condi-
tions are assumed; that is, the loads and the
structure's response are assumed to vary
slowly with respect to time.
ElectricConduction An electric analysis supports Steady-State
Electric Conduction.
Fluid A fluids analysis can simulate the behavior of
liquids or gases within and around a structure
using boundary conditions.
Thermal You can use a thermal analysis to determine
temperatures, thermal gradients, heat flow
rates, and heat fluxes in an object that are
caused by thermal loads.
Manufacturing Simulation of molten polymers or molten
glass, for extrusion, blow molding, thermoform-
ing, pressing processes (in the laminar regime).
The fluid can be modeled by a generalized
newtonian law or by a viscoelastic law. Gener-
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1153
Data Types
PIFType
power input factor type
Possible Values
Correlation correlation
User user specified
Plane
The analytic definition of a flat plane where the Z axis is the normal direction.
PlaneConstructionMethod
Option for defining the plane construction method
Possible Values
OriginAndOrientation
FromPlane
FromReferenceFrame
PlaneOption
Options for selecting a Reference Frame plane.
Possible Values
XY
YZ
ZX
Point
Point represented by local coordinates relative to a reference frame.
Point3DUnited
Represents a three dimensional point using double precision.
PointCalculationMethod
Options for calculating a point from geometry selection
Possible Values
Centroid
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1154 of ANSYS, Inc. and its subsidiaries and affiliates.
HitPoint
PositionType
Specifies the possible positions of a system when it is moved or created. These positions are relative
to an existing system, which is specified in a separate argument.
Possible Values
Default Default position. It is a new "child" of position,
by system if given, or a new "root" system
otherwise.
Left Positioned left to a system.
Right Positioned right to a system.
Above Positioned above a system.
Below Positioned below a system.
PostReportNamesType
CFD Post reports
Possible Values
None
AxialCompressorReport
AxialCompressorRotorReport
CentrifugalCompressorReport
CentrifugalCompressorBladeRowReport
CentrifugalCompressorRotorReport
TurbineReport
TurbineRotorReport
FanNoiseReport
FanReport
GenericReport
HydraulicTurbineReport
HydraulicTurbineRotorReport
PumpReport
PumpImpellerReport
StatorReport
TurbineStatorReport
Custom
PreswirlType
Preswirl type
Possible Values
constant Constant inlet angle
free Free vortex
forced Solid body rotation
linear Linear variation of Vw
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1155
Data Types
PreswirlType
Preswirl type
Possible Values
constant Constant inlet angle
free Free vortex
forced Solid body rotation
PrimitiveBoxCreationMethod
Box creation method options.
Possible Values
VirtualPrimitiveBoxByEntity Box can be created by enclosing single or
multiple entities.
VirtualPrimitiveBoxByCoordinate Box can be created by specifying diagonal
coordinates.
ProcessorUnit
Various Processore Unit options available for Microsoft Scheduler
Possible Values
Core
Socket
Node
ProximitySizeFunctionSources
Used to specify the source type to be used for size function calculation when Advanced Size Function
is Proximity or Curvature and proximity. The default value is Faces.
Possible Values
Faces
Edges
FacesAndEdges
Quantity
This class represents a physical quantity that can be measured. It holds a double value and a string that
specifies the value's unit of measurement. The Value and Unit can be accessed individually as properties
on this type, and a Quantity can be converted to new units.
Mathematical operations can also be performed on Quantities, and these operations calculate and enforce
dimensional consistency between units. Note the results of mathematical operations are always converted
into the project unit system.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1156 of ANSYS, Inc. and its subsidiaries and affiliates.
RampingType
Enum providing ramping options.
Possible Values
None No ramping.
Linear Linear profile ramping.
ReadOnlyDictionary<Key, Value>
This type represents a read-only data dictionary, where a Key is used to access an associated Value.
When used in scripting, a dictionary is created or printed using the form
myDict = {key1:value1, key2:value2, ...}
Python functionality can be used to examine dictionary keys, test for key existence and perform other
useful operations on dictionaries; however, the contents may not be manipulated unless the dictionary
or its contents are cloned into a regular dictionary.
RealGas
Enumeration of the available real gas materials
Possible Values
Air
CarbonDioxide
Hydrogen
Methane
Nitrogen
Oxygen
Parahydrogen
Propylene
R123
R125
R134a
R141b
R142b
R245fa
Water
Custom
RefDiameterType
Enumeration of the reference diameter options.
Possible Values
Automatic
User
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1157
Data Types
ReferenceFrame
Frame of reference for modeling and simulation data.
ReferenceFrameDefinitionType
Options for reference frame definition types
Possible Values
OriginAndOrientation
CoincidentWithParent
Transform
ReferenceTopologyType
Defines the topology type for a given reference.
Possible Values
RTT_NoTopology
RTT_Vertex
RTT_Edge
RTT_Face
RTT_Body
RTT_Part
RTT_Assembly
RTT_ConfigurationComponent
RTT_Invalid
RegionBehavior
Used to specify the meshing region behavior. Currently, the only possible value is Wrap.
Possible Values
Wrap Simplifies unclean geometry before sewing.
RelativeToType
Options for selecting a which reference frame to define relative to
Possible Values
Local
Parent
RepositoryFileInfo
Class to specify a repository file
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1158 of ANSYS, Inc. and its subsidiaries and affiliates.
ResponseChartModes
Enumeration of the available Response chart modes.
Possible Values
Curve2D 2D response chart where an output parameter
is plotted versus an input parameter.
Surface3D 3D response chart where an output parameter
is plotted versus two input parameters.
Slices2D 2D response chart where an output parameter
is plotted versus two input parameters, on the
X axis and the other varying over several
curves.
ResponseSurfaceRefinementType
Enumeration for the Refinement type.
Possible Values
REFINEMENT_NONE None
REFINEMENT_AUTO Automated
REFINEMENT_MANUAL Manual
ReverseEdgeLoopOrientation
Options for choosing loop orientation. Required only if construction algorithm is convex hull.
Possible Values
No Construct capping surface by using default
loop orientation.
Yes Construct capping surface by reversing loop
orientation.
RigidTransformOptions
No details are provided for this entry.
RigidTransformOptions
No details are provided for this entry.
RotationType
Enumeration of the machine rotational direction options.
Possible Values
RightHanded
LeftHanded
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1159
Data Types
RoughnessType
surface roughness type
Possible Values
Machined machined surface finish
Cast cast surface finish
RshSpecification
Client used to connect to the nodes in a cluster of LINUX machines.
Possible Values
RSH
SSH
Other
SampleGenType
Enumeration for the Sampling type.
Possible Values
SAMPLE_GEN_LHS LHS
SAMPLE_GEN_WLHS WLHS
SamplesChartModes
Enumeration of the available Samples chart modes.
Possible Values
Candidates Draw the samples and highlight the optimiza-
tion candidates.
ParetoFront Draw the samples using colors that represent
their Pareto front.
Scale
Enum to define the scale of the axis.
Possible Values
Linear Linear scale
CommonLog Common or log base 10 scale
NaturalLog Natural log scale
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1160 of ANSYS, Inc. and its subsidiaries and affiliates.
Scale
Enum to define the scale of the axis.
Possible Values
Linear
CommonLog
NaturalLog
SchedulerSpecification
Various Job Schedulers available on Unix/Linux.
Possible Values
LSF
SGE
PBSPro
SearchPosition
A filter that can be applied to the SearchString used by GetAllObjects query.
Possible Values
Exact
Contains
StartsWith
EndsWith
SeedPointDistributionType
Allowable values for seed point sampling.
Possible Values
UniformSample
GridSample
Mesh
SeedPointMeshDistributionType
Allowable values for how mesh is evaluated when sampling seed points.
Possible Values
EveryNthElement
EveryNthVertex
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1161
Data Types
SensitivityChartModes
Sensitivity chart modes.
Possible Values
BarChart 2D Bar chart
PieChart 2D Pie chart
ShapeChecking
Used to define the shape checking algorithm to be used by the mesher. The default value is UseEngin-
eeringIntent.
Possible Values
UseEngineeringIntent Determine which algorithm to use based on
the Engineering Intent.
StandardMechanical Specifies the standard mechanical shape
checking algorithm for structural simulations.
AggressiveMechanical Specifies the aggressive mechanical shape
checking algorithm for structural simulations.
CFD Specifies the CFD shape checking algorithm
for flow simulations.
None Disable shape checking.
ShrLEBetaType
Shroud LE blade angle option
Possible Values
Incidence Shroud LE blade angle calculated from spe-
cified incidence
User User defined shroud LE blade angle
ShroudDiameterType
shroud diameter type
Possible Values
Diameter user specified shroud inlet diameter
Angle user specified shroud vane inlet angle
Optimum optimised shroud inlet diameter (minimum
Mrel)
SimulationType
Enumeration of the simulation types of a parameter.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1162 of ANSYS, Inc. and its subsidiaries and affiliates.
Possible Values
DesignVariable Design variable
UncertaintyVariable Uncertainty variable
float
This type represents a single-precision floating point number.
SixSigmaTableTypes
Enumeration of the Probability Table types.
Possible Values
ProbabilityTable Quantile-percentile
InverseProbabilityTable Percentile-quantile
SizingBehavior
Used to specify whether size control settings can be changed by the mesher (Soft) or not (Hard).
Possible Values
Soft
Hard
Smoothing
Used to specify the level of smoothing iterations to be performed. The default value is Medium.
Possible Values
Low
Medium
High
SolverRestartMode
Indicates the type of restart.
Possible Values
NoRestartFile In this mode, no restart file is used to initialize
time scheme and fields.
SingleResultFile In this mode, a result file is used to initialize
fields.
CombineResultRestartFiles In this mode, a result file is used to initialize
fields and a restart file is used to initialize time
scheme (starting time + derivates).
SingleCsvFile In this mode, a csv file is used to initialize
fields.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1163
Data Types
SourceInformation
Information about the original source of the Engineering Data.
SourceSelectionType
Options for source selection types
Possible Values
BrowseSource
ActiveCADAttach
SpanwiseDistributionType
Spanwise distribution type
Possible Values
General Blade exported using general spanwise distri-
bution
Radial Blade exported using radial spanwise distribu-
tion
SpeedInputType
Speedline input methods
Possible Values
Range Set range using min and max values
Direct Specify mass flow rates directly
StackingType
stacking type
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1164 of ANSYS, Inc. and its subsidiaries and affiliates.
Possible Values
Radial Radial stacking
Tan Beta calculated from tangent
Sin Beta calculated from sin
Status
The current calculation status of the Excel file.
Possible Values
UpToDate The output parameters are up to date.
OutOfDate The values of the input parameters are modi-
fied and the values of the output parameters
are not recalculated yet.
ErrorsWhenCalculating Errors ocurred during the calculation in Excel.
StepSizeType
The method used to determine the size of integration steps in streamline creation.
Possible Values
Automatic
Fixed
STLSDTAlgorithm
SDT Algorithm Options
Possible Values
STLSDTAlgorithm_Curvatures Curvature based SDT algorithm
STLSDTAlgorithm_Angles Angle based SDT algorithm
StraightSidedElements
Used to force mesher to create elements with straight edges. The default value is No.
Possible Values
Yes
No
StreamlineColorOption
Allowable values for how a streamline is colored.
Possible Values
None
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1165
Data Types
Time
StreamLineDisplayStyle
Allowable values for how a streamline is displayed.
Possible Values
Lines
LinesAndSymbols
Symbols
StreamLineShapeDef
Allowable values for the shape of the streamline
Possible Values
Wire
Ribbon
Tube
StreamLineStyle
Allowable values for the style of the streamline
Possible Values
Continuous
Segments
string
This type represents a String value.
SymbolLengthOptions
The allowable values for the control of vector length display.
Possible Values
BasedOnMagnitude
Constant
SymbolShape
The symbol shape used for the associated result
Possible Values
SymbolShape1DArrowHead
SymbolShape1DArrow
SymbolShape2DArrowHead
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1166 of ANSYS, Inc. and its subsidiaries and affiliates.
SymbolShape2DArrow
SymbolShape3DArrowHead
SymbolShape3DArrow
SymbolShape3DCrossHair
SymbolShape3DCube
SymbolShape3DSphere
SymmetryBehavior
A flag to notify the program if symmetry contact behavior should be used in the physics solution.
Possible Values
Yes
No
SystemPropertyDictionary
A dictionary holding system properties. The keys in the dictionary will be of the standard names defined
in Ansys.ProjectSchematic.SystemPropertyNames. For each property, the value in the dictionary is a list
of all unique values of that property.
TableInterpolation
An enum of the type of interpolation to use when accessing data from the table at a given index. The
valid enum values are; None, Linear, Cubic Spline.
Possible Values
None No interpolation is done.
Linear A linear interpolation will be used to compute
the return value.
TableInterpolationBeyondBounds
An enum which describes what will occur when the index is outside of the bounds of the table. The
valid enum values are; Constant, Fit, Zero, and Error.
Possible Values
Constant his option will cause the value returned to be
the data at the index nearest to the requested
index.
Fit This option will ignore the bounds of the table
and use the Interpolation algorithm to fit the
data and then compute the value at the re-
quested index.
Zero This option will cause the value returned to
be zero if the index is outside of the bounds
of the table.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1167
Data Types
TessellationRefinement
Used to specify value to be used for tessellation refinement. The default value is AutomaticallyDetermined.
Possible Values
AutomaticallyDetermined Sets tessellation refinement to 10% of the
value of Min Size/Proximity Min Size.
UserDefined Sets tessellation refinement to user defined
value.
Off Tessellation refinement is not performed.
TipDiamType
Impeller tip diameter option
Possible Values
Automatic D2 calculated automatically (from stability
factor)
HeadCoeff D2 calculated from head coefficient
User D2 user defined
TopologyType
All of the possible values for topology.
Possible Values
Point A topological point
Curve A topological curve
Surface A topological surface
Volume A topological volume
TradeoffChartModes
Enumeration of the available Tradeoff chart modes.
Possible Values
Curve2D 2D tradeoff chart where a parameter is plotted
versus another parameter.
Surface3D 3D tradeoff chart where a parameter is plotted
versus two other parameters.
TranscriptType
The allowable types of output in a Transcript monitor.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1168 of ANSYS, Inc. and its subsidiaries and affiliates.
Possible Values
SolverOutput
PhysicsCouplingDiagnostic
SelectFile
TransferAtType
Enum providing options of when to Transfer Data.
Possible Values
StartOfStep Transfer data at start of step.
StartOfIteration Transfer data at start of iteration.
TransferDataFromNewComponentSpec
Specifies the information needed to transfer data from a component that is being created in a new
system.
TransferDataToNewComponentSpec
Specifies the information needed to transfer data to a component that is being created in a new system.
Transform4x4
Represents a combined rotation and translation matrix Rotation matrix is the first 3 rows and columns
in row-major order Translation matrix is the 4th column
TransformationType
Enumeration of the available transformation types applicable to an output parameter.
Possible Values
TransTypeNone No transformation
TransTypeBox Box-Cox
TransTypeYeo Yeo-Johnson
TriangleSurfaceMesher
Used to specify the surface meshing algorithm to be used by patch conforming mesher. The default
value is ProgramControlled.
Possible Values
ProgramControlled Mesher determines usage of Delaunay or Ad-
vancing Front algorithm.
AdvancingFront Mesher uses Advancing Front algorithm but
can switch to Delaunay if problems occur.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1169
Data Types
TrimType
Trim Type to control trimming such as keeping it on, off, or program-controlled.
Possible Values
ProgramControlled
On
Off
TripletType
An enumeration to describe the type of Triptlet that is used in Coordinate systems, Reference frames,
and Vector objects.
Possible Values
Cartesian
Cylindrical
Spherical
TypeOfInitialSampling
Enumeration for the Initial Sampling Type.
Possible Values
E_Screening Screening
E_OSF Optimal Space-Filling
E_ConstrainedSampling Constrained Sampling
uint
This type represents an unsigned integer number. Negative values are invalid.
UniversalVectorDefineBy
Options for defining the vector
Possible Values
Components
MagnitudeAndDirection
UpdatableEntityState
Types of state an updatable entity can have.
Possible Values
Unknown entity state can not be defined.
OutOfDate entity is out of date.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1170 of ANSYS, Inc. and its subsidiaries and affiliates.
UpToDate entity is up to date.
Error last update of the entity gave an error.
OutOfDateWithError entity is out of date and last update of the
entity gave an error.
UpToDateWithError entity is up of date and last update of the
entity gave an error.
RefreshRequired entity needs a refresh.
UpdateErrorBehavior
Specifies the types of behavior if an error is encountered when updating multiple design points.
Possible Values
Stop Terminate the update immediately on the first
error.
SkipDesignPoint Don't do any more work on the failing design
point, but continue with the next one if any.
Continue Update as much of the project, and as many
design points, as possible.
UseAdvancedSizeFunction
Used to specify which advanced size function option should be used by the mesher.
Possible Values
Adaptive
ProximityCurvature
Curvature
Proximity
Fixed
UseAllProcessors
Used to specify the usage of all available processors for parallel part-based meshing. The default value
is Yes.
Possible Values
Yes Automatically detects and utilizes all available
processors for meshing parts of an assembly
in parallel.
No Manually specify the limit to the number of
processors that can be utilized for parallel
part-based meshing.
UsePostSmoothing
Used to specify whether post inflation smoothing will be performed. The default value is Yes.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1171
Data Types
Possible Values
Yes
No
ValueDefineBy
This property determines whether the value on the object should be program controlled, a physical
value, a factor value, or an auto detection value.
Possible Values
Unknown
kProgramControlled
kPhysicalValue
kFactor
kAutoDetectValue
VariableConversionOption
Enumeration to specify the conversion of data
Possible Values
NoConversion
AverageSharedNodes
AverageNodesToElement
AverageNodesToFace
DistributeElementToNodesEqually
DistributeFaceToNodesEqually
AverageCornerToMidsideNodes
VariableExposure
Level of exposure for variables in the CDI
Possible Values
Standard Default
Expert Expert
VariableStyle
Styles that can be used to display the variable. Default is Line
Possible Values
None
Line
Spline
Step
Bar
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1172 of ANSYS, Inc. and its subsidiaries and affiliates.
Default
Vector3D
Represents a three dimensional vector using double precision.
VectorCalculationMethod
Options for calculating a vector from geometry selection
Possible Values
Automatic
HitPointNormal
WeightedAverageNormal
HitPointTangent
NearestVertexTangent
WeightedAverageTangent
CenterAxis
TwoVertices
VectorDefineBy
This property sets the type of vector specification which could be by Components or MagnitudeAndDir-
ection or NormalToSurface.
Possible Values
Components
MagnitudeAndDirection
NormalToSurface
VectorType
Motion vector types used in mechanics.
Possible Values
Unknown
Displacement
Velocity
Acceleration
Rotation
AngularVelocity
AngularAcceleration
ViscosityType
viscosity type
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1173
Data Types
Possible Values
Sutherland Viscosity calculated using Sutherland's Law (2
coefficient method)
Dynamic User-specified dynamic viscosity
Kinematic User specified kinematic viscosity
VoluteType
Volute style option
Possible Values
Elliptic Elliptic/circular cross sections
Rectangular Rectangular cross sections
WeightingType
Available expression weight types
Possible Values
Simple
Length
Area
Volume
Mass
WrapMethod
Used to specify the wrapping method to be used for the meshing region. The default value is ShrinkWrap.
Possible Values
ShrinkWrap
CutWrap
XAxisQuantity
Enum for quantity used for X-axis.
Possible Values
Iteration
FlowTime
TimeStep
YesOrNo
This property decides whether the property should be active or not.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1174 of ANSYS, Inc. and its subsidiaries and affiliates.
Possible Values
kYes
kNo
YN
This is enum for yes/no option
Possible Values
ICYes
ICNo
Zoning
Used to specify the option to be used for zoning. The default value is Body.
Possible Values
Part Creates a single zone for each part.
Body Creates a separate zone for each body.
Face Creates a separate zone for each face.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1175
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1176 of ANSYS, Inc. and its subsidiaries and affiliates.
scripting definition, 9
Index Data Containers
ACP Setup, 49
A Ansoft, 51
ACP Setup data container, 49 Ansoft Feedback Iterator, 53
Ansoft data container, 51 AQWA Model, 57
Ansoft Feedback Iterator data container, 53 AQWA Results, 59
Ansoft Namespace, 1047 AQWA Setup, 60
ANSYS Workbench journaling AQWA Solution, 62
overview, 1 AUTODYN Analysis, 65
ANSYS Workbench scripting AUTODYN Setup, 65
examples, 18 CFD Results, 69
APDL example, 28 CFX Setup, 73
data-integrated application, 28 CFX Solution, 76
embedded script, 28 DX Direct Optimization, 83
file management, 22 DX Evaluation Container, 128
material properties, 25 DX GDO Design of Experiment, 197
project updates, 18 DX GDO Response Surface, 220
tabular data, 25 DX Parameters Correlation, 254
updating from Excel, 31 DX Six Sigma Analysis, 271
file path handling, 17 Engineering Data, 289
object-based, 15 Engineering Data Curve Fit, 323
overview, 1 Engineering Data Favorite Items, 327
path handling, 17 Engineering Data Favorite Library, 348
units, 16 External Connection, 375
using, 15 External Data, 377
APDL script scripting examples, 28 External Model Setup, 391
AQWA Model data container, 57 Finite Element Modeler, 399
AQWA Results data container, 59 FLUENT Setup, 409
AQWA Setup data container, 60 FLUENT Solution, 422
AQWA Solution data container, 62 FLUENT TGridData, 437
argument Geometry, 441
scripting definition, 11 Graphics, 451
AUTODYN Analysis data container, 65 ICE, 469
AUTODYN Setup data container, 65 ICE Setup, 471
ICEM CFD, 475
IcePak Setup, 477
C IcePak Solution, 478
CFD Results data container, 69
Mechanical APDL, 481
CFX Setup data container, 73
Mechanical Enhanced Model, 487
CFX Solution data container, 76
Mechanical Model, 488
command window
Mechanical Results, 497
journaling, 2
Mechanical Setup, 502
navigation, 3
Mechanical Solution, 505
component
Mesh, 511
scripting definition, 8
Microsoft Office Excel Analysis, 519
console window
Parameters, 527
journaling, 6
Polyflow Setup, 537
Polyflow Solution, 541
D Project, 545
data container Project File Types, 557
scripting definition, 8, 15 Project Files, 558
data container reference
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1177
Index
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1178 of ANSYS, Inc. and its subsidiaries and affiliates.
N S
namespaced command scripting
scripting definition, 12 definition, 5
Namespaced Commands, 1047 argument, 11
Namespaces component, 8
Ansoft, 1047 data container, 8
EKM, 1050 data container reference, 9
EngData, 1056 data entity, 9
Extensions, 1057 method, 11
Fluent, 1059 namespaced command, 12
Graphics, 1059 object, 11
Mechanical, 1062 project, 8
Meshing, 1063 property, 11
Parameters, 1063 query, 12
Project, 1071 system, 8
Study, 1107 templates, 12
definitions, 7
O data container, 15
object data entity, 15
scripting definition, 11 data reference, 9
overview, 1
P SendCommands, 6
Parameters data container, 527 using, 15
Parameters Namespace, 1063 with data-integrated applications, 6
path handling SendCommands
ANSYS Workbench scripting, 17 using, 6
absolute/relative paths, 17 setting journaling preferences, 2
slashes, 17 setting preferences
Playing a journal, 2 journaling, 2
Polyflow Setup data container, 537 shortcuts
Polyflow Solution data container, 541 command window, 3
preferences Study data container, 565
journaling, 2 Study Namespace, 1107
project system
scripting definition, 8 scripting definition, 8
Project data container, 545 System Coupling Setup data container, 855
Project File Types data container, 557 System Coupling Solution data container, 873
Project Files data container, 558
Project Messages data container, 563 T
Project Namespace, 1071 tabular data scripting examples, 25
Project updates scripting examples, 18 templates
property scripting definition, 12
scripting definition, 11 Turbo Geometry data container, 883
Python, 5 Turbo Mesh data container, 888
Turbo Setup data container, 893
Q
query U
scripting definition, 12 units
ANSYS Workbench scripting, 16
R Units data container, 1043
recording a journal, 2 updating from Excel scripting examples, 31
using ANSYS Workbench scripting, 15
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1179
Index
V
Vista AFD Analysis data container, 922
Vista AFD Design data container, 938
Vista AFD Meanline data container, 955
Vista CCD data container, 963
Vista CCM data container, 991
Vista CPD data container, 998
Vista RTD data container, 1016
Vista TF Setup data container, 1034
Vista TF Solution data container, 1041
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1180 of ANSYS, Inc. and its subsidiaries and affiliates.