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

How does patchGroups work in OpenFOAM-5.x?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 11, 2019, 03:21
Default How does patchGroups work in OpenFOAM-5.x?
  #1
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 19
sita is on a distinguished road
Hi all,


Recently I learnt about the existence of the patchGroups utility in OpenFOAM, which seems really useful. I'm struggling with the implementation though. Firstly, I seem to be unable to find anything about patchGroups in the documentation of OpenFOAM-5.x (I'm currently using OpenFOAM-5.x on a Scientific Linux cluster), but I noticed that e.g. the motorBike tutorial still uses patchGroups, so apparently the utility still exists.

My question pertains to a mesh that I imported from Numeca's Hexpress. Hexpress provides the option to export a mesh to OpenFOAM format, which seems to work fairly well, as far as I can tell now. My mesh contains a large body, which is divided into sub-parts. According to constant/polymesh/boundary, all these patches are of the type wall, just like they're supposed to be. However, when I view the mesh in ParaView, those patches turn up as type patch, which may be (part of) the cause of my problem.

The online documentation for OpenFOAM 2.2.0 says "All constraint boundary types, e.g. empty, processor, etc. are automatically placed into a patch group of the same name."

So I would expect all patches of type wall to be grouped into a group called 'wall' or something, but this doesn't seem to be the case.

Is this behaviour (automatically placing patches of the same constraint boundary type into one group) still present in OpenFOAM-5.x?

If not, or if something about my imported mesh somehow disables this behaviour, is there a way to create such groups? I read about using regular expressions for patch naming, but I'm not sure how to apply that to an imported mesh. Could I use regular expressions in my initial condition files for example?

Many thanks!
Sita
sita is offline   Reply With Quote

Old   April 11, 2019, 04:57
Default
  #2
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 19
sita is on a distinguished road
Sorry, in the meantime I've figured out that it's indeed possible to use regular expressions in the initial conditions files, so that question is answered now - I can manually group all my wall patches.


Still, it would be really convenient if OpenFOAM did this automatically, so my other question remains open.
sita is offline   Reply With Quote

Old   April 15, 2019, 04:43
Default
  #3
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 662
Rep Power: 33
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi Sita,

Usually when importing a mesh from a third party application we first run renumberMesh. This typically also makes these patchGroups. I think these patchGroups are in all latest versions of the foundation and ESI forks.

Regards,
Tom

Last edited by tomf; April 15, 2019 at 04:44. Reason: clarity
tomf is offline   Reply With Quote

Old   April 15, 2019, 13:39
Default
  #4
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 19
sita is on a distinguished road
Hi Tom,

Ah perfect, I'll give that a try, thanks!

Sita
sita 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
Getting Started with OpenFOAM wyldckat OpenFOAM 26 June 21, 2024 06:54
OpenFOAM 5.x: Two conversation issues bastil OpenFOAM Running, Solving & CFD 5 August 9, 2017 12:56
[OpenFOAM.org] A Mac OS X of23x Development Environment Using Docker rt08 OpenFOAM Installation 1 February 28, 2016 19:00
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
Do any of the GPU accelerators for OpenFOAM actually work for real cases? kyle OpenFOAM 2 January 28, 2014 05:05


All times are GMT -4. The time now is 09:42.