Visualizing OpenFOAM VTK-files using mayavi/mlab in Python
Hi All,
I am trying to visualize my model results from OpenFOAM in python using mayavi/mlab. I am able to plot the surfaces of my model. However, I would like to make a quiverplot of my velocity field and a volume plot of my pressures. I found some documentation this. However, this documentation did not state anything on the combination with loaded VTK-files. The code beneath is the one I use for plotting the surfaces. Could anyone help me extend this to plotting the velocities and pressures using python? Code:
import os |
Working principle
After a while I found a way to visualise my VTK files generated by OpenFOAM using mayavi.
Code:
import os |
All times are GMT -4. The time now is 12:11. |