CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Free mesh program!! (http://www.cfd-online.com/Forums/openfoam/78032-free-mesh-program.html)

bruxellois4 July 10, 2010 08:19

Free mesh program!!
 
I need a free mesh program to use with openFOAM!!

S.O has an idea :confused:

thanks

bigphil July 10, 2010 11:15

Hi,


Check out the following:

blockMesh - built-in OpenFOAM utility for simple geometry
polyDualMesh - built-in OpenFOAM utility for simple geometry for converting tet to poly but requires an initial mesh
snappyHexMesh - built-in OpenFOAM utility and described in User Guide
Gmsh - http://geuz.org/gmsh/ - tetrahedral meshing software
IA-FEMesh - http://www.ccad.uiowa.edu/mimx/IA-FEMesh/ - hex meshing for complex geometries
enGrid - http://www.ohloh.net/p/engrid - nice for producing good boundary layers
Calculix - http://www.calculix.de/

Hmmnn there are probably a few other good ones too, it really depends on what you are looking for i.e. what type of geometry?


Hope this helps,
Philip

elvis July 10, 2010 12:44

more meshing
 
do not to forget salome http://www.salome-platform.org/
http://www.caelinux.org/wiki/index.php/Doc:CAETutorials
better
http://www.caelinux.org/wiki/index.p...ELinux_2007.29

or discretizer
http://www.discretizer.org/
this program is specially designed for use with OpenFOAM

bruxellois4 July 10, 2010 15:05

Hi!!

thanks a lot!!

I have to simulate the exhaust gas from a muzzle of a gun, according to you which is the better?

This work was done with fluent so i have the mesh files (*.msh) done at the gambit to fluent format, i tried to convert them but that doesn't work: i receive this message :
Build : 1.7.0-279cc8e8233b
Exec : fluentMeshToFoam calibre 12_7.msh
Date : Jul 10 2010
Time : 20:47:55
Host : moumen-laptop
PID : 2005
Case : /home/moumen/tfe
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time



--> FOAM FATAL IO ERROR:
cannot open file

file: /home/moumen/tfe/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 61.

FOAM exiting
:mad: Any idea plz?

wyldckat July 10, 2010 17:22

Greetings Abdel,
Quote:

Originally Posted by bruxellois4 (Post 266738)
--> FOAM FATAL IO ERROR:
cannot open file

file: /home/moumen/tfe/system/controlDict at line 0.

It seems that you are trying to convert the mesh outside of an OpenFOAM case! And since you are running a conversion tool *ToFoam, you need to create a case structure (i.e., the files and folders) compliant with OpenFOAM's needs ;)

Best regards,
Bruno

bruxellois4 July 10, 2010 21:06

Quote:

Originally Posted by wyldckat (Post 266741)
Greetings Abdel,

It seems that you are trying to convert the mesh outside of an OpenFOAM case! And since you are running a conversion tool *ToFoam, you need to create a case structure (i.e., the files and folders) compliant with OpenFOAM's needs ;)

Best regards,
Bruno

I tried to convert the mesh using the prism case (sonic foam) i've put my file *.msh in constant folder (i keep the others folders w/o change), i'v received the same error message, :(:(:(

Best regards

wyldckat July 11, 2010 06:17

Hmmm... Then my suggestion is to try this tutorial case instead:
Code:

tutorials/incompressible/icoFoam/elbow
In the icoFoam folder you have an Allrun script, and near its end are the commands for running the elbow case.

Best regards,
Bruno

bruxellois4 July 11, 2010 06:38

Greetings Bruno!!

It works but i didn't find the blokMeshdict i have only neighbour, faces, facesZones, owner, point ans pontZones,
so i can't run ''blockMesh''

Thanks a lot for your help!

wyldckat July 11, 2010 06:47

Wait, what? blockMesh?
The elbow case doesn't use blockMesh! The code lines in"tutorials/incompressible/icoFoam/Allrun"I was talking about are these:
Code:

runFluentMeshToFoam elbow elbow/elbow.msh
(cd elbow && runApplication $application)
(cd elbow && runApplication foamMeshToFluent)
(cd elbow && runApplication foamDataToFluent)

Oh, and runFluentMeshToFoam is actually this (also inside Allrun):
Code:

runFluentMeshToFoam ()
{
    echo "fluentMeshToFoam: converting mesh $2"
    fluentMeshToFoam $2 -case $1 > $1/log.fluentMeshToFoam 2>&1
}

Best regards,
Bruno

bruxellois4 July 11, 2010 07:00

I'm sorry but now i'm not understanding you,
what they mean this codes, i can't execute them there are lot of error,
How can I visualize my mesh after conversion, is that possible to do that w/o excute blockMesh

I'm sorry if my questions seems to be poor :(

marcbest July 12, 2010 05:38

hi abdel,

there are no poor questions...
you can only use blockMesh, if you wrote your mesh-data by hand in the blockMeshDict-file (defining points and patches etc.)

but if you're converting your mesh there can't be a blockMeshDict file. to see the mesh you must execute (in the case directory)

foamToVTK

and then you can run paraView and File/Open the "VTK" folder and selct the ....vtk file then "OK" and at "Properties" click "Apply", after this you must select "Wireframe" instead of "Surface". now you should see the mesh

bruxellois4 July 12, 2010 06:24

Hi marcbest!

Thanks a lot for your response.
I tried to see my mesh w/o execute foamToVTK, is tha true?

thanks

Best regards,

marcbest July 12, 2010 07:55

ok i'm working with OF1.5 at the moment and there you have to use foamToVTK, but in OF1.6 and 1.7 you don't have to convert the mesh into VTK-format. you only have to run paraFoam that's correct.
regards

bruxellois4 July 12, 2010 09:04

OK, i'm working with openFOAM 1.7 so i didn't find any difference between using paraFoam directly and VTK-format.

My original mesh (*.msh) was axysymetric, it think that is not so yet.I think that i have to chek that and add a wedge patch, is that possible?

Is there a tutorial case with axysymetrie?

Best regards.


All times are GMT -4. The time now is 14:02.