Skip to main content
Data for an entity. #include <dpf_api.h> Inheritance diagram for ansys::dpf::Field:

Public Member Functions

Public Member Functions inherited from ansys::dpf::DpfTypes

Static Public Member Functions

Detailed Description

Data for an entity. The field is the main simulation data container. In numerical simulations, results data are defined by values associated to entities (scoping), and these entities are a subset of a model (support). In DPF, field data is always associated to its scoping and support, making the field a self-describing piece of data. A field is also defined by its dimensionnality, unit, location… A field can for example, describe a displacement vector or norm, stresses and strains tensors, stresses and strains equivalent, min max over time of any result… It can be defined on a complete model or just on certain entities of the model thanks to its scoping. The data is stored as a vector of double values and each elementary entity has a number of components (thanks to the dimensionality, a displacement will have 3 components, a symmetrical stress matrix 6…) Examples AveragingTest.cpp, CompleteRST.cpp, DataApis.cpp, DataExport.cpp, ModelTest.cpp, OperatorsApis.cpp, ResultTest.cpp, and WorkflowExamples.cpp.

Constructor & Destructor Documentation

Field() [1/3]

Create a group of data with given dimensions and locations. Parameters

Field() [2/3]

Create a group of data with given dimensions and locations on a server. Parameters

Field() [3/3]

Retrieve an existing instance of Field on a server.
Parameters

Member Function Documentation

addStringProperty()

Add property of given key and string value. If key is already set, then value is updated with sProp.

createFieldWithTransformation()

static Instantiate a Field with Transformation. For each call to a getter, the workflow in input is connected this Field to input_name_to_connect and the Field output in output_name_to_eval is used as the getter instance. Parameters

data() [1/2]

Returns DpfVector of data array.

data() [2/2]

Returns Pointer to data array. Parameters Examples DataApis.cpp, DataExport.cpp, ModelTest.cpp, and OperatorsApis.cpp.

dataPointer()

Returns DpfVector of data pointer array.

dataSize()

Returns Size of the data container. Examples DataExport.cpp, and ModelTest.cpp.

deep_copy() [1/2]

Make a deep copy locally.

deep_copy() [2/2]

Make a deep copy on a given client. Parameters

emptyField()

static Create an empty Field. Returns Empty Field.

entityData() [1/2]

Returns Pointer to data array of an entity, by index. Parameters Examples DataApis.cpp.

entityData() [2/2]

Returns DpfVector of data array of an entity, by index. Parameters

entityDataById() [1/2]

Returns Pointer to data array of an entity, by id. Parameters Examples DataApis.cpp.

entityDataById() [2/2]

Returns DpfVector of data array of an entity, by id. Parameters

entityId()

Returns Entity id corresponding to a given entity index Parameters

fieldDefinition()

Returns FieldDefinition of the field. Examples AveragingTest.cpp, DataApis.cpp, and DataExport.cpp.

fillCursor()

Get data at a given index. Parameters Examples DataApis.cpp.

getData()

Copy the data for all entities in a vector of double. Parameters Examples ResultTest.cpp.

getStringProperty()

Returns True if property of given key is set. Sprop is updated with the property’s value.

identicalPointers()

Compare field with input field f. Parameters

name()

Returns Name of Field.

numberOfComponents()

Returns Number of components in the elementary data. Examples DataApis.cpp.

numberOfElementaryData()

Returns Number of elementary data (size = number of components) contained in the Field.

numberOfElementaryDataByEntityId()

Returns Number of elementary data by entity id.

numberOfElementaryDataByEntityIndex()

Returns Number of elementary data by entity index.

numberOfEntities()

Returns Number of entities in the Field. Only implemented for in process udage. For gRPC usage, use scoping().size().

push_back() [1/3]

Push back the entity data. Parameters

push_back() [2/3]

Push back the entity data. Parameters

push_back() [3/3]

Push back the entity data. Parameters Examples AveragingTest.cpp, and DataApis.cpp.

reserve()

Reserve the Field. Only implemented for in process udage. To reserve the size for gRPC usage, use the constructor. Parameters

resize()

Reserve the Field. Parameters

resizeDataPointer()

[in] Number of entities Resize the dataPointer array.

scoping()

Returns Scoping of the field. Examples DataApis.cpp, and DataExport.cpp.

setData() [1/2]

Set the data of the field. Parameters

setData() [2/2]

Set the data of the field. Parameters Examples DataApis.cpp, and OperatorsApis.cpp.

setDataPointer() [1/2]

Set the data pointer of the field. Parameters

setDataPointer() [2/2]

Set the data pointer of the field. Parameters

setFieldDefinition()

Set the FieldDefinition. Examples AveragingTest.cpp, and DataApis.cpp.

setName()

Set name of Field. Parameters

setScoping()

set the Scoping of the Field.

setSupport() [1/3]

Set the support of the Field. Parameters

setSupport() [2/3]

Set the support of the Field. Parameters Examples AveragingTest.cpp.

setSupport() [3/3]

Set the support of the Field. Parameters

support()

Returns Support of the field.