    

 ## On this page

  

 

 # Class ansys::dpf::Homogeneity

 Last update: 25.03.2026 

<a id="classansys-dpf-homogeneity"></a>

![](https://img.shields.io/badge/language-C%2B%2B-blue "C++")![](https://img.shields.io/badge/-public-brightgreen "public")

User defined physical measurement quantity.

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

**See also**: [homogeneities](structansys-dpf-homogeneities.md#structansys-dpf-homogeneities)

## Members

- [c\_str](classansys-dpf-homogeneity.md#classansys-dpf-homogeneity-1a74bcfe9b2ed50910f2da21944e3b7437)
- [Homogeneity](classansys-dpf-homogeneity.md#classansys-dpf-homogeneity-1a5ddd95a1b4667a297eb19531f722d27e)
- [Homogeneity](classansys-dpf-homogeneity.md#classansys-dpf-homogeneity-1a192f79a5c56ddd9304822227218b199e)
- [Homogeneity](classansys-dpf-homogeneity.md#classansys-dpf-homogeneity-1abab33dd46353450eb8b025e792a0c74f)
- [operator!=](classansys-dpf-homogeneity.md#classansys-dpf-homogeneity-1a10804e4a1554cd01621fceb38b77fdfe)
- [operator=](classansys-dpf-homogeneity.md#classansys-dpf-homogeneity-1a1cdc8c0da49ee50ab0111341f070322e)
- [operator==](classansys-dpf-homogeneity.md#classansys-dpf-homogeneity-1a04c1ddd43c0799283b283b6c65ee56ea)

## Public functions

<a id="classansys-dpf-homogeneity-1a5ddd95a1b4667a297eb19531f722d27e"></a>

### Function Homogeneity

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
ansys::dpf::Homogeneity::Homogeneity(std::string const &name="Unknown")

```

Create new homogeneity.

**Parameters**:

- std::string const &amp; **name** = "Unknown" : \[in\] Optional name of homogeneity.

**Return type**:

<a id="classansys-dpf-homogeneity-1a192f79a5c56ddd9304822227218b199e"></a>

### Function Homogeneity

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
ansys::dpf::Homogeneity::Homogeneity(Homogeneity const &)=default

```

**Parameters**:

- Homogeneity const &amp;

**Return type**:

<a id="classansys-dpf-homogeneity-1abab33dd46353450eb8b025e792a0c74f"></a>

### Function Homogeneity

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
ansys::dpf::Homogeneity::Homogeneity(Homogeneity &&)=default

```

**Parameters**:

- Homogeneity &amp;&amp;

**Return type**:

<a id="classansys-dpf-homogeneity-1a1cdc8c0da49ee50ab0111341f070322e"></a>

### Function operator=

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
Homogeneity & ansys::dpf::Homogeneity::operator=(Homogeneity const &)

```

**Parameters**:

- [Homogeneity](classansys-dpf-homogeneity.md#classansys-dpf-homogeneity-1a5ddd95a1b4667a297eb19531f722d27e) const &amp;

**Return type**: [Homogeneity](classansys-dpf-homogeneity.md#classansys-dpf-homogeneity-1a5ddd95a1b4667a297eb19531f722d27e) &amp;

<a id="classansys-dpf-homogeneity-1a04c1ddd43c0799283b283b6c65ee56ea"></a>

### Function operator==

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::Homogeneity::operator==(Homogeneity const &rhs) const

```

**Parameters**:

- [Homogeneity](classansys-dpf-homogeneity.md#classansys-dpf-homogeneity-1a5ddd95a1b4667a297eb19531f722d27e) const &amp; **rhs**

**Return type**: bool

<a id="classansys-dpf-homogeneity-1a10804e4a1554cd01621fceb38b77fdfe"></a>

### Function operator!=

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::Homogeneity::operator!=(Homogeneity const &rhs) const

```

**Parameters**:

- [Homogeneity](classansys-dpf-homogeneity.md#classansys-dpf-homogeneity-1a5ddd95a1b4667a297eb19531f722d27e) const &amp; **rhs**

**Return type**: bool

<a id="classansys-dpf-homogeneity-1a74bcfe9b2ed50910f2da21944e3b7437"></a>

### Function c\_str

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
const char * ansys::dpf::Homogeneity::c_str() const

```

Gets name of homogeneity. **Returns**:

Name of homogeneity.

**Return type**: const char \*