PyDPF does not return displacement at all the nodes when used mapping operator

Samukham
Samukham Member Posts: 41
10 Comments First Anniversary Name Dropper
**

Hi,
I have a modal analysis result and I need to map the displacement for a particular mode onto a particular path. The path has been created in Mechanical and extracted the points along the path using 'Export Text File option'. To map the displacement along the path I am using the following code:


disp = model.results.displacement.on_all_time_freqs.eval()
points = Points(path_cord) # path_cord: point coordinates along the path (size = (202,3))

mapping_operator = ops.mapping.on_coordinates(
fields_container=disp,
coordinates=field_from_array(points.coordinates.data),
create_support=True,
)

disp_path = mapping_operator.outputs.fields_container()

disp_path[0].data # contain disp at only 154 points

The problem I am facing here is that the number of points I requested is 202, but the mapping operator returns only 154 points.

Please help me resolve this issue.

Thanks,
Samukham

Comments

  • Samukham
    Samukham Member Posts: 41
    10 Comments First Anniversary Name Dropper
    **

    Could anyone please help me to resolve this issue