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

# Structure ansys::dpf::Dimensionality

![][C++]
![][public]

Entity to describe the dimensionality.

**See also**: [dimensionalities](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-dimensionalities.md)

## Members

* [components](#structansys-dpf-dimensionality-1a5b2b368e4a13cf72be8a3e4f579c4284)
* [Dimensionality](#structansys-dpf-dimensionality-1ad640244ee091a7f88f74805c0f2c7540)
* [Dimensionality](#structansys-dpf-dimensionality-1ac125b96a9c3925b3de25e96b567dde82)
* [eDiagonalMatrix](#structansys-dpf-dimensionality-1af4666dee615e27f2fe603240631b932fabfb10634b8229d98071873a53cbdbab1)
* [eFourthOrderIdentityTensor](#structansys-dpf-dimensionality-1af4666dee615e27f2fe603240631b932faac4c7551563382886e6ebdde81c74ec7)
* [eFourthOrderTensor](#structansys-dpf-dimensionality-1af4666dee615e27f2fe603240631b932fa86439d7afe0bec6120829e128979c26a)
* [eIdentityMatrix](#structansys-dpf-dimensionality-1af4666dee615e27f2fe603240631b932fa635756dc0dccbafeedf23f36cc4cb680)
* [eMatrix](#structansys-dpf-dimensionality-1af4666dee615e27f2fe603240631b932fab7504de6505b8d462ea4805ac78c63de)
* [ENature](#structansys-dpf-dimensionality-1af4666dee615e27f2fe603240631b932f)
* [eScalar](#structansys-dpf-dimensionality-1af4666dee615e27f2fe603240631b932fab1e374d84e9d59ff041f86b649785682)
* [eSymetricVoigtMatrix](#structansys-dpf-dimensionality-1af4666dee615e27f2fe603240631b932fa14aa2c543af770bb2cfaf2bea185f2cb)
* [eSymmetricalMatrix](#structansys-dpf-dimensionality-1af4666dee615e27f2fe603240631b932faf671f518935364c6f60ca6353e024ea4)
* [eThirdOrderTensor](#structansys-dpf-dimensionality-1af4666dee615e27f2fe603240631b932faefe92d527d4e8342302e21584a6c95db)
* [eVector](#structansys-dpf-dimensionality-1af4666dee615e27f2fe603240631b932faf49ffdf91915fe856dd4465ec99cee86)
* [nature](#structansys-dpf-dimensionality-1ad0a69f176729f5196b59701ebc94c379)
* [numberOfComponents](#structansys-dpf-dimensionality-1a17e3ae4b1a740d42176086de8873608e)

## Public types

### Enumeration type ENature

![][public]

```cpp theme={null}
enum ENature {
  eScalar = 0,
  eVector = 1,
  eMatrix = 2,
  eThirdOrderTensor = 3,
  eFourthOrderTensor = 4,
  eSymmetricalMatrix = 5,
  eDiagonalMatrix = 6,
  eSymetricVoigtMatrix = 7,
  eIdentityMatrix = 8,
  eFourthOrderIdentityTensor = 9
}
```

Enum value to describe handled entities dimensions.

#### Enumerator eScalar

#### Enumerator eVector

#### Enumerator eMatrix

#### Enumerator eThirdOrderTensor

#### Enumerator eFourthOrderTensor

#### Enumerator eSymmetricalMatrix

#### Enumerator eDiagonalMatrix

#### Enumerator eSymetricVoigtMatrix

#### Enumerator eIdentityMatrix

#### Enumerator eFourthOrderIdentityTensor

## Public attributes

### Variable components

![][public]

```cpp theme={null}
std::vector<int> ansys::dpf::Dimensionality::components
```

Vector defining size of each dimension. For example, use \{ 1 } for scalar, \{ 3 } for a 3D vector, and \{ 3, 3 } for 3D tensor.

**Type**: std::vector\< int >

### Variable nature

![][public]

```cpp theme={null}
ENature ansys::dpf::Dimensionality::nature
```

[ENature](#structansys-dpf-dimensionality-1af4666dee615e27f2fe603240631b932f) enum value to describe the dimension of the entity.

**Type**: [ENature](#structansys-dpf-dimensionality-1af4666dee615e27f2fe603240631b932f)

## Public functions

### Function Dimensionality

![][public]

```cpp theme={null}
ansys::dpf::Dimensionality::Dimensionality()=delete
```

**Return type**:

### Function Dimensionality

![][public]

```cpp theme={null}
ansys::dpf::Dimensionality::Dimensionality(ENature innature, std::vector< int > const &incomponents)
```

[Dimensionality](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-dimensionality.md) object that describes the entity dimensions.

**Parameters**:

* [ENature](#structansys-dpf-dimensionality-1af4666dee615e27f2fe603240631b932f) **innature**
* std::vector\< int > const & **incomponents**: \[in] [ENature](#structansys-dpf-dimensionality-1af4666dee615e27f2fe603240631b932f) enum value to describe the dimension of the entity.

**Return type**:

### Function numberOfComponents

![][public]
![][const]

```cpp theme={null}
dp_int ansys::dpf::Dimensionality::numberOfComponents() const
```

\[in] Vector defining size of each dimension.
**Returns**:

The number of components of the described entity.

**Return type**: [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a60d181a1f9d29cc7cc38b25dac4401f0)

[C++]: https://img.shields.io/badge/language-C%2B%2B-blue "C++"

[const]: https://img.shields.io/badge/-const-lightblue "const"

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

[static]: https://img.shields.io/badge/-static-lightgrey "static"
