|
[Sponsors] |
April 7, 2011, 16:55 |
gmshtoFoam - boundary conditions
|
#1 |
Member
Ammar Tareen
Join Date: Jan 2011
Location: Boston University
Posts: 61
Rep Power: 15 |
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. |
|
April 15, 2011, 16:09 |
|
#2 |
Senior Member
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16 |
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 |
|
April 20, 2011, 11:56 |
|
#3 |
Member
Ammar Tareen
Join Date: Jan 2011
Location: Boston University
Posts: 61
Rep Power: 15 |
Thank you, I made it work. I just had to define groups, it was a little annoying but it works fine.
|
|
|
|
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 |