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

[Gmsh] Boundary Conditions

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2008, 07:02
Default Boundary Conditions
  #1
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Hello World.

I have created a 3D geometry with gmsh and got a nice mesh.

Now, gmshToFoam worked fine and I have the complete set of polyMesh files.

How can I specify boundary and initial conditions for my desired fields at this point?

This problem must be related to OpenFOAM since gmsh is not able to set conditions like this.
(The developers call gmsh "solver-agnostic")

Thanks a lot.
sega
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   September 23, 2008, 10:32
Default Hi Sebastian, according to
  #2
New Member
 
Andrea M.A. Barbera
Join Date: Mar 2009
Location: Turin, Italy
Posts: 7
Rep Power: 17
andrea_barbera is on a distinguished road
Hi Sebastian,

according to my experience, in the GMSH model you should create some physical surfaces (that will become your OF patches) and one physical volume (the domain). You should run gmsh with this settings without the "save all" option. If you use this options patches will not be saved.

At this point you should convert the mesh using "gmsh2toFoam", that you should find in the OF Wiki. This utility preserves patches names but must be compiled. From what I know this utility has some problems with OF 1.5 version: I use my old 1.4.1 version to convert meshes.

Regards

Andrea
andrea_barbera is offline   Reply With Quote

Old   September 23, 2008, 12:40
Default Ok, now I see how this is goin
  #3
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Ok, now I see how this is going to work.

I tried to set up a simple cavity case with a gmsh mesh. Everything is working into I want to start the calculation.
(Well, actually the orientation of the faces got messed up on the way, but thats not the problem).

When starting the interFoam solver there is this familiar error:

--> FOAM FATAL ERROR : This mesh contains patches of type empty but is not 1D or 2D
by virtue of the fact that the number of faces of this
empty patch is not divisible by the number of cells.


As the debugging was easy with blockMesh and structured hex-meshes, I don't know what to do on this unstructured mesh.

I hope you have some ideas for me?

Maybe a look at my case helps:
http://therealsega.th.funpic.de/open...mshMesh.tar.gz

Thanks so far.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   November 17, 2008, 16:59
Default Hi Sebastian, you probably
  #4
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
Hi Sebastian,

you probably figured that out by now but if your mesh is 3D you cannot specify any of the boundaries as type "empty".

cheers,

-Louis
louisgag is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 09:44
GETVAR Error in Multiband Monte Carlo Radiation Simulation with Directional Source silvan CFX 3 June 16, 2014 10:49
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28


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