Skip to main content

DPF Cpp Client Library 2026 R1

Structure ansys::dpf::Dimensionality

Last update: 25.03.2026

Entity to describe the dimensionality.

See also: dimensionalities

Members

Public types

Enumeration type ENature

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

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

ENature ansys::dpf::Dimensionality::nature

ENature enum value to describe the dimension of the entity.

Type: ENature

Public functions

Function Dimensionality

ansys::dpf::Dimensionality::Dimensionality()=delete

Return type:

Function Dimensionality

ansys::dpf::Dimensionality::Dimensionality(ENature innature, std::vector< int > const &incomponents)

Dimensionality object that describes the entity dimensions.

Parameters:

  • ENature innature
  • std::vector< int > const & incomponents: [in] ENature enum value to describe the dimension of the entity.

Return type:

Function numberOfComponents

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

Connect with Ansys