CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

Visualize Mesh with foamToVTK

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   October 3, 2009, 08:35
Default Visualize Mesh with foamToVTK
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 8
andrewryan is on a distinguished road
I'm justing foamToVTK here, since I didn't get paraFoam working. I would like to visualize a simple mesh, which I created using blockMeshDict and blockMesh.

I want to do this before actually computing anything so the only files created are:
system/controlDict (blockMesh required this)

So far foamToVTK fails complaining that system/fvSchemes is missing. Any ideas? Could it be done by using the parallel reader?
andrewryan is offline   Reply With Quote

Old   October 4, 2009, 02:42
Super Moderator
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 11
7islands is on a distinguished road
Hi Andrew,
Yes the parallel reader can do it, but copying the missing files from any one of the tutorials may be a lot easier solution (besides they are required for running simulations anyway).

7islands is offline   Reply With Quote

Old   October 5, 2009, 02:44
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 8
andrewryan is on a distinguished road
Created the files and it worked. However I'm wondering if there is a way to display the patches from blockMeshDict in paraview. Also I wonder whether there is a difference between foamToVTK and paraFOAM. If I just use foamToVTK will it omit some things or do a see exactly the same as when using paraFoam?

Btw: I managed to get paraview compiled with the parallel reader on a Linux machine. I also have a Mac and wonder whether there are any binary plugins for the paraview version from (I don't want to compile it again)
andrewryan is offline   Reply With Quote

Old   October 5, 2009, 09:42
Julien Schaguene
Join Date: Apr 2009
Location: France
Posts: 55
Rep Power: 8
Schag is on a distinguished road
Hi Andrew,

using foamToVTK, il will create vtk files for internalField and others for patches. If you want to visualize patches in paraview, you have to open yourpachname_timestep.vtk into the pipeline browser in Paraview.

using paraFoam, you can (under linux) select what part of your mesh (internal/patches) and what variables you want to compute. It doesn't really bring more than foamToVTK, except it's faster.

From my experience, I use paraFoam to visualize the results when alone, but foamToVTK when I want to show results in a presentation.

Anyway, I don't know if it's just on my computer, but paraview seems faster when using it on windows instead of linux (BUT it force you to use foamToVTK)

Hoping it's helping you,

Schag is offline   Reply With Quote


foamtovtk, paraview

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
virtual geometry richard FLUENT 4 January 7, 2009 06:16
how to extend FSI 2D codes to 3D, need advises abouziar Main CFD Forum 1 May 30, 2008 04:08
basic of mesh refinement arya CFX 4 June 19, 2007 12:21
How to do Geometry from 3D mesh in ICEM San24 Main CFD Forum 4 August 8, 2005 02:49
General questions on grid-based computing Adrin Gharakhani Main CFD Forum 21 June 5, 2000 13:47

All times are GMT -4. The time now is 13:29.