Skip to main content
Base class for Run and Simulation - shared functions. #include "SimBase.hpp" Inheritance diagram for ansys::Project::SimBase:

Public Member Functions

Protected Member Functions

Protected Attributes

Detailed Description

Base class for Run and Simulation - shared functions. Not to be used directly, use Run and Simulation.

Constructor & Destructor Documentation

SimBase()

protected

~SimBase()

inline protected virtual

Member Function Documentation

copyDatafileMeta()

protected

copyInput()

Copy the specified project file into the current folder. Parameters

getCase()

virtual Returns the case file associated with this folder. Reimplemented in ansys::Project::Run.

getInputByType()

Search for a -single- input of the specified type (and optionally, subtype) If no such input exist, the null iterator is returned. If there are multiple matches, or lead to a broken link, an invalid iterator (with error message) is returned. A link input is resolved to the target iterator

getInputs()

Return the list of registered inputs for this simulation. Inputs are items in the Input/ subfolder, which are either a file with DataType property, or a link to a file in the project named with the DataType property name

getInputsByType()

Search for one or multiple input of the specified type (and optionally, subtype) If no such input exist, empty vector is returned The list of items found is returned If any match lead to a broken input link, and the error argument is provided it will be updated with the list of errors. Erroneous items are not included in the return vector. A link input is resolved to the target iterator

getIterator()

virtual Access the Iterator for this item. Reimplemented in ansys::Project::Run, and ansys::Project::RunGroup.

getMainDataType()

Returns the result type expected as default output for runs (see: setMainDataType() )

getMeta() [1/2]

Access the Iterator Metadata, equivalent to getIterator().getMeta()

getMeta() [2/2]

Access the Iterator Metadata, equivalent to getIterator().getMeta()

getName()

Returns the object name in the project.

isValid()

pure virtual Implemented in ansys::Project::Run, ansys::Project::RunGroup, and ansys::Project::Simulation.

ok()

operator Iterator()

inline

setCase()

Set the case file associated with this item. The case file is registered as an Input, and stored in a Input/ subfolder (hidden, project only) see setInput()

setInput()

Register a files as Input/ to this folder. The inputs are links stored in the hidden subfolder Input/ For example, in a Simulation the “current” case file can be stored as input, then once a Run is created, the case file is registered in the Run itself. If the current case file is changed, each previous Run still has a link to the specific case file which was used for them. Parameters

setMainDataType()

Set the result type expected as default output for runs. The main data type is used to get the ‘default’ output file from a run with multiple data types registered. If this is defined, it will dictate the automatic behavior of Output::getData()

Member Data Documentation

aIter

protected