CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Gmsh] GMSH and OpenFOAM (https://www.cfd-online.com/Forums/openfoam-meshing/61532-gmsh-openfoam.html)

7islands February 6, 2008 10:04

Hi, Well... are you running ~
 
Hi,
Well... are you running ~/OpenFOAM/OpenFOAM-1.4/Allwmake by any chance...? What I meant was to run the Allwmake script in the gmshFoam package (gmshFoam-20070905/Allwmake)... Maybe my words should have been clearer. Building the gmshFoam package should typically finish within a few minutes (unless you're building the patched version of Gmsh-2.0.8).

Aside that indeed, if you look into the gmshFoam-20070905/Allwmake script you'll notice it's just running wmake for all the utilities and the libraries in the package. With the wmake runs, gmsh2ToFoam and its dependent libraries goes into $FOAM_USER_APPBIN and $FOAM_USER_LIBBIN so that they are recognized by OpenFOAM system as soon as they are installed. Thus you shouldn't have to do any additional setup, and of course, you don't have to recompile the whole OpenFOAM system every time you build your own customized solver.

Takuya

marziolettich February 6, 2008 10:34

Yes, I'm recompiling the whole
 
Yes, I'm recompiling the whole OpenFOAM... No problem, anyway: sometime you have to do something stupid to learn not to do it again :-)
Well... since I downloaded just gmsh2ToFoam, I think I did the right thing the first time (use wmake in the gmsh2ToFoam directory). It built the .exe in the right directory BUT OpenFOAM didn't recognize it. The application itself works if I launch it giving the whole path (better: it starts, I didn't actually try with a .msh file and a OF case). However, I'm glad to learn this is not the standard behaviour but only my system's fault.
Thanks,
Marzio

marziolettich February 6, 2008 12:38

Well, I understood were I was
 
Well, I understood were I was wrong: the building with wmake was correct, but I hadn't re-source .cshrc, so that was the reson why the new application hadn't been recognized by OF. The application catches correctly the different patches.
Thanks to all (especially Takuya) for the help you gave me.
Greetings,
Marzio

mgz1985 September 4, 2008 05:06

HI I am new to gmsh and am
 
HI

I am new to gmsh and am trying to mesh a small cube in a finite volume. i am able to make this mesh in gmsh but when i am trying to convert to openfoam i get the following warning

--> FOAM Warning : Not using gmsh face 3(15181 1020 1021) since zero vertex is not on boundary of polyMesh
--> FOAM Warning :
From function gmshToFoam
in file gmshToFoam.C at line 891
Could not match gmsh face 3(15181 1020 1021) to any of the interior or exterior faces that share the same 0th point
--> FOAM Warning : Not using gmsh face 3(1021 15102 15181) since zero vertex is not on boundary of polyMesh
--> FOAM Warning :
From function gmshToFoam
in file gmshToFoam.C at line 891
Could not match gmsh face 3(1021 15102 15181) to any of the interior or exterior faces that share the same 0th point
--> FOAM Warning : Not using gmsh face 3(15966 18925 17848) since zero vertex is not on boundary of polyMesh

I am attaching the text file for my geometry and mesh in gmsh.

In my boundary files in openfoam, i get the face set of only the first patch that is patch0.

Can somebody suggest where is the wrong doing?




mgz1985 September 4, 2008 05:09

http://www.cfd-online.com/Ope
 
http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif new1.geo

only the geometry text file can be attached here. thanks a lot


All times are GMT -4. The time now is 08:22.