> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ansys::Project::RunGroup Class Reference

Optional concept - Virtual folder with a list of [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md).

`#include "RunGroup.hpp"`

Inheritance diagram for ansys::Project::RunGroup:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_group.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=4c60905b10f9879eafc279720d927311)

## Public Member Functions

| Type | Name |
| - | - |
| | [RunGroup](#ab0d741b3d4f67d430fe5c99888856e45) ([Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) pIter) |
| virtual | [\~RunGroup](#a85bdc7fd26e639c850b8bb8b45507e9f) () |
| virtual [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [isValid](#a3e9c11403f6ecd0abfeee7e05706631c) () const Returns error with message if invalid. |
| virtual bool | [setRunOutputType](#aff79c14360fd61663d209ea8bd6f0e05) ([Run::RunOutputType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md#a730f2ea4aef8f22f0886f12109c17092) pType) Set the run output type, will add automatically the mandatory variables (if any) |
| [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [addRun](#a2f0eda313925457b7e3362530169e5ac) ([Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) pRun) Register a [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md) in the [RunGroup](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_group.md). |
| std::vector\< [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) > | [getRuns](#a622a0d105333fa6403d6713b559e927d) () const Returns the list of runs for this [RunGroup](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_group.md). |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getIterator](#a6b797638d34347e6801b88c0e69e05ce) () const |
| bool | [addVariable](#ab4e9f4d0c7f6e9747451330dc698c5bc) (const std::string \&pVar) Register an input variable for this run. |
| bool | [setVariables](#a2e8493f21a92ce378d4bce82d0cb7b3f) (const std::vector\< std::string > \&pVars) Set/replace the list of variables for this run. |
| bool | [removeVariable](#a54114201475287073e786d77e3718383) (const std::string \&pVar) Remove a variable from the list of inputs. |
| std::vector\< std::string > | [getVariables](#aebee6c00a322bbcccc5659453699d929) () const Return the list of input variables for this [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md). |
| bool | [addOutputVariable](#aa84a2103fc117a256bab7cce5fef9780) (const std::string \&pVar) Register an output variable for this run. |
| bool | [setOutputVariables](#a1593a20a772c53baf1af273ab63f0a53) (const std::vector\< std::string > \&pVars) Set/replace the list of output variables. |
| bool | [removeOutputVariable](#ae3d5f185d577c43e2ed2721f18212c35) (const std::string \&pVar) Remove an output variable. |
| std::vector\< std::string > | [getOutputVariables](#aa85ce4557dbb6edd648e2e4d68c60ab6) () const Returns the list of output variables. |
| std::vector\< std::string > | [getAllVariables](#ae5c21c8fb9320c241809e969717c4360) () const Returns the list of all variables ( input and output ) |
| void | [addVarIndex](#a8ba482e260f6846c1a59cd8848341601) () Add the Index variable (not required if mandatory for the run type) |
| void | [addVarTime](#a03c7998829a5b7f7fe8be10be1474e7c) () Add the Time variable (not required if mandatory for the run type) |
| void | [addVarSolverIteration](#a322c24066e5f30512865a58bd7b01c43) () Add the SolverIteration variable (not required if mandatory for the run type) |
| void | [addVarCrankAngle](#a518fcda2b9be5b8c2278981784e0f574) () Add the built-in variable. |
| void | [addVarMeshId](#ac89b098f5fe66841a9b538617e7b3f87) () Add the MeshId variable - Id should be incremented when the mesh has changed. |
| void | [addVarDomainTransformationId](#af1b52a763e5fc10f7ad5f350767ae945) () Add the DomainTransformationId variable - Id should be incremented when the mesh transformation metadata has changed. |
| void | [addVarPhysicsId](#ab2c162b2db99da7a0ae0a33f34fc4ad9) () Add the PhysicsId variable - Id should be incremented when the physics settings have changed. |
| void | [addVarTopologyId](#a5bf38019a16ca06c2fc3500e5c9fe0a5) () Add the TopologyId variable - Id should be incremented when the topology (list of boundaries, domains) has changed. |
| void | [addVarCoordinatesId](#a32464d38b59f71688e99b311de6ce564) () Add the CoordinatesId variable - Id should be incremented when the node locations of a mesh have changed. |
| void | [addVarConnectivityId](#a376c18baaecfbce85fa4e637e71c0e5b) () Add the ConnectivityId variable - Id should be incremented when the cells of a mesh are changed (number changed, connectivity changed, ...) |
| void | [addVarCaseId](#a1a825e5d408a51ac0ad6ee804e2e411e) () Add the CaseId variable - Id is incremented when the case settings are changed. |
| void | [addVarInputSettingsId](#ad1cb2f559eef2c4960300dc23eb06d14) () Add the InputSettings variable - Id is incremented when the input case settings are changed. |
| void | [addVarOutputSettingsId](#aebad5a9f951bc07891bef662aed6ada1) () Add the OutputSettings variable - Id is incremented when the case output settings are changed. |
| void | [setRunStatus](#ae14a2fd242ce9515baba2542a12fe493) (RunStatus pStatus) Set the RunStatus state for this [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md). |
| RunStatus | [getRunStatus](#a7482f6212a0f951dcb367a98803b33e3) () const Returns the RunStatus state for this [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md). See [setRunStatus()](#ae14a2fd242ce9515baba2542a12fe493) |
| [RunOutputType](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md#a730f2ea4aef8f22f0886f12109c17092) | [getRunOutputType](#aee0d6fd3d0249f5536d45886bc9ad403) () const Return the RunOutputType as the enum. |
| std::string | [getRunOutputTypeAsString](#a77a5212218cb0dde90bccf6597c0d8d4) () const Return the RunOutputType as a string. |

## Detailed Description

Optional concept - Virtual folder with a list of [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md).

Can be used to regroup multiple runs part of a larger parametric analysis. The [RunGroup](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_group.md) is a subclass of [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md) and provides the same services ( RunOutputType, input/output variables, etc. )

## Constructor & Destructor Documentation

### RunGroup()

```cpp theme={null}
ansys::Project::RunGroup::RunGroup(Iterator pIter)
```

### \~RunGroup()

```cpp theme={null}
virtual ansys::Project::RunGroup::~RunGroup()
```

`inline` `virtual`

## Member Function Documentation

### addOutputVariable()

```cpp theme={null}
bool ansys::Project::Run::addOutputVariable(const std::string & pVar)
```

Register an output variable for this run.

All [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) subfolders should define a specific value for this variable.

### addRun()

```cpp theme={null}
Error ansys::Project::RunGroup::addRun(Iterator pRun)
```

Register a [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md) in the [RunGroup](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_group.md).

The [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md) is referenced as a project Link in the virtual subfolder

### addVarCaseId()

```cpp theme={null}
void ansys::Project::Run::addVarCaseId()
```

Add the CaseId variable - Id is incremented when the case settings are changed.

### addVarConnectivityId()

```cpp theme={null}
void ansys::Project::Run::addVarConnectivityId()
```

Add the ConnectivityId variable - Id should be incremented when the cells of a mesh are changed (number changed, connectivity changed, ...)

### addVarCoordinatesId()

```cpp theme={null}
void ansys::Project::Run::addVarCoordinatesId()
```

Add the CoordinatesId variable - Id should be incremented when the node locations of a mesh have changed.

### addVarCrankAngle()

```cpp theme={null}
void ansys::Project::Run::addVarCrankAngle()
```

Add the built-in variable.

### addVarDomainTransformationId()

```cpp theme={null}
void ansys::Project::Run::addVarDomainTransformationId()
```

Add the DomainTransformationId variable - Id should be incremented when the mesh transformation metadata has changed.

### addVariable()

```cpp theme={null}
bool ansys::Project::Run::addVariable(const std::string & pVar)
```

Register an input variable for this run.

This registration is not required for automatic variables (Transient=Time, etc.)

All [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) subfolders should define a specific value for this variable.

### addVarIndex()

```cpp theme={null}
void ansys::Project::Run::addVarIndex()
```

Add the Index variable (not required if mandatory for the run type)

### addVarInputSettingsId()

```cpp theme={null}
void ansys::Project::Run::addVarInputSettingsId()
```

Add the InputSettings variable - Id is incremented when the input case settings are changed.

If provided, this should be incremented when any of the dependent input settings are changed, such as PhysicsId or DomainTransformationId

### addVarMeshId()

```cpp theme={null}
void ansys::Project::Run::addVarMeshId()
```

Add the MeshId variable - Id should be incremented when the mesh has changed.

### addVarOutputSettingsId()

```cpp theme={null}
void ansys::Project::Run::addVarOutputSettingsId()
```

Add the OutputSettings variable - Id is incremented when the case output settings are changed.

### addVarPhysicsId()

```cpp theme={null}
void ansys::Project::Run::addVarPhysicsId()
```

Add the PhysicsId variable - Id should be incremented when the physics settings have changed.

### addVarSolverIteration()

```cpp theme={null}
void ansys::Project::Run::addVarSolverIteration()
```

Add the SolverIteration variable (not required if mandatory for the run type)

### addVarTime()

```cpp theme={null}
void ansys::Project::Run::addVarTime()
```

Add the Time variable (not required if mandatory for the run type)

### addVarTopologyId()

```cpp theme={null}
void ansys::Project::Run::addVarTopologyId()
```

Add the TopologyId variable - Id should be incremented when the topology (list of boundaries, domains) has changed.

### getAllVariables()

```cpp theme={null}
std::vector< std::string > ansys::Project::Run::getAllVariables() const
```

Returns the list of all variables ( input and output )

### getIterator()

```cpp theme={null}
Iterator ansys::Project::Run::getIterator() const
```

`inline` `virtual`

Reimplemented from [ansys::Project::Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md#a6b797638d34347e6801b88c0e69e05ce).

### getOutputVariables()

```cpp theme={null}
std::vector< std::string > ansys::Project::Run::getOutputVariables() const
```

Returns the list of output variables.

### getRunOutputType()

```cpp theme={null}
Run::RunOutputType ansys::Project::Run::getRunOutputType() const
```

Return the RunOutputType as the enum.

### getRunOutputTypeAsString()

```cpp theme={null}
std::string ansys::Project::Run::getRunOutputTypeAsString() const
```

Return the RunOutputType as a string.

### getRuns()

```cpp theme={null}
std::vector< Iterator > ansys::Project::RunGroup::getRuns() const
```

Returns the list of runs for this [RunGroup](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_group.md).

### getRunStatus()

```cpp theme={null}
RunStatus ansys::Project::Run::getRunStatus() const
```

Returns the RunStatus state for this [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md). See [setRunStatus()](#ae14a2fd242ce9515baba2542a12fe493)

### getVariables()

```cpp theme={null}
std::vector< std::string > ansys::Project::Run::getVariables() const
```

Return the list of input variables for this [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md).

### isValid()

```cpp theme={null}
Error ansys::Project::RunGroup::isValid() const
```

`virtual`

Returns error with message if invalid.

Reimplemented from [ansys::Project::Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md#a50461d0ef3487601fd73f740cee85348).

### removeOutputVariable()

```cpp theme={null}
bool ansys::Project::Run::removeOutputVariable(const std::string & pVar)
```

Remove an output variable.

### removeVariable()

```cpp theme={null}
bool ansys::Project::Run::removeVariable(const std::string & pVar)
```

Remove a variable from the list of inputs.

Mandatory variables cannot be removed

### setOutputVariables()

```cpp theme={null}
bool ansys::Project::Run::setOutputVariables(const std::vector< std::string > & pVars)
```

Set/replace the list of output variables.

### setRunOutputType()

```cpp theme={null}
bool ansys::Project::RunGroup::setRunOutputType(Run::RunOutputType pType)
```

`virtual`

Set the run output type, will add automatically the mandatory variables (if any)

The RunOutputType::Simple cannot be used for a [RunGroup](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_group.md)

### setRunStatus()

```cpp theme={null}
void ansys::Project::Run::setRunStatus(RunStatus pStatus)
```

Set the RunStatus state for this [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md).

(Optional API) The run status permits to indicate if a [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md) is running, completed, waiting for execution, etc. This status can also be defined at the [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) level

### setVariables()

```cpp theme={null}
bool ansys::Project::Run::setVariables(const std::vector< std::string > & pVars)
```

Set/replace the list of variables for this run.

The operation will fail if the list of variables does not contain the mandatory variable for the RunOutputType

All [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) subfolders should define a specific value for each variable.
