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

# ansys::dpf::Dimensionality Struct Reference

`#include <dpf_api_base.h>`

## Public Types

| Type | Name |
| - | - |
| enum | [ENature](#af4666dee615e27f2fe603240631b932f) \{  **eScalar** = 0 , **eVector** = 1 , **eMatrix** = 2 , **eThirdOrderTensor** = 3 ,  **eFourthOrderTensor** = 4 , **eSymmetricalMatrix** = 5 , **eDiagonalMatrix** = 6 , **eSymetricVoigtMatrix** = 7 ,  **eIdentityMatrix** = 8 , **eFourthOrderIdentityTensor** = 9  } |

## Public Member Functions

| Type | Name |
| - | - |
| | [Dimensionality](#ac125b96a9c3925b3de25e96b567dde82) ([ENature](#af4666dee615e27f2fe603240631b932f) innature, std::vector\< int > const \&incomponents) |
| [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) | [numberOfComponents](#a17e3ae4b1a740d42176086de8873608e) () const |

## Data Fields

| Type | Name |
| - | - |
| std::vector\< int > | [components](#a5b2b368e4a13cf72be8a3e4f579c4284) |
| [ENature](#af4666dee615e27f2fe603240631b932f) | [nature](#ad0a69f176729f5196b59701ebc94c379) |

## Detailed Description

Entity to describe the dimensionality.

**See also**

[dimensionalities](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1dimensionalities.md)

## Member Enumeration Documentation

### ENature

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

Enum value to describe handled entities dimensions.

## Constructor & Destructor Documentation

### Dimensionality()

```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/2025-r1/structansys_1_1dpf_1_1Dimensionality.md) object that describes the entity dimensions.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | incomponents | ENature enum value to describe the dimension of the entity. |

## Member Function Documentation

### numberOfComponents()

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

## Field Documentation

### components

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

### nature

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

ENature enum value to describe the dimension of the entity.
