Hi everyone,
I would like to ask if there is a way to access displacement results from topology optimization in Ansys Mechanical using Python (assuming hdf5 file result).
I am able to retrieve the displacement results successfully when working with standalone PyDPF, but I have not been able to achieve the same within Mechanical.
Standalone PyDPF approach (works):
from ansys.dpf import core as dpf
model = dpf.Model("Static24.h5")
disp_fc = model.results.displacement().eval()
disp_field = disp_fc[0]
Thank you in advance for your help.