Result visualization with the buildin sfepy viewer
Hi Robert,
the linear elastic simulation with my large dataset is working, basically. It was possible to run the simulation in the same way as with my test example mesh some weeks ago.
But I get an exception trying to use the build in sfepy Viewer: .... .../VTK-6.3.0/VTK-6.3.0/Common/ExecutionModel/vtkAlgorithm.cxx, line 1421 vtkGlyph3D (0x4cd1fc0): Attempt to get connection index 0 for input port 0, which has 0 connections. .... ICE default IO error handler doing an exit(), pid = 31572, errno = 32
The output .vtk file looks good. Did you see that exception before? If not I will just try to use vtk directly for the visualization.
Just for clarification: The output file contains the deformed mesh? Is this correct? So I can just display it in vtk. In my case it also contains TENSORS cauchy_stress from the post processing.
Thank you, Kathrin
Hi Kathrin,
On 09/14/2017 03:16 PM, Kathrin Sobe wrote:
Hi Robert,
the linear elastic simulation with my large dataset is working, basically. It was possible to run the simulation in the same way as with my test example mesh some weeks ago.
But I get an exception trying to use the build in sfepy Viewer: .... .../VTK-6.3.0/VTK-6.3.0/Common/ExecutionModel/vtkAlgorithm.cxx, line 1421 vtkGlyph3D (0x4cd1fc0): Attempt to get connection index 0 for input port 0, which has 0 connections. .... ICE default IO error handler doing an exit(), pid = 31572, errno = 32
The output .vtk file looks good. Did you see that exception before? If not I will just try to use vtk directly for the visualization.
I have not seen such error. What happens when you try to open the VTK file in the mayavi2 application? It might be a VTK version problem.
Just for clarification: The output file contains the deformed mesh? Is this correct? So I can just display it in vtk. In my case it also contains TENSORS cauchy_stress from the post processing.
The output file contains the undeformed mesh, but also the displacements (and cauchys_stress and possibly other values from post-processing). Both paraview and mayavi have filters to deform the mesh according to a vector field - just apply it to the displacements to see the deformed mesh.
r.
Hi Robert,
interesting solution, just as an information: After running the simulation the results are written into a .vtk file (pb.save_state(...)). I tried to find the reason for the exception and started the viewer only with the just created result .vtk file. In this case everything was working as expected and the viewer shows the picture?
Thank you for clarifying the content of the result .vtk file. Is there a description of the result file in the documentation? The section VECTORS are the displacement vectors. In which order are these vectors given?
Could you also explain the content of the regions.vtk file?
Regards, Kathrin
2017-09-14 21:47 GMT+02:00 Robert Cimrman <cimrman3@ntc.zcu.cz>:
Hi Kathrin,
On 09/14/2017 03:16 PM, Kathrin Sobe wrote:
Hi Robert,
the linear elastic simulation with my large dataset is working, basically. It was possible to run the simulation in the same way as with my test example mesh some weeks ago.
But I get an exception trying to use the build in sfepy Viewer: .... .../VTK-6.3.0/VTK-6.3.0/Common/ExecutionModel/vtkAlgorithm.cxx, line 1421 vtkGlyph3D (0x4cd1fc0): Attempt to get connection index 0 for input port 0, which has 0 connections. .... ICE default IO error handler doing an exit(), pid = 31572, errno = 32
The output .vtk file looks good. Did you see that exception before? If not I will just try to use vtk directly for the visualization.
I have not seen such error. What happens when you try to open the VTK file in the mayavi2 application? It might be a VTK version problem.
Just for clarification: The output file contains the deformed mesh? Is this
correct? So I can just display it in vtk. In my case it also contains TENSORS cauchy_stress from the post processing.
The output file contains the undeformed mesh, but also the displacements (and cauchys_stress and possibly other values from post-processing). Both paraview and mayavi have filters to deform the mesh according to a vector field - just apply it to the displacements to see the deformed mesh.
r.
SfePy mailing list sfepy@python.org https://mail.python.org/mm3/mailman3/lists/sfepy.python.org/
On 09/15/2017 01:21 PM, Kathrin Sobe wrote:
Hi Robert,
interesting solution, just as an information: After running the simulation the results are written into a .vtk file (pb.save_state(...)). I tried to find the reason for the exception and started the viewer only with the just created result .vtk file. In this case everything was working as expected and the viewer shows the picture?
You need to setup the visualization pipeline yourself to see something (add at least one module, e.g. surface).
Thank you for clarifying the content of the result .vtk file. Is there a description of the result file in the documentation? The section VECTORS are the displacement vectors. In which order are these vectors given?
It is a standard legacy VTK file [1]. The fields saved are the primary variables, and those coming from the post-processing.
[1] http://www.vtk.org/VTK/img/file-formats.pdf
Could you also explain the content of the regions.vtk file?
The regions you defined are marked by ones, you can view it just like the results file.
r.
participants (2)
-
Kathrin Sobe
-
Robert Cimrman