    

 ## 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 "Result.hpp"`

Inheritance diagram for ansys::Project::Result:

 ![](/sites/default/files/migrate-content/common_fluids_format_2025_r2_1/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)  
 virtual [~Result](classansys_1_1_project_1_1_result.xhtml#ac58e7583e5d11f9082016b5c22406540) () bool [ok](classansys_1_1_project_1_1_result.xhtml#a7ca38918f62e55d5e32c44b53045a00f) () const Indicates if the [Iterator](classansys_1_1_project_1_1_iterator.xhtml "Pointer to a project location.") is valid and of correct subclass. [More...](classansys_1_1_project_1_1_result.xhtml#a7ca38918f62e55d5e32c44b53045a00f)  
 virtual [Error](classansys_1_1_project_1_1_error.xhtml) [isValid](classansys_1_1_project_1_1_result.xhtml#a1bcecc63b00d62616e954e55dbbd0b5d) () const Returns error with message if invalid. [More...](classansys_1_1_project_1_1_result.xhtml#a1bcecc63b00d62616e954e55dbbd0b5d)  
 [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)  
 void [setCase](classansys_1_1_project_1_1_result.xhtml#a4c7ecb1ac172098dda315389ac1f45a7) ([Iterator](classansys_1_1_project_1_1_iterator.xhtml) pCase) Assign the case used/shared by results of this result, as link. [More...](classansys_1_1_project_1_1_result.xhtml#a4c7ecb1ac172098dda315389ac1f45a7)  
 [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)  
 virtual void [setValue](classansys_1_1_project_1_1_result.xhtml#a09235debe70f3b375cbb97d768ba1237) (const std::string &amp;pVar, const std::string &amp;pValue) Sets the local metadata to the specified key/value. [More...](classansys_1_1_project_1_1_result.xhtml#a09235debe70f3b375cbb97d768ba1237)  
 virtual void [setValueInt](classansys_1_1_project_1_1_result.xhtml#ac1d2a31f02294a74f2b41f30419ad099) (const std::string &amp;pVar, int pValue) Sets the local metadata to the specified key/value. [More...](classansys_1_1_project_1_1_result.xhtml#ac1d2a31f02294a74f2b41f30419ad099)  
 virtual void [setValueDouble](classansys_1_1_project_1_1_result.xhtml#aebd750fd5bcb7593d90089716c2e8145) (const std::string &amp;pVar, double pValue) Sets the local metadata to the specified key/value. [More...](classansys_1_1_project_1_1_result.xhtml#aebd750fd5bcb7593d90089716c2e8145)  
 void [setValue](classansys_1_1_project_1_1_result.xhtml#ae7bf1a3f61a2f69bdb6b1dcca1bfea6e) (const std::string &amp;pVar, int pValue) void [setValue](classansys_1_1_project_1_1_result.xhtml#a81a9c4237c19cded84907ec1f07c1c13) (const std::string &amp;pVar, double pValue) [Iterator](classansys_1_1_project_1_1_iterator.xhtml) [getIterator](classansys_1_1_project_1_1_result.xhtml#acfea7c7aac843ba7446fbc7702a00462) () 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."). [More...](classansys_1_1_project_1_1_result.xhtml#acfea7c7aac843ba7446fbc7702a00462)  
  [operator Iterator](classansys_1_1_project_1_1_result.xhtml#ae34660c0da531ad8754a27bcb6c139e5) () const ![-](/sites/default/files/migrate-content/common_fluids_format_2025_r2_1/closed.png) Public Member Functions inherited from [ansys::Project::RunOutputAttr](classansys_1_1_project_1_1_run_output_attr.xhtml)virtual [~RunOutputAttr](classansys_1_1_project_1_1_run_output_attr.xhtml#a65a0b1def1d611ef99d59910a627c6e4) () std::vector&lt; std::string &gt; [getValues](classansys_1_1_project_1_1_run_output_attr.xhtml#a3552775077206a3eb84c63548b1dce8f) (const std::vector&lt; std::string &gt; &amp;pVars, bool pFlagInherited) const Returns the values for a list of variables. [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a3552775077206a3eb84c63548b1dce8f)  
 int [getIndex](classansys_1_1_project_1_1_run_output_attr.xhtml#afd9f573f991216d001360be85a476827) () const Returns the output index (incremental id in a run) - always available. [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#afd9f573f991216d001360be85a476827)  
 int [getSolverIteration](classansys_1_1_project_1_1_run_output_attr.xhtml#a9341f80aeb8c06eae7405815daabc2de) () const Returns the number of solver iterations (if available) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a9341f80aeb8c06eae7405815daabc2de)  
 double [getTime](classansys_1_1_project_1_1_run_output_attr.xhtml#a43a2d325edb0332bd89dd279da60de88) () const Returns the transient time value (if available) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a43a2d325edb0332bd89dd279da60de88)  
 void [setIndex](classansys_1_1_project_1_1_run_output_attr.xhtml#a8e79b641bdf6cd9fa3132839b2314cfa) (int pValue) Changes the specified variable. [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a8e79b641bdf6cd9fa3132839b2314cfa)  
 void [setSolverIteration](classansys_1_1_project_1_1_run_output_attr.xhtml#a5aef7a029fa3a7f830710275035c4bae) (int pValue) Changes the specified variable. [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a5aef7a029fa3a7f830710275035c4bae)  
 void [setTime](classansys_1_1_project_1_1_run_output_attr.xhtml#a7223a840d264a500994bc1a424772c19) (double pValue) Changes the specified variable. [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a7223a840d264a500994bc1a424772c19)  
 double [getCrankAngle](classansys_1_1_project_1_1_run_output_attr.xhtml#a2722c5a61bdf6ae862f77277cb799dae) () const Returns the specified variable (if available) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a2722c5a61bdf6ae862f77277cb799dae)  
 void [setCrankAngle](classansys_1_1_project_1_1_run_output_attr.xhtml#a399cfa854a08df9c39ed9c7324651012) (double pValue) Changes the specified variable. [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a399cfa854a08df9c39ed9c7324651012)  
 int [getCaseId](classansys_1_1_project_1_1_run_output_attr.xhtml#a3c9c4e3b8a1901e526c252b9beda9580) () const Returns the specified variable (if available) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a3c9c4e3b8a1901e526c252b9beda9580)  
 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)  
 int [getOutputSettingsId](classansys_1_1_project_1_1_run_output_attr.xhtml#a5b718ea67c8d4abcec38f3968ffe71f6) () const Returns the specified variable (if available) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a5b718ea67c8d4abcec38f3968ffe71f6)  
 int [getMeshId](classansys_1_1_project_1_1_run_output_attr.xhtml#a9b573f92ba0532e9af0181634727d876) () const Returns the specified variable (if available) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a9b573f92ba0532e9af0181634727d876)  
 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)  
 void [setCaseId](classansys_1_1_project_1_1_run_output_attr.xhtml#a98234a96286c594c628ae5fc66a2daf1) (int pValue) Changes the specified variable. [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a98234a96286c594c628ae5fc66a2daf1)  
 void [setInputSettingsId](classansys_1_1_project_1_1_run_output_attr.xhtml#a4dc9c1c940983005c8aa55516c7dd370) (int pValue) Changes the specified variable. [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a4dc9c1c940983005c8aa55516c7dd370)  
 void [setDomainTransformationId](classansys_1_1_project_1_1_run_output_attr.xhtml#a48ce611d3011e8d85c7508654d10b0b7) (int pValue) Changes the specified variable. [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a48ce611d3011e8d85c7508654d10b0b7)  
 void [setPhysicsId](classansys_1_1_project_1_1_run_output_attr.xhtml#a144923c544b7f9e25adaa02c4d0fcfb2) (int pValue) Changes the specified variable. [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a144923c544b7f9e25adaa02c4d0fcfb2)  
 void [setOutputSettingsId](classansys_1_1_project_1_1_run_output_attr.xhtml#aff075987d634ddd1bb5cc72885e60476) (int pValue) Changes the specified variable. [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#aff075987d634ddd1bb5cc72885e60476)  
 void [setMeshId](classansys_1_1_project_1_1_run_output_attr.xhtml#af6651bd327bccc3154c7a9dff550b780) (int pValue) Changes the specified variable. [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#af6651bd327bccc3154c7a9dff550b780)  
 void [setTopologyId](classansys_1_1_project_1_1_run_output_attr.xhtml#a8952ac3fb7b31862798fef375a37f789) (int pValue) Changes the specified variable. [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a8952ac3fb7b31862798fef375a37f789)  
 void [setConnectivityId](classansys_1_1_project_1_1_run_output_attr.xhtml#a2e8201893b1ffef4e96758118ac1438c) (int pValue) Changes the specified variable. [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a2e8201893b1ffef4e96758118ac1438c)  
 void [setCoordinatesId](classansys_1_1_project_1_1_run_output_attr.xhtml#a1f1a501898b6eaf181ef0b3b7a991342) (int pValue) Changes the specified variable. [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a1f1a501898b6eaf181ef0b3b7a991342)  
 void [setLocationId](classansys_1_1_project_1_1_run_output_attr.xhtml#ad49c7e9e12f20d93598d744d8c419f5c) (int pValue) Changes the specified variable. [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#ad49c7e9e12f20d93598d744d8c419f5c)  
 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) [getFirstIteratorForCurrentCaseId](classansys_1_1_project_1_1_run_output_attr.xhtml#a47b791d288a9af06d565d5bacd1dd612) () const See getFirstIterator(const std::string&amp;) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a47b791d288a9af06d565d5bacd1dd612)  
 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) [getFirstIteratorForCurrentPhysicsId](classansys_1_1_project_1_1_run_output_attr.xhtml#a05cad22c19d74259c554f2f0dc86305a) () const See getFirstIterator(const std::string&amp;) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a05cad22c19d74259c554f2f0dc86305a)  
 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) [getFirstIteratorForCurrentInputSettingsId](classansys_1_1_project_1_1_run_output_attr.xhtml#a67d0800d2ce78055bcd9658b1ea30136) () const See getFirstIterator(const std::string&amp;) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a67d0800d2ce78055bcd9658b1ea30136)  
 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) [getFirstIteratorForCurrentDomainTransformationId](classansys_1_1_project_1_1_run_output_attr.xhtml#adbcf15409dbcf5051cc8fcb3afdf930f) () const See getFirstIterator(const std::string&amp;) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#adbcf15409dbcf5051cc8fcb3afdf930f)  
 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) [getFirstIteratorForCurrentMeshId](classansys_1_1_project_1_1_run_output_attr.xhtml#a808bda2819d90363f4914bc637969154) () const See getFirstIterator(const std::string&amp;) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a808bda2819d90363f4914bc637969154)  
 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) [getFirstIteratorForCurrentTopologyId](classansys_1_1_project_1_1_run_output_attr.xhtml#a3f53d6fb39644ef6a923d2d79baa0d12) () const See getFirstIterator(const std::string&amp;) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a3f53d6fb39644ef6a923d2d79baa0d12)  
 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) [getFirstIteratorForCurrentConnectivityId](classansys_1_1_project_1_1_run_output_attr.xhtml#ad4aecfe2ed99b6e81a24edcc8699aa42) () const See getFirstIterator(const std::string&amp;) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#ad4aecfe2ed99b6e81a24edcc8699aa42)  
 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) [getFirstIteratorForCurrentCoordinatesId](classansys_1_1_project_1_1_run_output_attr.xhtml#a2badf834ba45aa1be083272d66e68cb8) () const See getFirstIterator(const std::string&amp;) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a2badf834ba45aa1be083272d66e68cb8)  
 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) [getFirstIteratorForCurrentLocationId](classansys_1_1_project_1_1_run_output_attr.xhtml#a9c43c27adee9503eed4f3940ded66ac7) () const See getFirstIterator(const std::string&amp;) [More...](classansys_1_1_project_1_1_run_output_attr.xhtml#a9c43c27adee9503eed4f3940ded66ac7)  
 [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="pro-attribs" name="pro-attribs"></a>Protected Attributes

[Iterator](classansys_1_1_project_1_1_iterator.xhtml) [aIter](classansys_1_1_project_1_1_result.xhtml#a7e79d5374691223389d69d809c8aa48f) ## <a id="inherited" name="inherited"></a>Additional Inherited Members

![-](/sites/default/files/migrate-content/common_fluids_format_2025_r2_1/closed.png) Static Public Attributes inherited from [ansys::Project::RunOutputAttr](classansys_1_1_project_1_1_run_output_attr.xhtml)static const std::string [sVarTime](classansys_1_1_project_1_1_run_output_attr.xhtml#a216010dc2b5c1190a68513b1d9617af4) static const std::string [sVarSolverIteration](classansys_1_1_project_1_1_run_output_attr.xhtml#a116b763a8622a5d731756e59b90416a0) static const std::string [sVarIndex](classansys_1_1_project_1_1_run_output_attr.xhtml#accb529227d0a8af8ea6234c678172a81) static const std::string [sVarCrankAngle](classansys_1_1_project_1_1_run_output_attr.xhtml#a758d823643e8d2995709c4cd5b92bb45) static const std::string [sVarCaseId](classansys_1_1_project_1_1_run_output_attr.xhtml#a0262e064b66ae42c08b689721c25f76a) static const std::string [sVarInputSettingsId](classansys_1_1_project_1_1_run_output_attr.xhtml#a1378a2dcbd4528f171f8e9c3aef6504f) static const std::string [sVarDomainTransformationId](classansys_1_1_project_1_1_run_output_attr.xhtml#af2a3f9fcbd8b5eb86a666d04b4b0a1ee) static const std::string [sVarPhysicsId](classansys_1_1_project_1_1_run_output_attr.xhtml#a1bd650ac5ff709a40039f5af2448409d) static const std::string [sVarOutputSettingsId](classansys_1_1_project_1_1_run_output_attr.xhtml#a57055413a8762182cd616134e1ebaae9) static const std::string [sVarMeshId](classansys_1_1_project_1_1_run_output_attr.xhtml#aedb3ba68ad3e7475b8691c0826cce629) static const std::string [sVarTopologyId](classansys_1_1_project_1_1_run_output_attr.xhtml#a6c7cab7452904746f93245318cb91ddd) static const std::string [sVarConnectivityId](classansys_1_1_project_1_1_run_output_attr.xhtml#a8a5a7c0fbf131833584035fb3e15e152) static const std::string [sVarCoordinatesId](classansys_1_1_project_1_1_run_output_attr.xhtml#a66a534af6f39ffe20a1a594006c8e31f) static const std::string [sVarLocationId](classansys_1_1_project_1_1_run_output_attr.xhtml#a5e75ed2d5bb13aac00fcf41087bdce22) <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() )





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

 virtual ansys::Project::Result::~Result  ( )   inlinevirtual 





## 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="acfea7c7aac843ba7446fbc7702a00462" name="acfea7c7aac843ba7446fbc7702a00462"></a>## [◆ ](#acfea7c7aac843ba7446fbc7702a00462)getIterator()

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

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

Implements [ansys::Project::RunOutputAttr](classansys_1_1_project_1_1_run_output_attr.xhtml#a6bc544ed688df70fc57237a5a5601e73).





<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#a77b9663f5a89b1a0f34fb51e8561bd59).





<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#a403042318aa17d920be19cb3062e63aa).





<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#ab071e4ff3568754cc9e0dc1f6c6f20f7).





<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#a160bf20b163631c67ceb8fbd0f05d81c).





<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#a81a3387403060a40ad820acfcd465247).





<a id="a1bcecc63b00d62616e954e55dbbd0b5d" name="a1bcecc63b00d62616e954e55dbbd0b5d"></a>## [◆ ](#a1bcecc63b00d62616e954e55dbbd0b5d)isValid()

 [Error](classansys_1_1_project_1_1_error.xhtml) ansys::Project::Result::isValid  ( )  const  virtual 

Returns error with message if invalid.





<a id="a7ca38918f62e55d5e32c44b53045a00f" name="a7ca38918f62e55d5e32c44b53045a00f"></a>## [◆ ](#a7ca38918f62e55d5e32c44b53045a00f)ok()

 bool ansys::Project::Result::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="ae34660c0da531ad8754a27bcb6c139e5" name="ae34660c0da531ad8754a27bcb6c139e5"></a>## [◆ ](#ae34660c0da531ad8754a27bcb6c139e5)operator Iterator()

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





<a id="a4c7ecb1ac172098dda315389ac1f45a7" name="a4c7ecb1ac172098dda315389ac1f45a7"></a>## [◆ ](#a4c7ecb1ac172098dda315389ac1f45a7)setCase()

 void ansys::Project::Result::setCase  ( [Iterator](classansys_1_1_project_1_1_iterator.xhtml)  *pCase*) 

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





<a id="a09235debe70f3b375cbb97d768ba1237" name="a09235debe70f3b375cbb97d768ba1237"></a>## [◆ ](#a09235debe70f3b375cbb97d768ba1237)setValue() \[1/3\]

 void ansys::Project::Result::setValue  ( const std::string &amp;  *pVar*,    const std::string &amp;  *pValue*   )   virtual 

Sets the local metadata to the specified key/value.

Implements [ansys::Project::RunOutputAttr](classansys_1_1_project_1_1_run_output_attr.xhtml#a9dc92e98bb7324c86192441ead647996).





<a id="a81a9c4237c19cded84907ec1f07c1c13" name="a81a9c4237c19cded84907ec1f07c1c13"></a>## [◆ ](#a81a9c4237c19cded84907ec1f07c1c13)setValue() \[2/3\]

 void ansys::Project::Result::setValue  ( const std::string &amp;  *pVar*,    double  *pValue*   )   inline 





<a id="ae7bf1a3f61a2f69bdb6b1dcca1bfea6e" name="ae7bf1a3f61a2f69bdb6b1dcca1bfea6e"></a>## [◆ ](#ae7bf1a3f61a2f69bdb6b1dcca1bfea6e)setValue() \[3/3\]

 void ansys::Project::Result::setValue  ( const std::string &amp;  *pVar*,    int  *pValue*   )   inline 





<a id="aebd750fd5bcb7593d90089716c2e8145" name="aebd750fd5bcb7593d90089716c2e8145"></a>## [◆ ](#aebd750fd5bcb7593d90089716c2e8145)setValueDouble()

 void ansys::Project::Result::setValueDouble  ( const std::string &amp;  *pVar*,    double  *pValue*   )   virtual 

Sets the local metadata to the specified key/value.

Implements [ansys::Project::RunOutputAttr](classansys_1_1_project_1_1_run_output_attr.xhtml#a3659d02ece965df37d5b09a27776b645).





<a id="ac1d2a31f02294a74f2b41f30419ad099" name="ac1d2a31f02294a74f2b41f30419ad099"></a>## [◆ ](#ac1d2a31f02294a74f2b41f30419ad099)setValueInt()

 void ansys::Project::Result::setValueInt  ( const std::string &amp;  *pVar*,    int  *pValue*   )   virtual 

Sets the local metadata to the specified key/value.

Implements [ansys::Project::RunOutputAttr](classansys_1_1_project_1_1_run_output_attr.xhtml#aec45f664a9284184f247462cdebef7a7).





## Member Data Documentation

<a id="a7e79d5374691223389d69d809c8aa48f" name="a7e79d5374691223389d69d809c8aa48f"></a>## [◆ ](#a7e79d5374691223389d69d809c8aa48f)aIter

 [Iterator](classansys_1_1_project_1_1_iterator.xhtml) ansys::Project::Result::aIter  protected