I am using dpf.core to facilitate the post process of simulation for the nuclear domain. I have developed some python code to create objects like node and segment where I want to map the nodal stress. Getting the stress tensor on segments allows me to linearize the stress in a python environment which can be then used in a post processing tools.
However with a axisymmetric model I encountered a issue. I have 6 segments with 49 points each. I try to map the stress result on those segments by using mapping.on_coordinates operator with the following code:
mapping_operator = dpf.operators.mapping.on_coordinates(
fields_container=field_container_set,
coordinates=field_coord,
create_support=False,
mesh=mesh,
)
fields_mapped = mapping_operator.outputs.fields_container.get_data()
where field_container_set is a dpf.field_container with the nodal stresses for a particular set and field_coord a dpf.field with the coordinates of the points of the segment where I want the stresses to be mapped.
The program runs perfectly for the first 3 paths. But for the last three I obtained a fields_mapped variable containing the stress tensor components for only 32, 45 and 46 points while field_coord has 49 points.
By checking the program it seems that the issue occurs with the mapping.on_coordinates operator. I am using the dpf.server linked to the Ansys24R2 which is also the version of Ansys I am using.
Does anybody have any advice to solve or work around this issue ?
Lucien