CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   How to compute contours in oepnFOAM using VTK (http://www.cfd-online.com/Forums/openfoam-solving/60617-how-compute-contours-oepnfoam-using-vtk.html)

luckyluke April 19, 2005 00:35

In the code of my solver(not f
 
In the code of my solver(not for postprocessing), I want to compute the contours of the flow field(e.g. pressure or velocity). I knew that VTK has vtkContourFilter and vtkMarchingCube for contour computing. How can I do it with these two classes?

Thank all.

luckyluke April 19, 2005 08:50

Hi,everybody. How can I ac
 
Hi,everybody.

How can I achieve the special mesh and field values needed by VTK? I want to use them for further contour computing using VTK.

Thanks.

mattijs April 19, 2005 09:00

foamToVTK? If you want to i
 
foamToVTK?

If you want to interface directly to VTK have a look at the Paraview reader module $FOAM_UTILITIES/postProcessing/graphics/PVFoamReader/vtkFoam/
(not trivial though!)

luckyluke April 19, 2005 09:56

Btw, the utility 'paraFoam' is
 
Btw, the utility 'paraFoam' is only a simple script which can be found in 'OpenFOAM-1.1\bin'.
Then in which way are the mesh and flow field convered to the datatype needed by paraView?

eugene April 19, 2005 10:24

I think you will find it much
 
I think you will find it much easier to add whatever functionality you need to foam instead of trying to use non-native vtk libraries. There is allready some isoSurface stuff hidden in the OpenFOAM source, you just need to dig it up.

luckyluke April 19, 2005 10:43

Hi,Eugene de Villiers and ever
 
Hi,Eugene de Villiers and everyone. What is the easy way to meet my demand?

eugene April 19, 2005 12:12

I didnt say easy, I said easie
 
I didnt say easy, I said easier.

What exactly do you want to accomplish by calculating the contours of the flow field anyway?


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