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

[Gmsh] gmshtoFoam - boundary conditions

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 7, 2011, 16:55
Default gmshtoFoam - boundary conditions
  #1
Member
 
Ammar Tareen
Join Date: Jan 2011
Location: Boston University
Posts: 61
Rep Power: 15
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, 16:09
Default
  #2
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16
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, 11:56
Default
  #3
Member
 
Ammar Tareen
Join Date: Jan 2011
Location: Boston University
Posts: 61
Rep Power: 15
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 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
CGNS Boundary conditions using SU2 denzell SU2 3 July 9, 2018 06:58
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 06:15
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 05:39
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00


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