CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Mesh Utilities

GMSH and OpenFOAM

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 6, 2008, 10:04
Default Hi, Well... are you running ~
  #41
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 515
Blog Entries: 1
Rep Power: 10
7islands is on a distinguished road
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
7islands is offline   Reply With Quote

Old   February 6, 2008, 10:34
Default Yes, I'm recompiling the whole
  #42
New Member
 
Marzio Lettich
Join Date: Mar 2009
Posts: 14
Rep Power: 7
marziolettich is on a distinguished road
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 is offline   Reply With Quote

Old   February 6, 2008, 12:38
Default Well, I understood were I was
  #43
New Member
 
Marzio Lettich
Join Date: Mar 2009
Posts: 14
Rep Power: 7
marziolettich is on a distinguished road
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
marziolettich is offline   Reply With Quote

Old   September 4, 2008, 05:06
Default HI I am new to gmsh and am
  #44
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 7
mgz1985 is on a distinguished road
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 is offline   Reply With Quote

Old   September 4, 2008, 05:09
Default http://www.cfd-online.com/Ope
  #45
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 7
mgz1985 is on a distinguished road
new1.geo

only the geometry text file can be attached here. thanks a lot
mgz1985 is offline   Reply With Quote

Reply

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
Internal faces from gmsh how to create patches in OpenFoam podallaire Open Source Meshers: Gmsh, Netgen, CGNS, ... 27 April 25, 2012 21:24
gmsh jojo Main CFD Forum 5 August 31, 2009 23:11
ANSYS GMSH OpenFOAM gtg627e Open Source Meshers: Gmsh, Netgen, CGNS, ... 3 December 21, 2007 03:41
Problem with Gmsh nishant_hull Open Source Meshers: Gmsh, Netgen, CGNS, ... 17 December 7, 2007 01:33
Gmsh with physicals Rasmus Gjesing (Gjesing) Open Source Meshers: Gmsh, Netgen, CGNS, ... 9 February 2, 2006 14:36


All times are GMT -4. The time now is 17:05.