CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   OpenFOAM with Mayavi2 (https://www.cfd-online.com/Forums/openfoam/86708-openfoam-mayavi2.html)

dhasthagheer March 30, 2011 23:15

OpenFOAM with Mayavi2
 
Hi there, I am trying to visualize the output of OpenFOAM with Mayavi2. So I tried foamToVTK to make vtk files. But foamToVTK creates many vtk files for each timelines. How to can I load all the vtk files into mayavi2 at once to do various operation with mayavi2?

Thanks in advance.

elvis March 31, 2011 10:41

Hi,
(from the mayavi homepage)
mayavi2 offers:A simple and clean scripting interface in Python

so use that.

I used mayavi1 from ipython and it was okay
things should have become better. http://mayavi.sourceforge.net/docs/guide/ch04.html

but even Paraview has scripting
http://www.itk.org/Wiki/ParaView/Python_Scripting


All times are GMT -4. The time now is 20:01.