    

 ## On this page

  

 

 # ansys::Project::Simulation Class Reference

 Last update: 16.07.2025 

Subfolder of a [Project](classansys_1_1_project_1_1_project.xhtml "Base class for Project API, also see SimProject."), regrouping input files and [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") subfolders. [More...](classansys_1_1_project_1_1_simulation.xhtml#details)

`#include "<a class="el" href="_simulation_8hpp_source.xhtml">Simulation.hpp</a>"`

Inheritance diagram for ansys::Project::Simulation:

 ![](/sites/default/files/migrate-content/common_fluids_format_2024_r1/classansys_1_1_project_1_1_simulation.png)



## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

 [Simulation](classansys_1_1_project_1_1_simulation.xhtml#a1353fad4a75cc2abe9ca84c4d307c3c4) ([Iterator](classansys_1_1_project_1_1_iterator.xhtml) pIter) Constructor from [Iterator](classansys_1_1_project_1_1_iterator.xhtml "Pointer to a project location.").   
[More...](classansys_1_1_project_1_1_simulation.xhtml#a1353fad4a75cc2abe9ca84c4d307c3c4)  
 <a id="ab8c7167e09e88042db12724531150af7" name="ab8c7167e09e88042db12724531150af7"></a>virtual [Error](classansys_1_1_project_1_1_error.xhtml) **isValid** () const Returns error with message if invalid.   
 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) [getData](classansys_1_1_project_1_1_simulation.xhtml#a08e4de6f33b578b6edbb8127fb398c25) () Return the current Data for the simulation. [More...](classansys_1_1_project_1_1_simulation.xhtml#a08e4de6f33b578b6edbb8127fb398c25)  
 <a id="a34c022fa77e348bd7287a76c0d7871b8" name="a34c022fa77e348bd7287a76c0d7871b8"></a>[Iterator](classansys_1_1_project_1_1_iterator.xhtml) **getResult** (const std::string &amp;pDataType) Returns the latest result of the specified type, in the current [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.").   
 [Run](classansys_1_1_project_1_1_run.xhtml) [newRun](classansys_1_1_project_1_1_simulation.xhtml#a4eb433d9185e539d85307aa6b869c291) (std::string pName, Run::RunOutputType pType) Create a [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") folder in the current [Simulation](classansys_1_1_project_1_1_simulation.xhtml "Subfolder of a Project, regrouping input files and Run subfolders."). [More...](classansys_1_1_project_1_1_simulation.xhtml#a4eb433d9185e539d85307aa6b869c291)  
 [Run](classansys_1_1_project_1_1_run.xhtml) [newRunInFolder](classansys_1_1_project_1_1_simulation.xhtml#af9cd129be20c02c3be763952a6a8bba3) (std::string pName, Run::RunOutputType pType, [Iterator](classansys_1_1_project_1_1_iterator.xhtml) pFolder) Create a [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") folder in the current [Simulation](classansys_1_1_project_1_1_simulation.xhtml "Subfolder of a Project, regrouping input files and Run subfolders.") subfolder. [More...](classansys_1_1_project_1_1_simulation.xhtml#af9cd129be20c02c3be763952a6a8bba3)  
 <a id="abf2669d8f42be00cdf588e7443caf598" name="abf2669d8f42be00cdf588e7443caf598"></a>[Iterator](classansys_1_1_project_1_1_iterator.xhtml) **getRun** (const std::string &amp;pName) const Returns [Iterator](classansys_1_1_project_1_1_iterator.xhtml "Pointer to a project location.") to the children [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") with the given name.   
 std::vector&lt; std::string &gt; [getRuns](classansys_1_1_project_1_1_simulation.xhtml#a38cc991a7916643a66a0268fb2f755ad) () const Returns list of children [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") folders, as vector of their names (see: [getRun()](classansys_1_1_project_1_1_simulation.xhtml#abf2669d8f42be00cdf588e7443caf598 "Returns Iterator to the children Run with the given name.") ) [More...](classansys_1_1_project_1_1_simulation.xhtml#a38cc991a7916643a66a0268fb2f755ad)  
 [Error](classansys_1_1_project_1_1_error.xhtml) [removeRun](classansys_1_1_project_1_1_simulation.xhtml#a1d4061c3e84cb66b722de5e751feeee1) (const std::string &amp;pName, bool pFlagErase) Remove the specified run from the simulation. [More...](classansys_1_1_project_1_1_simulation.xhtml#a1d4061c3e84cb66b722de5e751feeee1)  
 [RunGroup](classansys_1_1_project_1_1_run_group.xhtml) [newRunGroup](classansys_1_1_project_1_1_simulation.xhtml#a3c4e9b6a70403ddafdb2dbd93c027aab) (std::string pName, Run::RunOutputType pType) Create a new [RunGroup](classansys_1_1_project_1_1_run_group.xhtml "Optional concept - Virtual folder with a list of Run.") - a virtual group of separate runs, can be assigned a type. [More...](classansys_1_1_project_1_1_simulation.xhtml#a3c4e9b6a70403ddafdb2dbd93c027aab)  
 [RunGroup](classansys_1_1_project_1_1_run_group.xhtml) [getRunGroup](classansys_1_1_project_1_1_simulation.xhtml#abe2f341b876cdaeaa82737df9eaf428a) (const std::string &amp;pName) const Return the [RunGroup](classansys_1_1_project_1_1_run_group.xhtml "Optional concept - Virtual folder with a list of Run.") by this name, in the current [Simulation](classansys_1_1_project_1_1_simulation.xhtml "Subfolder of a Project, regrouping input files and Run subfolders."). [More...](classansys_1_1_project_1_1_simulation.xhtml#abe2f341b876cdaeaa82737df9eaf428a)  
 std::vector&lt; std::string &gt; [getRunGroups](classansys_1_1_project_1_1_simulation.xhtml#a284554c45e7a609f560f4980ad969e72) () const Return the list of RunGroups, by name, in this simulation. [More...](classansys_1_1_project_1_1_simulation.xhtml#a284554c45e7a609f560f4980ad969e72)  
 void [setCurrentRun](classansys_1_1_project_1_1_simulation.xhtml#a607c98713399c26357da6ae6a92b21ec) ([Iterator](classansys_1_1_project_1_1_iterator.xhtml) pRun) Set the current [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") in the simulation. [More...](classansys_1_1_project_1_1_simulation.xhtml#a607c98713399c26357da6ae6a92b21ec)  
 <a id="aa53437d21b9d65376405d5302733b271" name="aa53437d21b9d65376405d5302733b271"></a>[Iterator](classansys_1_1_project_1_1_iterator.xhtml) **getCurrentRun** () const Return the current [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") in the simulation - see [setCurrentRun()](classansys_1_1_project_1_1_simulation.xhtml#a607c98713399c26357da6ae6a92b21ec "Set the current Run in the simulation.")   
 ![-](/sites/default/files/migrate-content/common_fluids_format_2024_r1/closed.png) Public Member Functions inherited from [ansys::Project::SimBase](classansys_1_1_project_1_1_sim_base.xhtml)<a id="a8aef8314dfc33a8d25e3963fa3fd07ba" name="a8aef8314dfc33a8d25e3963fa3fd07ba"></a>std::string **getName** () const Returns the object name in the project.   
 <a id="a1fb985412b84a850718aa3aae6e03147" name="a1fb985412b84a850718aa3aae6e03147"></a>virtual [Iterator](classansys_1_1_project_1_1_iterator.xhtml) **getCase** () const Returns the case file associated with this folder.   
 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) [setCase](classansys_1_1_project_1_1_sim_base.xhtml#a2312d3c69d5f32a7c76bc567c942e945) ([Iterator](classansys_1_1_project_1_1_iterator.xhtml) pCaseFile) Set the case file associated with this item. [More...](classansys_1_1_project_1_1_sim_base.xhtml#a2312d3c69d5f32a7c76bc567c942e945)  
 void [setMainDataType](classansys_1_1_project_1_1_sim_base.xhtml#ac44fe199d4f2c2c7aa8be5d22353740a) (const std::string &amp;pDataType) Set the result type expected as default output for runs. [More...](classansys_1_1_project_1_1_sim_base.xhtml#ac44fe199d4f2c2c7aa8be5d22353740a)  
 <a id="a743bc36e30200c87603dedaafe1d969d" name="a743bc36e30200c87603dedaafe1d969d"></a>std::string **getMainDataType** () const Returns the result type expected as default output for runs (see: [setMainDataType()](classansys_1_1_project_1_1_sim_base.xhtml#ac44fe199d4f2c2c7aa8be5d22353740a "Set the result type expected as default output for runs.") )   
 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) [copyInput](classansys_1_1_project_1_1_sim_base.xhtml#aeb5ffe7267a10b465dc8c2c825195074) ([Path](classansys_1_1_project_1_1_path.xhtml) pPath, bool pInInputFolder=false) Copy the specified project file into the current folder. [More...](classansys_1_1_project_1_1_sim_base.xhtml#aeb5ffe7267a10b465dc8c2c825195074)  
 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) [setInput](classansys_1_1_project_1_1_sim_base.xhtml#a0b6fee750eeb02e8068640758c6d8b0d) ([Path](classansys_1_1_project_1_1_path.xhtml) pPath) Register a files as Input/ to this folder. [More...](classansys_1_1_project_1_1_sim_base.xhtml#a0b6fee750eeb02e8068640758c6d8b0d)  
 std::vector&lt; [Iterator](classansys_1_1_project_1_1_iterator.xhtml) &gt; [getInputs](classansys_1_1_project_1_1_sim_base.xhtml#a2d532a01d1f99cb76ec85e8f4908d932) ([Error](classansys_1_1_project_1_1_error.xhtml) \*pErrorPtr=0) const Return the list of registered inputs for this simulation. [More...](classansys_1_1_project_1_1_sim_base.xhtml#a2d532a01d1f99cb76ec85e8f4908d932)  
 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) [getInputByType](classansys_1_1_project_1_1_sim_base.xhtml#a7eb8d0c48e61b171014c593fb63e85c6) (const std::string &amp;pType, std::string pSubtype="") const Search for a -single- input of the specified type (and optionally, subtype) [More...](classansys_1_1_project_1_1_sim_base.xhtml#a7eb8d0c48e61b171014c593fb63e85c6)  
 std::vector&lt; [Iterator](classansys_1_1_project_1_1_iterator.xhtml) &gt; [getInputsByType](classansys_1_1_project_1_1_sim_base.xhtml#abc3d5315d8f3a3cff217c2112b4581a1) (const std::string &amp;pType, std::string pSubtype="", [Error](classansys_1_1_project_1_1_error.xhtml) \*pErrorPtr=0) const Search for one or multiple input of the specified type (and optionally, subtype) [More...](classansys_1_1_project_1_1_sim_base.xhtml#abc3d5315d8f3a3cff217c2112b4581a1)  
 <a id="a067d578e43cf6085623921adb816d5f4" name="a067d578e43cf6085623921adb816d5f4"></a>[Metadata](classansys_1_1_project_1_1_metadata.xhtml) &amp; **getMeta** () Access the [Iterator](classansys_1_1_project_1_1_iterator.xhtml "Pointer to a project location.") [Metadata](classansys_1_1_project_1_1_metadata.xhtml "Dictionary of values associated with an Iterator."), equivalent to [getIterator()](classansys_1_1_project_1_1_sim_base.xhtml#a16f3c24244ab0ec6587d945785c7718d "Access the Iterator for this item.").[getMeta()](classansys_1_1_project_1_1_sim_base.xhtml#a067d578e43cf6085623921adb816d5f4 "Access the Iterator Metadata, equivalent to getIterator().getMeta()")   
 <a id="af6e6bd9bee7a4fe152ff2ac2f51ad8c9" name="af6e6bd9bee7a4fe152ff2ac2f51ad8c9"></a>const [Metadata](classansys_1_1_project_1_1_metadata.xhtml) &amp; **getMeta** () const Access the [Iterator](classansys_1_1_project_1_1_iterator.xhtml "Pointer to a project location.") [Metadata](classansys_1_1_project_1_1_metadata.xhtml "Dictionary of values associated with an Iterator."), equivalent to [getIterator()](classansys_1_1_project_1_1_sim_base.xhtml#a16f3c24244ab0ec6587d945785c7718d "Access the Iterator for this item.").[getMeta()](classansys_1_1_project_1_1_sim_base.xhtml#a067d578e43cf6085623921adb816d5f4 "Access the Iterator Metadata, equivalent to getIterator().getMeta()")   
 <a id="a16f3c24244ab0ec6587d945785c7718d" name="a16f3c24244ab0ec6587d945785c7718d"></a>virtual [Iterator](classansys_1_1_project_1_1_iterator.xhtml) **getIterator** () const Access the [Iterator](classansys_1_1_project_1_1_iterator.xhtml "Pointer to a project location.") for this item.   
 ## <a id="pro-methods" name="pro-methods"></a>Protected Member Functions

<a id="aa623d14ca07c68e510f518a6c51e8951" name="aa623d14ca07c68e510f518a6c51e8951"></a>std::vector&lt; std::string &gt; **getListOfSubclass** (const std::string &amp;pSubclass) const Search child hierarchy for items of the specified subclass.   
 <a id="details" name="details"></a>## Detailed Description

Subfolder of a [Project](classansys_1_1_project_1_1_project.xhtml "Base class for Project API, also see SimProject."), regrouping input files and [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") subfolders.

Subclass of [Iterator](classansys_1_1_project_1_1_iterator.xhtml "Pointer to a project location."), can be constructed from an [Iterator](classansys_1_1_project_1_1_iterator.xhtml "Pointer to a project location."), the [Simulation](classansys_1_1_project_1_1_simulation.xhtml "Subfolder of a Project, regrouping input files and Run subfolders.") is ok() only if the provided iterator is of the appropriate subclass.

```
  Iterator it = prj.get("/Sim1/");
  Simulation sim(it);
    sim.ok()
```

 In a [Simulation](classansys_1_1_project_1_1_simulation.xhtml "Subfolder of a Project, regrouping input files and Run subfolders."), one or multiple [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") are created, to store the simulation Results, organized in [Output](classansys_1_1_project_1_1_output.xhtml "Subfolder of a Run, regrouping Results for a step.") subfolders. The [Simulation](classansys_1_1_project_1_1_simulation.xhtml "Subfolder of a Project, regrouping input files and Run subfolders.") might have settings ([Metadata](classansys_1_1_project_1_1_metadata.xhtml "Dictionary of values associated with an Iterator.")) related to the solver settings, or common to all results in this folder hiearchy.



## Constructor &amp; Destructor Documentation

<a id="a1353fad4a75cc2abe9ca84c4d307c3c4" name="a1353fad4a75cc2abe9ca84c4d307c3c4"></a>## [◆ ](#a1353fad4a75cc2abe9ca84c4d307c3c4)Simulation()

 ansys::Project::Simulation::Simulation  ( [Iterator](classansys_1_1_project_1_1_iterator.xhtml)  *pIter*) 

Constructor from [Iterator](classansys_1_1_project_1_1_iterator.xhtml "Pointer to a project location.").

The input [Iterator](classansys_1_1_project_1_1_iterator.xhtml "Pointer to a project location.") must be of subclass [Simulation](classansys_1_1_project_1_1_simulation.xhtml "Subfolder of a Project, regrouping input files and Run subfolders.") If the subclass is not [Simulation](classansys_1_1_project_1_1_simulation.xhtml "Subfolder of a Project, regrouping input files and Run subfolders."), the [Simulation](classansys_1_1_project_1_1_simulation.xhtml "Subfolder of a Project, regrouping input files and Run subfolders.") object is invalid ( !ok() )





## Member Function Documentation

<a id="a08e4de6f33b578b6edbb8127fb398c25" name="a08e4de6f33b578b6edbb8127fb398c25"></a>## [◆ ](#a08e4de6f33b578b6edbb8127fb398c25)getData()

 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) ansys::Project::Simulation::getData  ( ) 

Return the current Data for the simulation.

The current data is the latest [Result](classansys_1_1_project_1_1_result.xhtml "Result (data) file, output of a Simulation Run."), of the main data type, for the current [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.").





<a id="abe2f341b876cdaeaa82737df9eaf428a" name="abe2f341b876cdaeaa82737df9eaf428a"></a>## [◆ ](#abe2f341b876cdaeaa82737df9eaf428a)getRunGroup()

 [RunGroup](classansys_1_1_project_1_1_run_group.xhtml) ansys::Project::Simulation::getRunGroup  ( const std::string &amp;  *pName*)  const

Return the [RunGroup](classansys_1_1_project_1_1_run_group.xhtml "Optional concept - Virtual folder with a list of Run.") by this name, in the current [Simulation](classansys_1_1_project_1_1_simulation.xhtml "Subfolder of a Project, regrouping input files and Run subfolders.").

If the rungroup is in a subfolder the path to it is expected (same path type returned by [getRunGroups()](classansys_1_1_project_1_1_simulation.xhtml#a284554c45e7a609f560f4980ad969e72 "Return the list of RunGroups, by name, in this simulation.") ) Simulation/RunGroup -&gt; [RunGroup](classansys_1_1_project_1_1_run_group.xhtml "Optional concept - Virtual folder with a list of Run.") Simulation/folder/RunGroup -&gt; folder/RunGroup





<a id="a284554c45e7a609f560f4980ad969e72" name="a284554c45e7a609f560f4980ad969e72"></a>## [◆ ](#a284554c45e7a609f560f4980ad969e72)getRunGroups()

 std::vector&lt; std::string &gt; ansys::Project::Simulation::getRunGroups  ( )  const

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 -&gt; [RunGroup](classansys_1_1_project_1_1_run_group.xhtml "Optional concept - Virtual folder with a list of Run.") Simulation/folder/RunGroup -&gt; folder/RunGroup





<a id="a38cc991a7916643a66a0268fb2f755ad" name="a38cc991a7916643a66a0268fb2f755ad"></a>## [◆ ](#a38cc991a7916643a66a0268fb2f755ad)getRuns()

 std::vector&lt; std::string &gt; ansys::Project::Simulation::getRuns  ( )  const

Returns list of children [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") folders, as vector of their names (see: [getRun()](classansys_1_1_project_1_1_simulation.xhtml#abf2669d8f42be00cdf588e7443caf598 "Returns Iterator to the children Run with the given name.") )

If the run is in a subfolder the relative path to it is included Simulation/Run -&gt; [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") Simulation/folder/Run -&gt; folder/Run





<a id="a4eb433d9185e539d85307aa6b869c291" name="a4eb433d9185e539d85307aa6b869c291"></a>## [◆ ](#a4eb433d9185e539d85307aa6b869c291)newRun()

 [Run](classansys_1_1_project_1_1_run.xhtml) ansys::Project::Simulation::newRun  ( std::string  *pName*,    Run::RunOutputType  *pType*   ) 

Create a [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") folder in the current [Simulation](classansys_1_1_project_1_1_simulation.xhtml "Subfolder of a Project, regrouping input files and Run subfolders.").

The [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") folder is physical or virtual, depending of the project [ProjectStoragePolicy](classansys_1_1_project_1_1_project_storage_policy.xhtml "Project storage settings, control folder management, folder names, etc.") The new run is given a name, and a type.

Parameters pName: Name of the new [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step."), must be unique in the simulation pTypeType of the new run (Transient, Steady, etc.) see [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") 



<a id="a3c4e9b6a70403ddafdb2dbd93c027aab" name="a3c4e9b6a70403ddafdb2dbd93c027aab"></a>## [◆ ](#a3c4e9b6a70403ddafdb2dbd93c027aab)newRunGroup()

 [RunGroup](classansys_1_1_project_1_1_run_group.xhtml) ansys::Project::Simulation::newRunGroup  ( std::string  *pName*,    Run::RunOutputType  *pType*   ) 

Create a new [RunGroup](classansys_1_1_project_1_1_run_group.xhtml "Optional concept - Virtual folder with a list of Run.") - 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-&gt;[Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") association, as it would normally for Run-&gt;[Output](classansys_1_1_project_1_1_output.xhtml "Subfolder of a Run, regrouping Results for a step.").

A [RunGroup](classansys_1_1_project_1_1_run_group.xhtml "Optional concept - Virtual folder with a list of Run.") permits to define multiple levels of run type, for example a parametric [RunGroup](classansys_1_1_project_1_1_run_group.xhtml "Optional concept - Virtual folder with a list of Run.") would contain transient Runs. The design point parameters are then assigned at the [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") level, while the varying time values at the [Output](classansys_1_1_project_1_1_output.xhtml "Subfolder of a Run, regrouping Results for a step.") level.

Parameters pName: Name of the new [RunGroup](classansys_1_1_project_1_1_run_group.xhtml "Optional concept - Virtual folder with a list of Run."), must be unique in the simulation pTypeType of the new group (Transient, Steady, etc.) see [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") . 



<a id="af9cd129be20c02c3be763952a6a8bba3" name="af9cd129be20c02c3be763952a6a8bba3"></a>## [◆ ](#af9cd129be20c02c3be763952a6a8bba3)newRunInFolder()

 [Run](classansys_1_1_project_1_1_run.xhtml) ansys::Project::Simulation::newRunInFolder  ( std::string  *pName*,    Run::RunOutputType  *pType*,    [Iterator](classansys_1_1_project_1_1_iterator.xhtml)  *pFolder*   ) 

Create a [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") folder in the current [Simulation](classansys_1_1_project_1_1_simulation.xhtml "Subfolder of a Project, regrouping input files and Run subfolders.") subfolder.

The [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") folder is physical or virtual, depending of the project [ProjectStoragePolicy](classansys_1_1_project_1_1_project_storage_policy.xhtml "Project storage settings, control folder management, folder names, etc.") The new run is given a name, and a type.

Parameters pName: Name of the new [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step."), must be unique in the simulation pTypeType of the new run (Transient, Steady, etc.) see [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") 



<a id="a1d4061c3e84cb66b722de5e751feeee1" name="a1d4061c3e84cb66b722de5e751feeee1"></a>## [◆ ](#a1d4061c3e84cb66b722de5e751feeee1)removeRun()

 [Error](classansys_1_1_project_1_1_error.xhtml) ansys::Project::Simulation::removeRun  ( const std::string &amp;  *pName*,    bool  *pFlagErase*   ) 

Remove the specified run from the simulation.

Parameters pFlagEraseIf enabled, will erase the run folder and its data 



<a id="a607c98713399c26357da6ae6a92b21ec" name="a607c98713399c26357da6ae6a92b21ec"></a>## [◆ ](#a607c98713399c26357da6ae6a92b21ec)setCurrentRun()

 void ansys::Project::Simulation::setCurrentRun  ( [Iterator](classansys_1_1_project_1_1_iterator.xhtml)  *pRun*) 

Set the current [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") 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](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") created

Parameters pRun[Iterator](classansys_1_1_project_1_1_iterator.xhtml "Pointer to a project location.") to the existing run to mark as current