Export results to VTK binary format

Harikrushna
Harikrushna Member Posts: 6
Name Dropper First Comment First Anniversary
**
edited October 2023 in Structures

I had gone through Some blog for exporting VTK file, The main issue is that this operation give me ascii format i need binary format.

I want to export deformation as VTK format and see in browser.

from ansys.dpf import post
from ansys.dpf import core
solution = post.load_solution("file.rst")
displacement = solution.displacement()
norm = displacement.norm
fields_container = norm.result_fields_container
vtk_operator = core.Operator("vtk_export")
vtk_operator.inputs.mesh.connect(solution.mesh)
vtk_operator.inputs.file_path.connect("Output.vtk")
vtk_operator.inputs.fields1.connect(fields_container)
vtk_operator.run()