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

[Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md) (data) file, output of a [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_simulation.md) [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md).

`#include "Result.hpp"`

Inheritance diagram for ansys::Project::Result:

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

## Public Member Functions

| Type | Name |
| - | - |
| | [Result](#ab9f32346b8cee0bf1cdde298cd0df707) ([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 | [\~Result](#ac58e7583e5d11f9082016b5c22406540) () |
| bool | [ok](#a7ca38918f62e55d5e32c44b53045a00f) () 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](#a1bcecc63b00d62616e954e55dbbd0b5d) () const Returns error with message if invalid. |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getCase](#ae4d6f08c396ff7a225d91fc21b6dbf6d) () const Return the case link, if any. |
| void | [setCase](#a4c7ecb1ac172098dda315389ac1f45a7) ([Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) pCase) Assign the case used/shared by results of this result, as link. |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getInputByType](#a297e3c3b13ced95b7ce971478c9d94f7) (const std::string \&pType, const std::string \&pSubtype) const Search the metadata links for the specified file type. |
| virtual bool | [hasValue](#a202246d89e8ed5f92f93282046dca7d2) (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](#aa03b8fb6209b15868a24500fbd3363ab) (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](#a6ffc6355c8a3f4acb1b06248a3dc77d3) (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](#ab5abd5185c32099ac41e36a69dd81120) (const std::string \&pVar, bool pFlagInherited) const Search the metadata (local and inherited) for the specified key and return the value as string. |
| virtual double | [getValueDouble](#a3615dcd65b532b7a0f5c1dae754879fa) (const std::string \&pVar, bool pFlagInherited) const Search the metadata (local and inherited) for the specified key and return the value as string. |
| virtual MetaVariableType | [getValueType](#ac0a7814e7e2bc58e2c81710c01a74e8c) (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](#a09235debe70f3b375cbb97d768ba1237) (const std::string \&pVar, const std::string \&pValue) Sets the local metadata to the specified key/value. |
| virtual void | [setValueInt](#ac1d2a31f02294a74f2b41f30419ad099) (const std::string \&pVar, int pValue) Sets the local metadata to the specified key/value. |
| virtual void | [setValueDouble](#aebd750fd5bcb7593d90089716c2e8145) (const std::string \&pVar, double pValue) Sets the local metadata to the specified key/value. |
| void | [setValue](#ae7bf1a3f61a2f69bdb6b1dcca1bfea6e) (const std::string \&pVar, int pValue) |
| void | [setValue](#a81a9c4237c19cded84907ec1f07c1c13) (const std::string \&pVar, double pValue) |
| [Iterator](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_iterator.md) | [getIterator](#acfea7c7aac843ba7446fbc7702a00462) () 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 [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md). |
| | [operator Iterator](#ae34660c0da531ad8754a27bcb6c139e5) () const |

> [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](#a7e79d5374691223389d69d809c8aa48f) |

## 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

[Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md) (data) file, output of a [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_simulation.md) [Run](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run.md).

A [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md) file is typically inside the Simulation/Run/Output subfolder, as results are registered at each output step of a run. But such files can also be imported to the project, and stored in another folder, such as in the [Simulation](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_simulation.md) folder (for example: the initial airflow solution)

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 [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md) is [ok()](#a7ca38918f62e55d5e32c44b53045a00f) only if the provided iterator is of the appropriate subclass.

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

Medatada attributes will be stored locally, but can be queried with inheritance. For example [getTime()](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_run_output_attr.md#a43a2d325edb0332bd89dd279da60de88) will return the time value for the current [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md), but the value might have been stored in the parent [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md).

```cpp theme={null}
  out.setValue("Temperature",300);
  Result res(out.getResult("fluent-dat"));
    out.getValue("Temperature",true) == 300
    res.getValue("Temperature",true) == 300
  res.setValue("Temperature",333);
    res.getValue("Temperature",true) == 333
    out.getValue("Temperature",true) == 300
```

## Constructor & Destructor Documentation

### Result()

```cpp theme={null}
ansys::Project::Result::Result(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 [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md) If the subclass is not [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md), the [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.md) object is invalid ( !ok() )

### \~Result()

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

`inline` `virtual`

## Member Function Documentation

### getCase()

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

Return the case link, if any.

If not defined at this level, the parent [Output](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_output.md), [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.

### getInputByType()

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

Search the metadata links for the specified file type.

Links are stored in [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.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::Result::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 [Result](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_project_1_1_result.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).

### getValue()

```cpp theme={null}
std::string ansys::Project::Result::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::Result::getValueDouble(
    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#a403042318aa17d920be19cb3062e63aa).

### getValueInt()

```cpp theme={null}
int ansys::Project::Result::getValueInt(
    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#ab071e4ff3568754cc9e0dc1f6c6f20f7).

### getValueIter()

```cpp theme={null}
Iterator ansys::Project::Result::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::Result::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::Result::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::Result::isValid() const
```

`virtual`

Returns error with message if invalid.

### ok()

```cpp theme={null}
bool ansys::Project::Result::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::Result::operator Iterator() const
```

`inline`

### setCase()

```cpp theme={null}
void ansys::Project::Result::setCase(Iterator pCase)
```

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

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

```cpp theme={null}
void ansys::Project::Result::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::Result::setValue(
    const std::string & pVar,
    double pValue
)
```

`inline`

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

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

`inline`

### setValueDouble()

```cpp theme={null}
void ansys::Project::Result::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::Result::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::Result::aIter
```

`protected`
