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

How to define patches after gmshToFoam ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 3, 2010, 06:40
Default How to define patches after gmshToFoam ?
  #1
New Member
 
Sébastien
Join Date: Jan 2010
Posts: 2
Rep Power: 0
seb_j is on a distinguished road
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
seb_j is offline   Reply With Quote

Old   February 8, 2010, 07:04
Default
  #2
New Member
 
Davide Fransos
Join Date: Jun 2009
Location: Torino, Italy
Posts: 4
Rep Power: 17
dfransos is on a distinguished road
I usually define boundaries as

Physical Surface("name") = {number};

in gmsh and it works fine with gmshToFoam.
Could you post your .geo file?
dfransos is offline   Reply With Quote

Old   July 5, 2011, 09:32
Default
  #3
New Member
 
Richard Moser
Join Date: Aug 2009
Posts: 29
Rep Power: 17
moser_r is on a distinguished road
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?
Attached Files
File Type: txt test.geo.txt (601 Bytes, 28 views)
moser_r is offline   Reply With Quote

Old   July 5, 2011, 10:36
Default
  #4
Member
 
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17
pcaron is on a distinguished road
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
pcaron is offline   Reply With Quote

Old   July 5, 2011, 16:43
Default
  #5
Member
 
Kevin
Join Date: May 2011
Posts: 33
Rep Power: 15
murrdpirate is on a distinguished road
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
murrdpirate is offline   Reply With Quote

Old   July 7, 2011, 03:27
Default
  #6
New Member
 
Richard Moser
Join Date: Aug 2009
Posts: 29
Rep Power: 17
moser_r is on a distinguished road
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.
moser_r is offline   Reply With Quote

Old   July 12, 2011, 18:46
Default
  #7
Member
 
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17
pcaron is on a distinguished road
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
pcaron is offline   Reply With Quote

Old   July 13, 2011, 03:38
Default
  #8
New Member
 
Richard Moser
Join Date: Aug 2009
Posts: 29
Rep Power: 17
moser_r is on a distinguished road
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
moser_r is offline   Reply With Quote

Old   July 13, 2011, 10:25
Default
  #9
Member
 
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17
pcaron is on a distinguished road
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
pcaron is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 16:10.