ansys / pydpf-post

Data Processing Framework - Post Processing Module
https://post.docs.pyansys.com
MIT License
43 stars 10 forks source link

Create ``Data`` object wrapping the PyDPF-Core ``Field`` object #239

Closed GuillemBarroso closed 1 year ago

GuillemBarroso commented 1 year ago

Description of the feature

So far we have the DataObject class that wraps the 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.

Steps for implementing the feature

Create a Data class that it's initialized with the content of each Field in the FieldsContainer.

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:

image

Useful links and references

N/A

PProfizi commented 1 year ago

Closing as not planned for now. Not necessarily the design to be kept.