CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   paraview not from openfoam's thirdparty (http://www.cfd-online.com/Forums/openfoam/116044-paraview-not-openfoams-thirdparty.html)

hz283 April 11, 2013 14:54

paraview not from openfoam's thirdparty
 
Hi All,

If I did not use the paraview installed from theirdparty (cannot do it through paraFoam command), instead of the local computer's one, I always first convert the Openfoam results to VTK results (foamToVTK) and then open them through the VTK format. However, I found that this is not a good method because if the openfoam data are large, it will take a long time to convert. Is there better method to open the openfoam results using the local computer's paraview? Thank you very much.

aljazari April 11, 2013 15:04

Quote:

Originally Posted by hz283 (Post 419967)
Hi All,

If I did not use the paraview installed from theirdparty (cannot do it through paraFoam command), instead of the local computer's one, I always first convert the Openfoam results to VTK results (foamToVTK) and then open them through the VTK format. However, I found that this is not a good method because if the openfoam data are large, it will take a long time to convert. Is there better method to open the openfoam results using the local computer's paraview? Thank you very much.

You can run the following:

Quote:

paraFoam -builtin
This will use the built-in OpenFOAM reader in ParaView.

If however, you are using a new version (say 3.98), you can run the following:

Quote:

paraFoam -builtin -touch
This will create a .foam file which you can open in a newer ParaView version.

nanes April 12, 2013 10:53

ParaFoam is a bash script, the main operations that does paraFoam is to create an empty file with ".foam" extension and than run paraview --data=file.foam.

From this my very simple tip is to create an empty file in the folder of openfoam's case with the extension ".foam", the name in not important (e.g. foo.foam; pippo.foam) and than open this file with paraview.
Paraview can read reconstructed case and decomposed case. This last thing is very important!!

hz283 April 12, 2013 11:10

Aha, Your suggestions work well! Thank you so much!

Quote:

Originally Posted by nanes (Post 420154)
ParaFoam is a bash script, the main operations that does paraFoam is to create an empty file with ".foam" extension and than run paraview --data=file.foam.

From this my very simple tip is to create an empty file in the folder of openfoam's case with the extension ".foam", the name in not important (e.g. foo.foam; pippo.foam) and than open this file with paraview.
Paraview can read reconstructed case and decomposed case. This last thing is very important!!



All times are GMT -4. The time now is 11:30.