ANSYS MAPDL to convert RST results into VTK format
Hello everyone, I am using the ANSYS MAPDL Python library to process the result file file.rst generated by ANSYS Workbench. I want to convert file.rst into VTK format and then render it using ParaView. Here is the code I'm using:
from ansys.mapdl import reader as pymapdl_reader def convert(input_file, output_file): result = pymapdl_reader.read_binary(input_file) result.save_as_vtk(output_file) if __name__ == '__main__': convert("./file.rst", "./file.vtk")
the conversion process was successful, and it did not throw any exceptions.
However, when I opened the successfully converted file.vtk file with ParaView, I found that the displacement data was unusually large and appeared to be erroneous. The results are shown in the following image:
the contour data from the results calculated in ANSYS Workbench is as follows:
my calculation result file is as follows:
https://yuansuan-wanghao.oss-cn-shanghai.aliyuncs.com/abnormal.rst
could you please help me figure out how to solve this problem? thank you.
Comments
-
the displacement data is too large; the correct result should be 0.16047.
0 -
Hi
See this post that might be perhaps of help:
https://discourse.paraview.org/t/reading-ansys-apdl-rst-results-in-paraview/9706/3
1 -
@Erik Kostson said:
HiSee this post that might be perhaps of help:
https://discourse.paraview.org/t/reading-ansys-apdl-rst-results-in-paraview/9706/3
Thank you very much. After testing, I found that large displacement anomalies occur whenever I set the boundary condition to 'remote force' in the simulation. Using 'force' does not cause this issue.
0 -
0