    

 ## On this page

  

 

 # ansys::Project::Result Class Reference

 Last update: 16.07.2025 

[Result](classansys_1_1_project_1_1_result.xhtml "Result (data) file, output of a Simulation Run.") (data) file, output of a [Simulation](classansys_1_1_project_1_1_simulation.xhtml "Subfolder of a Project, regrouping input files and Run subfolders.") [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step."). [More...](classansys_1_1_project_1_1_result.xhtml#details)

`#include "<a class="el" href="_result_8hpp_source.xhtml">Result.hpp</a>"`

Inheritance diagram for ansys::Project::Result:

 ![](/sites/default/files/migrate-content/common_fluids_format_/classansys_1_1_project_1_1_result.png)



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

 [Result](classansys_1_1_project_1_1_result.xhtml#ab9f32346b8cee0bf1cdde298cd0df707) ([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_result.xhtml#ab9f32346b8cee0bf1cdde298cd0df707)  
 <a id="a7ca38918f62e55d5e32c44b53045a00f" name="a7ca38918f62e55d5e32c44b53045a00f"></a>bool **ok** () const Indicates if the [Iterator](classansys_1_1_project_1_1_iterator.xhtml "Pointer to a project location.") is valid and of correct subclass.   
 <a id="a1bcecc63b00d62616e954e55dbbd0b5d" name="a1bcecc63b00d62616e954e55dbbd0b5d"></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) [getCase](classansys_1_1_project_1_1_result.xhtml#ae4d6f08c396ff7a225d91fc21b6dbf6d) () const Return the case link, if any. [More...](classansys_1_1_project_1_1_result.xhtml#ae4d6f08c396ff7a225d91fc21b6dbf6d)  
 <a id="a4c7ecb1ac172098dda315389ac1f45a7" name="a4c7ecb1ac172098dda315389ac1f45a7"></a>void **setCase** ([Iterator](classansys_1_1_project_1_1_iterator.xhtml) pCase) Assign the case used/shared by results of this result, as link.   
 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) [getInputByType](classansys_1_1_project_1_1_result.xhtml#a297e3c3b13ced95b7ce971478c9d94f7) (const std::string &amp;pType, const std::string &amp;pSubtype) const Search the metadata links for the specified file type. [More...](classansys_1_1_project_1_1_result.xhtml#a297e3c3b13ced95b7ce971478c9d94f7)  
 virtual bool [hasValue](classansys_1_1_project_1_1_result.xhtml#a202246d89e8ed5f92f93282046dca7d2) (const std::string &amp;pVar, bool pFlagInherited) const Search the metadata (local and inherited) for the specified key. [More...](classansys_1_1_project_1_1_result.xhtml#a202246d89e8ed5f92f93282046dca7d2)  
 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) [getValueIter](classansys_1_1_project_1_1_result.xhtml#aa03b8fb6209b15868a24500fbd3363ab) (const std::string &amp;pVar) const Search the metadata (local and inherited) for the specified metadata link and return the value as an iterator. [More...](classansys_1_1_project_1_1_result.xhtml#aa03b8fb6209b15868a24500fbd3363ab)  
 virtual std::string [getValue](classansys_1_1_project_1_1_result.xhtml#a6ffc6355c8a3f4acb1b06248a3dc77d3) (const std::string &amp;pVar, bool pFlagInherited) const Search the metadata (local and inherited) for the specified key and return the value as string. [More...](classansys_1_1_project_1_1_result.xhtml#a6ffc6355c8a3f4acb1b06248a3dc77d3)  
 virtual int [getValueInt](classansys_1_1_project_1_1_result.xhtml#ab5abd5185c32099ac41e36a69dd81120) (const std::string &amp;pVar, bool pFlagInherited) const Search the metadata (local and inherited) for the specified key and return the value as string. [More...](classansys_1_1_project_1_1_result.xhtml#ab5abd5185c32099ac41e36a69dd81120)  
 virtual double [getValueDouble](classansys_1_1_project_1_1_result.xhtml#a3615dcd65b532b7a0f5c1dae754879fa) (const std::string &amp;pVar, bool pFlagInherited) const Search the metadata (local and inherited) for the specified key and return the value as string. [More...](classansys_1_1_project_1_1_result.xhtml#a3615dcd65b532b7a0f5c1dae754879fa)  
 virtual MetaVariableType [getValueType](classansys_1_1_project_1_1_result.xhtml#ac0a7814e7e2bc58e2c81710c01a74e8c) (const std::string &amp;pVar, bool pFlagInherited) const Search the metadata (local and inherited) for the specified key and return the its data type. [More...](classansys_1_1_project_1_1_result.xhtml#ac0a7814e7e2bc58e2c81710c01a74e8c)  
 <a id="a09235debe70f3b375cbb97d768ba1237" name="a09235debe70f3b375cbb97d768ba1237"></a>virtual void **setValue** (const std::string &amp;pVar, const std::string &amp;pValue) Sets the local metadata to the specified key/value.   
 <a id="ac1d2a31f02294a74f2b41f30419ad099" name="ac1d2a31f02294a74f2b41f30419ad099"></a>virtual void **setValueInt** (const std::string &amp;pVar, int pValue) Sets the local metadata to the specified key/value.   
 <a id="aebd750fd5bcb7593d90089716c2e8145" name="aebd750fd5bcb7593d90089716c2e8145"></a>virtual void **setValueDouble** (const std::string &amp;pVar, double pValue) Sets the local metadata to the specified key/value.   
 <a id="acfea7c7aac843ba7446fbc7702a00462" name="acfea7c7aac843ba7446fbc7702a00462"></a>[Iterator](classansys_1_1_project_1_1_iterator.xhtml) **getIterator** () const Returns the [Iterator](classansys_1_1_project_1_1_iterator.xhtml "Pointer to a project location.") for this [Result](classansys_1_1_project_1_1_result.xhtml "Result (data) file, output of a Simulation Run.").   
 ![-](/sites/default/files/migrate-content/common_fluids_format_/closed.png) Public Member Functions inherited from [ansys::Project::RunOutputAttr](classansys_1_1_project_1_1_run_output_attr.xhtml)<a id="a3552775077206a3eb84c63548b1dce8f" name="a3552775077206a3eb84c63548b1dce8f"></a>std::vector&lt; std::string &gt; **getValues** (const std::vector&lt; std::string &gt; &amp;pVars, bool pFlagInherited) const Returns the values for a list of variables.   
 <a id="afd9f573f991216d001360be85a476827" name="afd9f573f991216d001360be85a476827"></a>int **getIndex** () const Returns the output index (incremental id in a run) - always available.   
 <a id="a9341f80aeb8c06eae7405815daabc2de" name="a9341f80aeb8c06eae7405815daabc2de"></a>int **getSolverIteration** () const Returns the number of solver iterations (if available)   
 <a id="a43a2d325edb0332bd89dd279da60de88" name="a43a2d325edb0332bd89dd279da60de88"></a>double **getTime** () const Returns the transient time value (if available)   
 <a id="a8e79b641bdf6cd9fa3132839b2314cfa" name="a8e79b641bdf6cd9fa3132839b2314cfa"></a>void **setIndex** (int pValue) Changes the specified variable.   
 <a id="a5aef7a029fa3a7f830710275035c4bae" name="a5aef7a029fa3a7f830710275035c4bae"></a>void **setSolverIteration** (int pValue) Changes the specified variable.   
 <a id="a7223a840d264a500994bc1a424772c19" name="a7223a840d264a500994bc1a424772c19"></a>void **setTime** (double pValue) Changes the specified variable.   
 <a id="a2722c5a61bdf6ae862f77277cb799dae" name="a2722c5a61bdf6ae862f77277cb799dae"></a>double **getCrankAngle** () const Returns the specified variable (if available)   
 <a id="a399cfa854a08df9c39ed9c7324651012" name="a399cfa854a08df9c39ed9c7324651012"></a>void **setCrankAngle** (double pValue) Changes the specified variable.   
 <a id="a3c9c4e3b8a1901e526c252b9beda9580" name="a3c9c4e3b8a1901e526c252b9beda9580"></a>int **getCaseId** () const Returns the specified variable (if available)   
 int [getInputSettingsId](classansys_1_1_project_1_1_run_output_attr.xhtml#a267138500fe47e1c74adebc0b3b3082e) () const Returns the specified variable (if available) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a267138500fe47e1c74adebc0b3b3082e)  
 int [getDomainTransformationId](classansys_1_1_project_1_1_run_output_attr.xhtml#ae1427ae2518b3bf20a72183388307d4e) () const Returns the specified variable (if available) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#ae1427ae2518b3bf20a72183388307d4e)  
 int [getPhysicsId](classansys_1_1_project_1_1_run_output_attr.xhtml#a212e33422926cc6ce0c06ee08b301f83) () const Returns the specified variable (if available) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a212e33422926cc6ce0c06ee08b301f83)  
 <a id="a5b718ea67c8d4abcec38f3968ffe71f6" name="a5b718ea67c8d4abcec38f3968ffe71f6"></a>int **getOutputSettingsId** () const Returns the specified variable (if available)   
 <a id="a9b573f92ba0532e9af0181634727d876" name="a9b573f92ba0532e9af0181634727d876"></a>int **getMeshId** () const Returns the specified variable (if available)   
 int [getTopologyId](classansys_1_1_project_1_1_run_output_attr.xhtml#a2088deca6c0239248d5c7d1d81b6c3a3) () const Returns the specified variable (if available) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a2088deca6c0239248d5c7d1d81b6c3a3)  
 int [getConnectivityId](classansys_1_1_project_1_1_run_output_attr.xhtml#aef3b9200f5924db3428e31e0c8c6e80e) () const Returns the specified variable (if available) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#aef3b9200f5924db3428e31e0c8c6e80e)  
 int [getCoordinatesId](classansys_1_1_project_1_1_run_output_attr.xhtml#a3a414dbc11513402e17c2eafaf240e7e) () const Returns the specified variable (if available) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a3a414dbc11513402e17c2eafaf240e7e)  
 int [getLocationId](classansys_1_1_project_1_1_run_output_attr.xhtml#a5d22709f5cd0500b1c0e5db416f1b8e4) () const Returns the specified variable (if available) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a5d22709f5cd0500b1c0e5db416f1b8e4)  
 <a id="a98234a96286c594c628ae5fc66a2daf1" name="a98234a96286c594c628ae5fc66a2daf1"></a>void **setCaseId** (int pValue) Changes the specified variable.   
 <a id="a4dc9c1c940983005c8aa55516c7dd370" name="a4dc9c1c940983005c8aa55516c7dd370"></a>void **setInputSettingsId** (int pValue) Changes the specified variable.   
 <a id="a48ce611d3011e8d85c7508654d10b0b7" name="a48ce611d3011e8d85c7508654d10b0b7"></a>void **setDomainTransformationId** (int pValue) Changes the specified variable.   
 <a id="a144923c544b7f9e25adaa02c4d0fcfb2" name="a144923c544b7f9e25adaa02c4d0fcfb2"></a>void **setPhysicsId** (int pValue) Changes the specified variable.   
 <a id="aff075987d634ddd1bb5cc72885e60476" name="aff075987d634ddd1bb5cc72885e60476"></a>void **setOutputSettingsId** (int pValue) Changes the specified variable.   
 <a id="af6651bd327bccc3154c7a9dff550b780" name="af6651bd327bccc3154c7a9dff550b780"></a>void **setMeshId** (int pValue) Changes the specified variable.   
 <a id="a8952ac3fb7b31862798fef375a37f789" name="a8952ac3fb7b31862798fef375a37f789"></a>void **setTopologyId** (int pValue) Changes the specified variable.   
 <a id="a2e8201893b1ffef4e96758118ac1438c" name="a2e8201893b1ffef4e96758118ac1438c"></a>void **setConnectivityId** (int pValue) Changes the specified variable.   
 <a id="a1f1a501898b6eaf181ef0b3b7a991342" name="a1f1a501898b6eaf181ef0b3b7a991342"></a>void **setCoordinatesId** (int pValue) Changes the specified variable.   
 <a id="ad49c7e9e12f20d93598d744d8c419f5c" name="ad49c7e9e12f20d93598d744d8c419f5c"></a>void **setLocationId** (int pValue) Changes the specified variable.   
 <a id="a47b791d288a9af06d565d5bacd1dd612" name="a47b791d288a9af06d565d5bacd1dd612"></a>[Iterator](classansys_1_1_project_1_1_iterator.xhtml) **getFirstIteratorForCurrentCaseId** () const See getFirstIterator(const std::string&amp;)   
 <a id="a05cad22c19d74259c554f2f0dc86305a" name="a05cad22c19d74259c554f2f0dc86305a"></a>[Iterator](classansys_1_1_project_1_1_iterator.xhtml) **getFirstIteratorForCurrentPhysicsId** () const See getFirstIterator(const std::string&amp;)   
 <a id="a67d0800d2ce78055bcd9658b1ea30136" name="a67d0800d2ce78055bcd9658b1ea30136"></a>[Iterator](classansys_1_1_project_1_1_iterator.xhtml) **getFirstIteratorForCurrentInputSettingsId** () const See getFirstIterator(const std::string&amp;)   
 <a id="adbcf15409dbcf5051cc8fcb3afdf930f" name="adbcf15409dbcf5051cc8fcb3afdf930f"></a>[Iterator](classansys_1_1_project_1_1_iterator.xhtml) **getFirstIteratorForCurrentDomainTransformationId** () const See getFirstIterator(const std::string&amp;)   
 <a id="a808bda2819d90363f4914bc637969154" name="a808bda2819d90363f4914bc637969154"></a>[Iterator](classansys_1_1_project_1_1_iterator.xhtml) **getFirstIteratorForCurrentMeshId** () const See getFirstIterator(const std::string&amp;)   
 <a id="a3f53d6fb39644ef6a923d2d79baa0d12" name="a3f53d6fb39644ef6a923d2d79baa0d12"></a>[Iterator](classansys_1_1_project_1_1_iterator.xhtml) **getFirstIteratorForCurrentTopologyId** () const See getFirstIterator(const std::string&amp;)   
 <a id="ad4aecfe2ed99b6e81a24edcc8699aa42" name="ad4aecfe2ed99b6e81a24edcc8699aa42"></a>[Iterator](classansys_1_1_project_1_1_iterator.xhtml) **getFirstIteratorForCurrentConnectivityId** () const See getFirstIterator(const std::string&amp;)   
 <a id="a2badf834ba45aa1be083272d66e68cb8" name="a2badf834ba45aa1be083272d66e68cb8"></a>[Iterator](classansys_1_1_project_1_1_iterator.xhtml) **getFirstIteratorForCurrentCoordinatesId** () const See getFirstIterator(const std::string&amp;)   
 <a id="a9c43c27adee9503eed4f3940ded66ac7" name="a9c43c27adee9503eed4f3940ded66ac7"></a>[Iterator](classansys_1_1_project_1_1_iterator.xhtml) **getFirstIteratorForCurrentLocationId** () const See getFirstIterator(const std::string&amp;)   
 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) [getFirstIteratorForCurrent](classansys_1_1_project_1_1_run_output_attr.xhtml#a992b28250638dc51bde6fc49ea336ab4) (const std::string &amp;pVar) const Return the first entry in the current [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step."), with same variable value. [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a992b28250638dc51bde6fc49ea336ab4)  
 <a id="details" name="details"></a>## Detailed Description

[Result](classansys_1_1_project_1_1_result.xhtml "Result (data) file, output of a Simulation Run.") (data) file, output of a [Simulation](classansys_1_1_project_1_1_simulation.xhtml "Subfolder of a Project, regrouping input files and Run subfolders.") [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.").

A [Result](classansys_1_1_project_1_1_result.xhtml "Result (data) file, output of a Simulation Run.") 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](classansys_1_1_project_1_1_simulation.xhtml "Subfolder of a Project, regrouping input files and Run subfolders.") folder (for example: the initial airflow solution)

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 [Result](classansys_1_1_project_1_1_result.xhtml "Result (data) file, output of a Simulation Run.") is [ok()](classansys_1_1_project_1_1_result.xhtml#a7ca38918f62e55d5e32c44b53045a00f "Indicates if the Iterator is valid and of correct subclass.") only if the provided iterator is of the appropriate subclass.

```
  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()](classansys_1_1_project_1_1_run_output_attr.xhtml#a43a2d325edb0332bd89dd279da60de88 "Returns the transient time value (if available)") will return the time value for the current [Result](classansys_1_1_project_1_1_result.xhtml "Result (data) file, output of a Simulation Run."), but the value might have been stored in the parent [Output](classansys_1_1_project_1_1_output.xhtml "Subfolder of a Run, regrouping Results for a step.").

```
  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 &amp; Destructor Documentation

<a id="ab9f32346b8cee0bf1cdde298cd0df707" name="ab9f32346b8cee0bf1cdde298cd0df707"></a>## [◆ ](#ab9f32346b8cee0bf1cdde298cd0df707)Result()

 ansys::Project::Result::Result  ( [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 [Result](classansys_1_1_project_1_1_result.xhtml "Result (data) file, output of a Simulation Run.") If the subclass is not [Result](classansys_1_1_project_1_1_result.xhtml "Result (data) file, output of a Simulation Run."), the [Result](classansys_1_1_project_1_1_result.xhtml "Result (data) file, output of a Simulation Run.") object is invalid ( !ok() )





## Member Function Documentation

<a id="ae4d6f08c396ff7a225d91fc21b6dbf6d" name="ae4d6f08c396ff7a225d91fc21b6dbf6d"></a>## [◆ ](#ae4d6f08c396ff7a225d91fc21b6dbf6d)getCase()

 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) ansys::Project::Result::getCase  ( )  const

Return the case link, if any.

If not defined at this level, the parent [Output](classansys_1_1_project_1_1_output.xhtml "Subfolder of a Run, regrouping Results for a step."), [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") or [Simulation](classansys_1_1_project_1_1_simulation.xhtml "Subfolder of a Project, regrouping input files and Run subfolders.") are searched for such a Case link.





<a id="a297e3c3b13ced95b7ce971478c9d94f7" name="a297e3c3b13ced95b7ce971478c9d94f7"></a>## [◆ ](#a297e3c3b13ced95b7ce971478c9d94f7)getInputByType()

 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) ansys::Project::Result::getInputByType  ( const std::string &amp;  *pType*,    const std::string &amp;  *pSubtype*   )  const

Search the metadata links for the specified file type.

Links are stored in [Result](classansys_1_1_project_1_1_result.xhtml "Result (data) file, output of a Simulation Run.") as metadata, in [Simulation](classansys_1_1_project_1_1_simulation.xhtml "Subfolder of a Project, regrouping input files and Run subfolders.") and [Run](classansys_1_1_project_1_1_run.xhtml "Subfolder of a Simulation, regrouping Output/Result for a step.") they are stored as an Input/ subfolder entry





<a id="a6ffc6355c8a3f4acb1b06248a3dc77d3" name="a6ffc6355c8a3f4acb1b06248a3dc77d3"></a>## [◆ ](#a6ffc6355c8a3f4acb1b06248a3dc77d3)getValue()

 std::string ansys::Project::Result::getValue  ( const std::string &amp;  *pVar*,    bool  *pFlagInherited*   )  const  virtual 

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

Parameters pFlagInherited: If true, the parent Run/Simulation are searched for the metadata entry, if not defined locally Implements [ansys::Project::RunOutputAttr](classansys_1_1_project_1_1_run_output_attr.xhtml).





<a id="a3615dcd65b532b7a0f5c1dae754879fa" name="a3615dcd65b532b7a0f5c1dae754879fa"></a>## [◆ ](#a3615dcd65b532b7a0f5c1dae754879fa)getValueDouble()

 double ansys::Project::Result::getValueDouble  ( const std::string &amp;  *pVar*,    bool  *pFlagInherited*   )  const  virtual 

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

Parameters pFlagInherited: If true, the parent Run/Simulation are searched for the metadata entry, if not defined locally Implements [ansys::Project::RunOutputAttr](classansys_1_1_project_1_1_run_output_attr.xhtml).





<a id="ab5abd5185c32099ac41e36a69dd81120" name="ab5abd5185c32099ac41e36a69dd81120"></a>## [◆ ](#ab5abd5185c32099ac41e36a69dd81120)getValueInt()

 int ansys::Project::Result::getValueInt  ( const std::string &amp;  *pVar*,    bool  *pFlagInherited*   )  const  virtual 

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

Parameters pFlagInherited: If true, the parent Run/Simulation are searched for the metadata entry, if not defined locally Implements [ansys::Project::RunOutputAttr](classansys_1_1_project_1_1_run_output_attr.xhtml).





<a id="aa03b8fb6209b15868a24500fbd3363ab" name="aa03b8fb6209b15868a24500fbd3363ab"></a>## [◆ ](#aa03b8fb6209b15868a24500fbd3363ab)getValueIter()

 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) ansys::Project::Result::getValueIter  ( const std::string &amp;  *pVar*)  const

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

Parameters pFlagInherited: If true, the parent Run/Simulation are searched for the metadata entry, if not defined locally 



<a id="ac0a7814e7e2bc58e2c81710c01a74e8c" name="ac0a7814e7e2bc58e2c81710c01a74e8c"></a>## [◆ ](#ac0a7814e7e2bc58e2c81710c01a74e8c)getValueType()

 MetaVariableType ansys::Project::Result::getValueType  ( const std::string &amp;  *pVar*,    bool  *pFlagInherited*   )  const  virtual 

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

Parameters pFlagInherited: If true, the parent Run/Simulation are searched for the metadata entry, if not defined locally Implements [ansys::Project::RunOutputAttr](classansys_1_1_project_1_1_run_output_attr.xhtml).





<a id="a202246d89e8ed5f92f93282046dca7d2" name="a202246d89e8ed5f92f93282046dca7d2"></a>## [◆ ](#a202246d89e8ed5f92f93282046dca7d2)hasValue()

 bool ansys::Project::Result::hasValue  ( const std::string &amp;  *pVar*,    bool  *pFlagInherited*   )  const  virtual 

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

Parameters pFlagInherited: If true, the parent Run/Simulation are searched for the metadata entry, if not defined locally Implements [ansys::Project::RunOutputAttr](classansys_1_1_project_1_1_run_output_attr.xhtml).