Dimensionnality

class ansys.dpf.core.dimensionnality.Dimensionnality(dim_vec, nature: ansys.dpf.core.common.natures)
Class representing the dimensionnality of the field

Read list of dim (1D vector for scalar and vector and 2D vector for matrix) and create a field_definition_pb2.Dimensionality message

Parameters
  • server (server.DPFServer, optional) – Server with channel connected to the remote or local instance. When None, attempts to use the the global server.

  • dim_vec (list of int) – [1]: scalar [3]: 3d vector [3,3]: matrix 3 3

  • nature (Nature) –

static scalar_dim()

Dimensionnality instance corresponding to a scalar field

Returns

dimensionnality

Return type

Dimensionnality

static vector_dim(size)

Dimensionnality instance corresponding to a vector field of size “size”

Parameters

size (int) – number of components by entity

Returns

dimensionnality

Return type

Dimensionnality

static vector_3d_dim()

Dimensionnality instance corresponding to a 3 dimensions vector field

Returns

dimensionnality

Return type

Dimensionnality

static tensor_dim()

Dimensionnality instance corresponding to a symmetrical 3 3 tensor field

Returns

dimensionnality

Return type

Dimensionnality