|
[Sponsors] |
February 3, 2010, 06:40 |
How to define patches after gmshToFoam ?
|
#1 |
New Member
Sébastien
Join Date: Jan 2010
Posts: 2
Rep Power: 0 |
Hi,
I made a 3D model in gmsh and then export it with gmshToFoam. In gmsh I have defined the tags of my boundary with "Physical faces", but these tags seems to go away after the use of gmshToFoam. So I have to define my physical boundary as patches in the boundary file of openfoam -> I need to know the total number of face and the first face of each of my boundary. Is there a simple way these datas in paraFoam ? Maybe a way to select a boundary with the mouse and get the datas ? Or an ohter way to define my boundaries ? Thanks a lot for your help, Best regards |
|
February 8, 2010, 07:04 |
|
#2 |
New Member
Davide Fransos
Join Date: Jun 2009
Location: Torino, Italy
Posts: 4
Rep Power: 17 |
I usually define boundaries as
Physical Surface("name") = {number}; in gmsh and it works fine with gmshToFoam. Could you post your .geo file? |
|
July 5, 2011, 09:32 |
|
#3 |
New Member
Richard Moser
Join Date: Aug 2009
Posts: 29
Rep Power: 17 |
I have exactly the same problem with the surfaces not being translated into boundaries after using gmshToFoam. I have attached an example that I found on the forums which worked for other people, but not for me (using OpenFOAM 1.7.1 and gmsh 2.5.0). Any ideas?
|
|
July 5, 2011, 10:36 |
|
#4 |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
Hello Davide and Richard, same problem here. I have used gmsh for about a year.
I reinstalled my OS recently (opensuse 11.4 64 bit) I could not find out how to get gmsh 2.5 and OF-1.6-ext working together. I solved the problem downgrading to gmsh 2.4.2. It works perfectly now. I hope this can help you. Regards Pablo |
|
July 5, 2011, 16:43 |
|
#5 |
Member
Kevin
Join Date: May 2011
Posts: 33
Rep Power: 15 |
Gmsh 2.5 with OpenFOAM 1.7.1 work for me. Also works with OpenFOAM 2.0. Although I haven't had this exact issue, I have had issues in the past and found that the wrong settings in gmsh can mess everything up. Here's the Mesh options that work for me, might wanna try them out: http://imgur.com/a/X2Slw
|
|
July 7, 2011, 03:27 |
|
#6 |
New Member
Richard Moser
Join Date: Aug 2009
Posts: 29
Rep Power: 17 |
Many thanks Pablo. Using the latest nightly build of gmsh (2.5.1) sorted the problem for me, and all the patches now come through to OpenFOAM.
|
|
July 12, 2011, 18:46 |
|
#7 |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
Hello Richard, sorry for the late reply.
I downloaded the nightly source code yesterday and I still could not get my patches in openfoam. Did you download the source code or the precompiled version? Using this source code I solved a problem related with opencascade (a missing header) but I still have the patches related issue. I tried the msh file in other openfoam installation and the problem persist. Any ideas? Regards Pablo |
|
July 13, 2011, 03:38 |
|
#8 |
New Member
Richard Moser
Join Date: Aug 2009
Posts: 29
Rep Power: 17 |
I was using the pre-compiled version under Windows (haven't yet tried it under Linux).
If you attach your .geo file I could have a go and see if it works with my system, if you like. Richard |
|
July 13, 2011, 10:25 |
|
#9 |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
Hello Richard,
You can follow this link to download the files p, li { white-space: pre-wrap; } https://spideroak.com/browse/share/C...o_Pablo/Public It is a very simple geometry. A L shaped domain in 2D. There are 3 files, the geo file, and 2 msh files, generated with gmsh 2.4.2 and 2.5.1. The one generated with 2.5.1 version does not generate the patches from the physical surfaces. Thank you for your help Pablo |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HELP----Surface Reaction UDF | Ashi | Fluent UDF and Scheme Programming | 1 | May 19, 2020 22:13 |
Missing math.h header | Travis | FLUENT | 4 | January 15, 2009 12:48 |
REAL GAS UDF | brian | FLUENT | 6 | September 11, 2006 09:23 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 13:24 |
UDF FOR UNSTEADY TIME STEP | mayur | FLUENT | 3 | August 9, 2006 11:19 |