    

 ## On this page

  

 

 # ansys::dpf::Homogeneity Class Reference

 Last update: 16.07.2025 

User defined physical measurement quantity. [More...](classansys_1_1dpf_1_1Homogeneity.xhtml#details)

`#include <dpf_api_base.h>`

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

 [Homogeneity](classansys_1_1dpf_1_1Homogeneity.xhtml#a5ddd95a1b4667a297eb19531f722d27e) (std::string const &amp;name="Unknown") <a id="a192f79a5c56ddd9304822227218b199e" name="a192f79a5c56ddd9304822227218b199e"></a> **Homogeneity** ([Homogeneity](classansys_1_1dpf_1_1Homogeneity.xhtml) const &amp;)=default <a id="abab33dd46353450eb8b025e792a0c74f" name="abab33dd46353450eb8b025e792a0c74f"></a> **Homogeneity** ([Homogeneity](classansys_1_1dpf_1_1Homogeneity.xhtml) &amp;&amp;)=default <a id="a1cdc8c0da49ee50ab0111341f070322e" name="a1cdc8c0da49ee50ab0111341f070322e"></a>[Homogeneity](classansys_1_1dpf_1_1Homogeneity.xhtml) &amp; **operator=** ([Homogeneity](classansys_1_1dpf_1_1Homogeneity.xhtml) const &amp;) <a id="a04c1ddd43c0799283b283b6c65ee56ea" name="a04c1ddd43c0799283b283b6c65ee56ea"></a>bool **operator==** ([Homogeneity](classansys_1_1dpf_1_1Homogeneity.xhtml) const &amp;rhs) const <a id="a10804e4a1554cd01621fceb38b77fdfe" name="a10804e4a1554cd01621fceb38b77fdfe"></a>bool **operator!=** ([Homogeneity](classansys_1_1dpf_1_1Homogeneity.xhtml) const &amp;rhs) const  [operator std::string](classansys_1_1dpf_1_1Homogeneity.xhtml#a805990ee94e455ca6cfb4be2cb9fd1d3) () const const char \* [c\_str](classansys_1_1dpf_1_1Homogeneity.xhtml#a74bcfe9b2ed50910f2da21944e3b7437) () const <a id="details" name="details"></a>## Detailed Description

User defined physical measurement quantity.

Allows for the definition of a new measurement quantity. Many measurements quantities are predefined.

See also[homogeneities](structansys_1_1dpf_1_1homogeneities.xhtml)

## Constructor &amp; Destructor Documentation

<a id="a5ddd95a1b4667a297eb19531f722d27e" name="a5ddd95a1b4667a297eb19531f722d27e"></a>## [◆ ](#a5ddd95a1b4667a297eb19531f722d27e)Homogeneity()

 ansys::dpf::Homogeneity::Homogeneity  ( std::string const &amp;  *name* = `"Unknown"`) 

Create new homogeneity.

Parameters \[in\]nameOptional name of homogeneity. 



## Member Function Documentation

<a id="a74bcfe9b2ed50910f2da21944e3b7437" name="a74bcfe9b2ed50910f2da21944e3b7437"></a>## [◆ ](#a74bcfe9b2ed50910f2da21944e3b7437)c\_str()

 const char \* ansys::dpf::Homogeneity::c\_str  ( )  const

Gets name of homogeneity.

ReturnsName of homogeneity. Examples[ResultTest.cpp](ResultTest_8cpp-example.xhtml#a14).



<a id="a805990ee94e455ca6cfb4be2cb9fd1d3" name="a805990ee94e455ca6cfb4be2cb9fd1d3"></a>## [◆ ](#a805990ee94e455ca6cfb4be2cb9fd1d3)operator std::string()

 ansys::dpf::Homogeneity::operator std::string  ( )  const

Name of homogeneity.