Export results to VTK binary format

Options
Harikrushna
Harikrushna Member Posts: 3
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()