CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to compute contours in oepnFOAM using VTK

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2005, 00:35
Default In the code of my solver(not f
  #1
Member
 
Luckyluke
Join Date: Mar 2009
Posts: 51
Rep Power: 17
luckyluke is on a distinguished road
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 is offline   Reply With Quote

Old   April 19, 2005, 08:50
Default Hi,everybody. How can I ac
  #2
Member
 
Luckyluke
Join Date: Mar 2009
Posts: 51
Rep Power: 17
luckyluke is on a distinguished road
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.
luckyluke is offline   Reply With Quote

Old   April 19, 2005, 09:00
Default foamToVTK? If you want to i
  #3
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
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!)
mattijs is offline   Reply With Quote

Old   April 19, 2005, 09:56
Default Btw, the utility 'paraFoam' is
  #4
Member
 
Luckyluke
Join Date: Mar 2009
Posts: 51
Rep Power: 17
luckyluke is on a distinguished road
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?
luckyluke is offline   Reply With Quote

Old   April 19, 2005, 10:24
Default I think you will find it much
  #5
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
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.
eugene is offline   Reply With Quote

Old   April 19, 2005, 10:43
Default Hi,Eugene de Villiers and ever
  #6
Member
 
Luckyluke
Join Date: Mar 2009
Posts: 51
Rep Power: 17
luckyluke is on a distinguished road
Hi,Eugene de Villiers and everyone. What is the easy way to meet my demand?
luckyluke is offline   Reply With Quote

Old   April 19, 2005, 12:12
Default I didnt say easy, I said easie
  #7
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
I didnt say easy, I said easier.

What exactly do you want to accomplish by calculating the contours of the flow field anyway?
eugene is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to compute non zero in fem ztdep Main CFD Forum 7 September 27, 2008 11:27
how to compute this? phsieh2005 Main CFD Forum 3 September 25, 2007 09:25
Contours Sangeeta FLUENT 11 January 31, 2007 01:16
How to compute this! ztdep Main CFD Forum 1 June 25, 2006 22:33
Compute From co2 FLUENT 3 December 28, 2003 10:51


All times are GMT -4. The time now is 15:35.