CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   .msh to Foam (

chitharenjan January 24, 2011 06:48

.msh to Foam

I am new to OpenFoam. Please help me to convert .msh to Foam. In which directory I should keep the .msh file ? Which are the commands ?

Waiting for your reply
Thanks in advance...

kurne January 24, 2011 07:25

Hello chitharenjan
I will explain you in detail.I want to covert fluent.msh file into OpenFOAM format.Make a directory of any name say Conversion.Now in Conversion directory copy the fluent.msh file.After this make three directories in Conversion name of system,constant and o as in all OpenFoam case files.After this copy the ControlDic,fvSchemes and fvSolutions from any tutorials file.Now go into Conversion directory by terminal and type fluentMeshToFoam fluent.msh.After this directly type paraFoam and you will see the mesh by using Wire frame in display panel.
Still if you face any problem then we will see.

chitharenjan January 27, 2011 01:53

Thanks Kurne,

But while entering paraFoam, instead of the wireframe model I am getting this message

budha@budha-desktop:~/OpenFOAM/budha-1.7.1/run/tutorials/heatTransfer/buoyantSimpleFoam/hotRoom/Ashok$ paraFoam
created temporary 'Ashok.OpenFOAM'
/opt/openfoam171/bin/paraFoam: 142: paraview: not found

Please help

kurne January 27, 2011 04:57

Run paraFoam for other tutorials example if not then Check the cmake has installed properly.

flowris January 27, 2011 15:37

It is even not necessary to use paraFoam, as long as you can open Paraview. After the simulation you run the command
touch myCase.foam
and you open this file in Paraview.

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