CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

gmshtoFoam - boundary conditions

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 7, 2011, 15:55
Default gmshtoFoam - boundary conditions
  #1
Member
 
Ammar Tareen
Join Date: Jan 2011
Location: Boston University
Posts: 61
Rep Power: 6
atareen64 is on a distinguished road
Dear all,

I have a geometry in solidworks that I had to import in openfoam, so here's what I did:

1) I imported the geometry in salome and meshed it.
2) Exported to gmsh in .med format and saved it in .msh format.
3) imported the .msh file in openfoam using 'gmshToFoam'

Now that I have this mesh in OF, I need to apply boundary conditions on my geometry, e.g. inlet, outlet etc, but I need to apply them only on certain boundary faces.

gmshToFoam created just one big patch for me, called patch0, which was basically the entire mesh. So I used 'autoPatch' to break up the mesh into different pieces so I could apply B-C's to my system. Unfortunately, these patches are volumes/3D boxes, so when I apply a BC to a patch, the entire volume has that boundary condition including all the faces.

My question is this: How can I just select one fact inside of these 3D volume patches and apply a boundary condition there?

Please, please help. Any pointers are welcome!

Thanks a lot.
Ammar.
atareen64 is offline   Reply With Quote

Old   April 15, 2011, 15:09
Default
  #2
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 137
Rep Power: 7
mgdenno is on a distinguished road
I don't know for sure, but you may need to define a Physical Surface.

Check this out:

http://openfoamwiki.net/index.php/2D...ial_using_GMSH
mgdenno is offline   Reply With Quote

Old   April 20, 2011, 10:56
Default
  #3
Member
 
Ammar Tareen
Join Date: Jan 2011
Location: Boston University
Posts: 61
Rep Power: 6
atareen64 is on a distinguished road
Thank you, I made it work. I just had to define groups, it was a little annoying but it works fine.
atareen64 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
symmetry boundary conditions in cfx lost.identity CFX 41 May 22, 2013 07:21
Impinging Jet Boundary Conditions Anindya Main CFD Forum 24 January 11, 2012 14:40
boundary conditions and mesh exporting vaina74 Open Source Meshers: Gmsh, Netgen, CGNS, ... 2 May 27, 2010 09:38
Pressure boundary conditions Lionel S. Main CFD Forum 1 August 24, 2007 18:03
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15


All times are GMT -4. The time now is 19:43.