Skip to main content
Subfolder of a Project, regrouping input files and Run subfolders. #include "Simulation.hpp" Inheritance diagram for ansys::Project::Simulation:

Public Member Functions

Public Member Functions inherited from ansys::Project::SimBase

Static Public Member Functions

Protected Member Functions

Protected Member Functions inherited from ansys::Project::SimBase

Additional Inherited Members

Protected Attributes inherited from ansys::Project::SimBase

Detailed Description

Subfolder of a Project, regrouping input files and Run subfolders. Subclass of Iterator, can be constructed from an Iterator, the Simulation is ok() only if the provided iterator is of the appropriate subclass.
In a Simulation, one or multiple Run are created, to store the simulation Results, organized in Output subfolders. The Simulation might have settings (Metadata) related to the solver settings, or common to all results in this folder hiearchy.

Constructor & Destructor Documentation

Simulation()

Constructor from Iterator.
The input Iterator must be of subclass Simulation If the subclass is not Simulation, the Simulation object is invalid ( !ok() )

~Simulation()

inline virtual

Member Function Documentation

getCurrentRun()

Return the current Run in the simulation - see setCurrentRun()

getData()

Return the current Data for the simulation. The current data is the latest Result, of the main data type, for the current Run.

getLink()

getListOfSubclass()

protected Search child hierarchy for items of the specified subclass.

getResult()

Returns the latest result of the specified type, in the current Run.

getRun()

Returns Iterator to the children Run with the given name.

getRunGroup()

Return the RunGroup by this name, in the current Simulation. If the rungroup is in a subfolder the path to it is expected (same path type returned by getRunGroups() ) Simulation/RunGroup -> RunGroup Simulation/folder/RunGroup -> folder/RunGroup

getRunGroups()

Return the list of RunGroups, by name, in this simulation. If the rungroup is in a subfolder the relative path to it is included Simulation/RunGroup -> RunGroup Simulation/folder/RunGroup -> folder/RunGroup

getRuns()

Returns list of children Run folders, as vector of their names (see: getRun() ) If the run is in a subfolder the relative path to it is included Simulation/Run -> Run Simulation/folder/Run -> folder/Run

hasLink()

isSimulation()

static

isValid()

virtual Returns error with message if invalid. Implements ansys::Project::SimBase.

newLink()

newRun()

Create a Run folder in the current Simulation. The Run folder is physical or virtual, depending of the project ProjectStoragePolicy The new run is given a name, and a type. Parameters

newRunGroup()

Create a new RunGroup - a virtual group of separate runs, can be assigned a type. From the type, the mandatory and automatic variable constraints will apply to the RunGroup->Run association, as it would normally for Run->Output. A RunGroup permits to define multiple levels of run type, for example a parametric RunGroup would contain transient Runs. The design point parameters are then assigned at the Run level, while the varying time values at the Output level. Parameters

newRunInFolder()

Create a Run folder in the current Simulation subfolder. The Run folder is physical or virtual, depending of the project ProjectStoragePolicy The new run is given a name, and a type. Parameters

removeRun()

Remove the specified run from the simulation. Parameters

removeRunGroup()

setCurrentRun()

Set the current Run in the simulation. The current run is the ‘default’ run to use for post-processing, or to load the latest results. Its automatically set to the latest Run created Parameters