> ## 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::Output Class Reference

Subfolder of a [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md), regrouping Results for a step.

`#include "Output.hpp"`

Inheritance diagram for ansys::Project::Output:

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

## Public Member Functions

| Type | Name |
| - | - |
| | [Output](#a5822cd96f3da57e907ee6f6659c5335c) ([Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) pIter) Constructor from [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md). |
| virtual | [\~Output](#a08838df0b6cd04ce98535607861255a0) () |
| bool | [ok](#a58c220b2e403a6e756aaf9e0c163b6ba) () const Indicates if the [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) is valid and of correct subclass. |
| virtual [Error](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_error.md) | [isValid](#a2a38e88d319574a635ce859eb73919a5) () const Returns error with message if invalid. |
| bool | [operator==](#aa1416959d065fa66f482a78ce5eceecf) (const [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) \&pObj) const |
| bool | [operator!=](#a94bd73fd76ddf85a382e7ecf851b1ab4) (const [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) \&pObj) const |
| void | [setCase](#a93d33e0bc884192ab2aa879ad0eebdff) ([Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) pIter) Assign the case used/shared by results of this output, as link. |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getCase](#a4cdd2bb59681158e7bb39e82508a4f29) () const Return the case link, if any. |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getInputByType](#adb5e10045807b888a6db4bc959f225b3) (const std::string \&pType) const Search the metadata links for the specified file type. |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [newResult](#afec42193db909a825ab770038910dfbb) (const [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) \&pFileLocation, const std::string \&pName, const std::string \&pType, const std::string \&pSubtype) Create a [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md) object in the current [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) folder. |
| std::vector\< [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) > | [getResultIterators](#a04438a90a5d193ae7fdb837a9ecefb6d) (const std::string \&pType, const std::string \&pSubtype) const Return the list of results in the current [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md), as a vector of [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md). |
| std::vector\< [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md) > | [getResults](#aca5783bffbd5016ababb82e365746f0d) (const std::string \&pType, const std::string \&pSubtype) const Return the list of results in the current [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md), as a vector of [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md). |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getData](#afec1dc4d84b3faaba2a23724a632e1f8) () Returns the main data file for this [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md). |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getResult](#ae00d3ebda857978204a8565849f1bb61) (const std::string \&pDataType) Returns the enclosed [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md) with the specified subtype. |
| virtual bool | [hasValue](#aee14eecc689169da3b4a4ac4a31e465c) (const std::string \&pVar, bool pFlagInherited) const Search the metadata (local and inherited) for the specified key. |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getValueIter](#a4d0eab10bab90999b734d237c9975f5d) (const std::string \&pVar) const Search the metadata (local and inherited) for the specified metadata link and return the value as an iterator. |
| virtual std::string | [getValue](#a8f8a26e4aa49305a5641b1f6a77ed6bb) (const std::string \&pVar, bool pFlagInherited) const Search the metadata (local and inherited) for the specified key and return the value as string. |
| virtual int | [getValueInt](#a0faaaf36081aefb020559194ce3ced49) (const std::string \&pVar, bool pFlagInherited) const Search the metadata (local and inherited) for the specified key and return the value as integer. |
| virtual double | [getValueDouble](#a947704ae972aebe9a812a615e3d305b8) (const std::string \&pVar, bool pFlagInherited) const Search the metadata (local and inherited) for the specified key and return the value as double. |
| virtual MetaVariableType | [getValueType](#a4d54e20f739de356a83415d5e5adce0e) (const std::string \&pVar, bool pFlagInherited) const Search the metadata (local and inherited) for the specified key and return the its data type. |
| virtual void | [setValue](#ab69eb9e316781111bb8eadcbd275f46a) (const std::string \&pVar, const std::string \&pValue) Sets the local metadata to the specified key/value. |
| virtual void | [setValueInt](#a653c0e8ffd12694cc984519c2389dfd7) (const std::string \&pVar, int pValue) Sets the local metadata to the specified key/value. |
| virtual void | [setValueDouble](#a6a388a3ce8f6b19b24f10915b35a5c5a) (const std::string \&pVar, double pValue) Sets the local metadata to the specified key/value. |
| void | [setValue](#ad83b20fe60475ae321161438ad5dea5d) (const std::string \&pVar, int pValue) |
| void | [setValue](#a9005940311d352d44c34a942d967b43d) (const std::string \&pVar, double pValue) |
| void | [setTransparent](#a0d1045bc40cbe9d3ee001e1f226f351c) (bool pHide) Set the [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) visible or invisible (transparent) in the project viewer. |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getIterator](#a16c0aa2eb60649962e8174ff139057ae) () const Returns the [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) for this [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md). |
| | [operator Iterator](#a4cfc7a20a25770aa5a2915a385dc0679) () const |
| void | [setRunStatus](#a424c139480241d171fc63c81640b0e62) (RunStatus pStatus) Set 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). |
| RunStatus | [getRunStatus](#aa65dedbfd1d5f5ac7b11aafbd20652f1) () 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()](#a424c139480241d171fc63c81640b0e62) |

> [accordion] Public Member Functions inherited from ansys::Project::RunOutputAttr
>
> Public Member Functions inherited from [ansys::Project::RunOutputAttr](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md)
>
> | Type | Name |
> | - | - |
> | virtual | [\~RunOutputAttr](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a65a0b1def1d611ef99d59910a627c6e4) () |
> | std::vector\< std::string > | [getValues](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a3552775077206a3eb84c63548b1dce8f) (const std::vector\< std::string > \&pVars, bool pFlagInherited) const Returns the values for a list of variables. |
> | int | [getIndex](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#afd9f573f991216d001360be85a476827) () const Returns the output index (incremental id in a run) - always available. |
> | int | [getSolverIteration](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a9341f80aeb8c06eae7405815daabc2de) () const Returns the number of solver iterations (if available) |
> | double | [getTime](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a43a2d325edb0332bd89dd279da60de88) () const Returns the transient time value (if available) |
> | void | [setIndex](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a8e79b641bdf6cd9fa3132839b2314cfa) (int pValue) Changes the specified variable. |
> | void | [setSolverIteration](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a5aef7a029fa3a7f830710275035c4bae) (int pValue) Changes the specified variable. |
> | void | [setTime](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a7223a840d264a500994bc1a424772c19) (double pValue) Changes the specified variable. |
> | double | [getCrankAngle](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a2722c5a61bdf6ae862f77277cb799dae) () const Returns the specified variable (if available) |
> | void | [setCrankAngle](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a399cfa854a08df9c39ed9c7324651012) (double pValue) Changes the specified variable. |
> | int | [getCaseId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a3c9c4e3b8a1901e526c252b9beda9580) () const Returns the specified variable (if available) |
> | int | [getInputSettingsId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a267138500fe47e1c74adebc0b3b3082e) () const Returns the specified variable (if available) |
> | int | [getDomainTransformationId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#ae1427ae2518b3bf20a72183388307d4e) () const Returns the specified variable (if available) |
> | int | [getPhysicsId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a212e33422926cc6ce0c06ee08b301f83) () const Returns the specified variable (if available) |
> | int | [getOutputSettingsId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a5b718ea67c8d4abcec38f3968ffe71f6) () const Returns the specified variable (if available) |
> | int | [getMeshId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a9b573f92ba0532e9af0181634727d876) () const Returns the specified variable (if available) |
> | int | [getTopologyId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a2088deca6c0239248d5c7d1d81b6c3a3) () const Returns the specified variable (if available) |
> | int | [getConnectivityId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#aef3b9200f5924db3428e31e0c8c6e80e) () const Returns the specified variable (if available) |
> | int | [getCoordinatesId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a3a414dbc11513402e17c2eafaf240e7e) () const Returns the specified variable (if available) |
> | int | [getLocationId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a5d22709f5cd0500b1c0e5db416f1b8e4) () const Returns the specified variable (if available) |
> | void | [setCaseId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a98234a96286c594c628ae5fc66a2daf1) (int pValue) Changes the specified variable. |
> | void | [setInputSettingsId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a4dc9c1c940983005c8aa55516c7dd370) (int pValue) Changes the specified variable. |
> | void | [setDomainTransformationId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a48ce611d3011e8d85c7508654d10b0b7) (int pValue) Changes the specified variable. |
> | void | [setPhysicsId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a144923c544b7f9e25adaa02c4d0fcfb2) (int pValue) Changes the specified variable. |
> | void | [setOutputSettingsId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#aff075987d634ddd1bb5cc72885e60476) (int pValue) Changes the specified variable. |
> | void | [setMeshId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#af6651bd327bccc3154c7a9dff550b780) (int pValue) Changes the specified variable. |
> | void | [setTopologyId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a8952ac3fb7b31862798fef375a37f789) (int pValue) Changes the specified variable. |
> | void | [setConnectivityId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a2e8201893b1ffef4e96758118ac1438c) (int pValue) Changes the specified variable. |
> | void | [setCoordinatesId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a1f1a501898b6eaf181ef0b3b7a991342) (int pValue) Changes the specified variable. |
> | void | [setLocationId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#ad49c7e9e12f20d93598d744d8c419f5c) (int pValue) Changes the specified variable. |
> | [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getFirstIteratorForCurrentCaseId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a47b791d288a9af06d565d5bacd1dd612) () const See getFirstIterator(const std::string&) |
> | [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getFirstIteratorForCurrentPhysicsId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a05cad22c19d74259c554f2f0dc86305a) () const See getFirstIterator(const std::string&) |
> | [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getFirstIteratorForCurrentInputSettingsId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a67d0800d2ce78055bcd9658b1ea30136) () const See getFirstIterator(const std::string&) |
> | [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getFirstIteratorForCurrentDomainTransformationId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#adbcf15409dbcf5051cc8fcb3afdf930f) () const See getFirstIterator(const std::string&) |
> | [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getFirstIteratorForCurrentMeshId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a808bda2819d90363f4914bc637969154) () const See getFirstIterator(const std::string&) |
> | [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getFirstIteratorForCurrentTopologyId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a3f53d6fb39644ef6a923d2d79baa0d12) () const See getFirstIterator(const std::string&) |
> | [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getFirstIteratorForCurrentConnectivityId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#ad4aecfe2ed99b6e81a24edcc8699aa42) () const See getFirstIterator(const std::string&) |
> | [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getFirstIteratorForCurrentCoordinatesId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a2badf834ba45aa1be083272d66e68cb8) () const See getFirstIterator(const std::string&) |
> | [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getFirstIteratorForCurrentLocationId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a9c43c27adee9503eed4f3940ded66ac7) () const See getFirstIterator(const std::string&) |
> | [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getFirstIteratorForCurrent](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a992b28250638dc51bde6fc49ea336ab4) (const std::string \&pVar) const Return the first entry in the current [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md), with same variable value. |

## Protected Attributes

| Type | Name |
| - | - |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [aIter](#a689c27bd3ace6b3d2ee909ef486e2fa8) |

## Additional Inherited Members

> [accordion] Static Public Attributes inherited from ansys::Project::RunOutputAttr
>
> Static Public Attributes inherited from [ansys::Project::RunOutputAttr](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md)
>
> | Type | Name |
> | - | - |
> | static const std::string | [sVarTime](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a216010dc2b5c1190a68513b1d9617af4) |
> | static const std::string | [sVarSolverIteration](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a116b763a8622a5d731756e59b90416a0) |
> | static const std::string | [sVarIndex](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#accb529227d0a8af8ea6234c678172a81) |
> | static const std::string | [sVarCrankAngle](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a758d823643e8d2995709c4cd5b92bb45) |
> | static const std::string | [sVarCaseId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a0262e064b66ae42c08b689721c25f76a) |
> | static const std::string | [sVarInputSettingsId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a1378a2dcbd4528f171f8e9c3aef6504f) |
> | static const std::string | [sVarDomainTransformationId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#af2a3f9fcbd8b5eb86a666d04b4b0a1ee) |
> | static const std::string | [sVarPhysicsId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a1bd650ac5ff709a40039f5af2448409d) |
> | static const std::string | [sVarOutputSettingsId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a57055413a8762182cd616134e1ebaae9) |
> | static const std::string | [sVarMeshId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#aedb3ba68ad3e7475b8691c0826cce629) |
> | static const std::string | [sVarTopologyId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a6c7cab7452904746f93245318cb91ddd) |
> | static const std::string | [sVarConnectivityId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a8a5a7c0fbf131833584035fb3e15e152) |
> | static const std::string | [sVarCoordinatesId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a66a534af6f39ffe20a1a594006c8e31f) |
> | static const std::string | [sVarLocationId](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a5e75ed2d5bb13aac00fcf41087bdce22) |

## Detailed Description

Subfolder of a [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md), regrouping Results for a step.

In a [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md), one or multiple [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) are to be created, to store the results. Depending of the [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md) type (transient, parametric, steady...) the [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) will have Metatada assigned accordinly (time step, variable value, iteration, etc.)

Subclass of [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md), can be constructed from an [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md), the [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) is [ok()](#a58c220b2e403a6e756aaf9e0c163b6ba) only if the provided iterator is of the appropriate subclass.

```cpp theme={null}
  Iterator it = prj.get("/Sim1/Run1/out1/");
  Output out(it);
    out.ok()
```

The [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) regroups a set of Results in a subfolder (can be project-only and not a true folder in the storage filesystem) [Metadata](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_metadata.md) attributes assigned to the [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) will be inherited by all underlying Results.

Sample workflow, for transient

```cpp theme={null}
 Output o = run.newOutput("")
 o.setTime(0.);
 o.newResult("out.00000001.dat","","Result","fluent-dat");
 o = run.newOutput("")
 o.setTime(0.1);
 o.newResult("out.00000002.dat","","Result","fluent-dat");
```

## Constructor & Destructor Documentation

### Output()

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

Constructor from [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md). \


The input [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) must be of subclass [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) If the subclass is not [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md), the [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) object is invalid ( !ok() )

### \~Output()

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

`inline` `virtual`

## Member Function Documentation

### getCase()

```cpp theme={null}
Iterator ansys::Project::Output::getCase() const
```

Return the case link, if any.

If not defined at this level, the parent [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md) or [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_simulation.md) are searched for such a Case link.

### getData()

```cpp theme={null}
Iterator ansys::Project::Output::getData()
```

Returns the main data file for this [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md).

The main data file is registered at the [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md) or [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_simulation.md) level, as the [SimBase::setMainDataType(const std::string&)](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_sim_base.md#ac44fe199d4f2c2c7aa8be5d22353740a), the [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) folder is searched for a [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md) matching this type.

### getInputByType()

```cpp theme={null}
Iterator ansys::Project::Output::getInputByType(const std::string & pType) const
```

Search the metadata links for the specified file type.

Links are stored in [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) as metadata, in [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_simulation.md) and [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md) they are stored as an Input/ subfolder entry

### getIterator()

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

`virtual`

Returns the [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) for this [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md).

Implements [ansys::Project::RunOutputAttr](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a6bc544ed688df70fc57237a5a5601e73).

### getResult()

```cpp theme={null}
Iterator ansys::Project::Output::getResult(const std::string & pDataType)
```

Returns the enclosed [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md) with the specified subtype.

### getResultIterators()

```cpp theme={null}
std::vector< Iterator > ansys::Project::Output::getResultIterators(
    const std::string & pType,
    const std::string & pSubtype
) const
```

Return the list of results in the current [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md), as a vector of [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md).

### getResults()

```cpp theme={null}
std::vector< Result > ansys::Project::Output::getResults(
    const std::string & pType,
    const std::string & pSubtype
) const
```

Return the list of results in the current [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md), as a vector of [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md).

### getRunStatus()

```cpp theme={null}
RunStatus ansys::Project::Output::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()](#a424c139480241d171fc63c81640b0e62)

### getValue()

```cpp theme={null}
std::string ansys::Project::Output::getValue(
    const std::string & pVar,
    bool pFlagInherited
) const
```

`virtual`

Search the metadata (local and inherited) for the specified key and return the value as string.

**Parameters**

| Name | Description |
| - | - |
| pFlagInherited | : If true, the parent Run/Simulation are searched for the metadata entry, if not defined locally |

Implements [ansys::Project::RunOutputAttr](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a77b9663f5a89b1a0f34fb51e8561bd59).

### getValueDouble()

```cpp theme={null}
double ansys::Project::Output::getValueDouble(
    const std::string & pVar,
    bool pFlagInherited
) const
```

`virtual`

Search the metadata (local and inherited) for the specified key and return the value as double.

**Parameters**

| Name | Description |
| - | - |
| pFlagInherited | : If true, the parent Run/Simulation are searched for the metadata entry, if not defined locally |

Implements [ansys::Project::RunOutputAttr](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a403042318aa17d920be19cb3062e63aa).

### getValueInt()

```cpp theme={null}
int ansys::Project::Output::getValueInt(
    const std::string & pVar,
    bool pFlagInherited
) const
```

`virtual`

Search the metadata (local and inherited) for the specified key and return the value as integer.

**Parameters**

| Name | Description |
| - | - |
| pFlagInherited | : If true, the parent Run/Simulation are searched for the metadata entry, if not defined locally |

Implements [ansys::Project::RunOutputAttr](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#ab071e4ff3568754cc9e0dc1f6c6f20f7).

### getValueIter()

```cpp theme={null}
Iterator ansys::Project::Output::getValueIter(const std::string & pVar) const
```

Search the metadata (local and inherited) for the specified metadata link and return the value as an iterator.

**Parameters**

| Name | Description |
| - | - |
| pFlagInherited | : If true, the parent Run/Simulation are searched for the metadata entry, if not defined locally |

### getValueType()

```cpp theme={null}
MetaVariableType ansys::Project::Output::getValueType(
    const std::string & pVar,
    bool pFlagInherited
) const
```

`virtual`

Search the metadata (local and inherited) for the specified key and return the its data type.

**Parameters**

| Name | Description |
| - | - |
| pFlagInherited | : If true, the parent Run/Simulation are searched for the metadata entry, if not defined locally |

Implements [ansys::Project::RunOutputAttr](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a160bf20b163631c67ceb8fbd0f05d81c).

### hasValue()

```cpp theme={null}
bool ansys::Project::Output::hasValue(
    const std::string & pVar,
    bool pFlagInherited
) const
```

`virtual`

Search the metadata (local and inherited) for the specified key.

**Parameters**

| Name | Description |
| - | - |
| pFlagInherited | : If true, the parent Run/Simulation are searched for the metadata entry, if not defined locally |

Implements [ansys::Project::RunOutputAttr](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a81a3387403060a40ad820acfcd465247).

### isValid()

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

`virtual`

Returns error with message if invalid.

### newResult()

```cpp theme={null}
Iterator ansys::Project::Output::newResult(
    const URL & pFileLocation,
    const std::string & pName,
    const std::string & pType,
    const std::string & pSubtype
)
```

Create a [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md) object in the current [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) folder.

The newResult operation creates a file reference to a specified [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md)

**Parameters**

| Name | Description |
| - | - |
| pFileLocation | : [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) of the [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md) file, if a relative path it is assumed to be created in the [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) folder location (typically the [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md) folder) |
| pName | : Name of the project file, use "" to use same name as the [URL](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_u_r_l.md) filename |
| pType | : Type of the file, typically: [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md) or Case will be stored in the DataType metadata entry |
| pSubType | : Format specifier for the file type, for example fluent-dat , fsp-soln will be stored in the \{pType}Type metadata entry |

### ok()

```cpp theme={null}
bool ansys::Project::Output::ok() const
```

Indicates if the [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) is valid and of correct subclass.

### operator Iterator()

```cpp theme={null}
ansys::Project::Output::operator Iterator() const
```

`inline`

### operator!=()

```cpp theme={null}
bool ansys::Project::Output::operator!=(const Output & pObj) const
```

`inline`

### operator==()

```cpp theme={null}
bool ansys::Project::Output::operator==(const Output & pObj) const
```

`inline`

### setCase()

```cpp theme={null}
void ansys::Project::Output::setCase(Iterator pIter)
```

Assign the case used/shared by results of this output, as link.

### setRunStatus()

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

Set 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).

(Optional API) The run status permits to indicate if a specific [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) is running, completed, waiting for execution, etc.

### setTransparent()

```cpp theme={null}
void ansys::Project::Output::setTransparent(bool pHide)
```

Set the [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md) visible or invisible (transparent) in the project viewer.

### setValue() \[1/3]

```cpp theme={null}
void ansys::Project::Output::setValue(
    const std::string & pVar,
    const std::string & pValue
)
```

`virtual`

Sets the local metadata to the specified key/value.

Implements [ansys::Project::RunOutputAttr](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a9dc92e98bb7324c86192441ead647996).

### setValue() \[2/3]

```cpp theme={null}
void ansys::Project::Output::setValue(
    const std::string & pVar,
    double pValue
)
```

`inline`

### setValue() \[3/3]

```cpp theme={null}
void ansys::Project::Output::setValue(
    const std::string & pVar,
    int pValue
)
```

`inline`

### setValueDouble()

```cpp theme={null}
void ansys::Project::Output::setValueDouble(
    const std::string & pVar,
    double pValue
)
```

`virtual`

Sets the local metadata to the specified key/value.

Implements [ansys::Project::RunOutputAttr](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a3659d02ece965df37d5b09a27776b645).

### setValueInt()

```cpp theme={null}
void ansys::Project::Output::setValueInt(
    const std::string & pVar,
    int pValue
)
```

`virtual`

Sets the local metadata to the specified key/value.

Implements [ansys::Project::RunOutputAttr](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#aec45f664a9284184f247462cdebef7a7).

## Member Data Documentation

### aIter

```cpp theme={null}
Iterator ansys::Project::Output::aIter
```

`protected`
