I've explored the capabilities of Data Processing Framework (DPF) in getting and processing data of Mechanical analysis for possible application in ACT-extension. dpf.FieldsContainer is the object that stores results data for particular entity and time scoping. Target entity is a 'Location', result set is 'time scoping' labeled as 'Time'. I can access the data from defined location and time scoping using AddFieldByTimeId(timeid) method. All had gone well before I tried to get data from field with more than one label! In case the field has more than one label the method AddFieldByTimeId(timeid) doesn't work because timeid is only argument for method and it is not enough to get data (see the following listing):
>>>mystresses1
DPF stress(s)Fields Container
with 4 field(s)
defined on labels: elshape time
with:
- field 0 {elshape: 2, time: 1} with Nodal location, 1 components and 1 entities.
- field 1 {elshape: 1, time: 1} with Nodal location, 1 components and 1 entities.
- field 2 {elshape: 2, time: 2} with Nodal location, 1 components and 1 entities.
- field 3 {elshape: 1, time: 2} with Nodal location, 1 components and 1 entities.
>>>mystresses1.GetFieldByTimeId(1)
the label space request in this collection has more than one entry, to get an entry, be more specific, the labels are: [elshape, time]
There is get_fields(self, label_space) method in dpf.FieldsContainer class which aims to retrieve the fields at a label space but it is not accessible
via API (got: 'FieldsContainer' object has no attribute 'get_fields' in scripting window). This aspect is not covered by learning materials and I wonder is there a way to filter and get fields from fields container by label? Any help would be appreciated!