Closed GuillemBarroso closed 1 year ago
So far we have the DataObject class that wraps the FieldsContainer.
DataObject
FieldsContainer
We could also implement a Data class containing the information of the Fields. The Data object would be returned when iterating on the DataObject.
Data
Fields
Create a Data class that it's initialized with the content of each Field in the FieldsContainer.
Field
The Data object will be requested by iterating on the DataObject as:
data_object_disp = simulation.displacement() data_disp_0 = data_object_disp[0]
The print(data_disp_0) will return something like the current Field description:
print(data_disp_0)
N/A
Closing as not planned for now. Not necessarily the design to be kept.
Description of the feature
So far we have the
DataObject
class that wraps theFieldsContainer
.We could also implement a
Data
class containing the information of theFields
. TheData
object would be returned when iterating on theDataObject
.Steps for implementing the feature
Create a
Data
class that it's initialized with the content of eachField
in theFieldsContainer
.The
Data
object will be requested by iterating on the DataObject as:The
print(data_disp_0)
will return something like the currentField
description:Useful links and references
N/A