CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Gmsh] GMSH and OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2008, 11:04
Default Hi, Well... are you running ~
  #41
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
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, 11:34
Default Yes, I'm recompiling the whole
  #42
New Member
 
Marzio Lettich
Join Date: Mar 2009
Posts: 14
Rep Power: 17
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, 13:38
Default Well, I understood were I was
  #43
New Member
 
Marzio Lettich
Join Date: Mar 2009
Posts: 14
Rep Power: 17
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, 06:06
Default HI I am new to gmsh and am
  #44
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 17
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, 06:09
Default http://www.cfd-online.com/Ope
  #45
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 17
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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Gmsh] Converting gmsh to OpenFoam Friendly OpenFOAM Meshing & Mesh Conversion 3 June 26, 2018 06:46
[Gmsh] gmsh 2.6.0 conversion to OpenFoam 160 rosswin OpenFOAM Meshing & Mesh Conversion 0 March 5, 2013 08:34
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 04:52
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 07:55
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 11:56


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