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

[mesh manipulation] splitMeshRegions

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By GerhardHolzinger

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 14, 2021, 16:55
Default splitMeshRegions
  #1
Member
 
Gabriel
Join Date: Aug 2021
Posts: 37
Rep Power: 4
daylen is on a distinguished road
Hi, im learning the cooling sphere tutorial using chtMultiRegionFoam, the Allmesh contains the following line:


runApplication splitMeshRegions -cellZones -defaultRegionName fluid -overwrite


I donīt understand the above line, what is -defaultRegionName and fluid?
daylen is offline   Reply With Quote

Old   December 15, 2021, 02:30
Default
  #2
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 339
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
Quote:
Originally Posted by ifrit54 View Post
Hi, im learning the cooling sphere tutorial using chtMultiRegionFoam, the Allmesh contains the following line:


runApplication splitMeshRegions -cellZones -defaultRegionName fluid -overwrite


I donīt understand the above line, what is -defaultRegionName and fluid?

Imagine building a CHT-case from the base mesh shown in the attached image. The base mesh is a simple cylinder which represents the fluid region within a pipe.
Now you extrude the cylinder walls to create a layer of cells which represents the pipe's wall.
Finally, you run splitMeshRegion to separate the two domains.


Why the need for a default region name?

extrudeMesh automatically creates a set (or zone) called addedCells, which represents the pipe's wall. The remaining cells of the fluid region, i.e. the cells of the base mesh you started with, aren't part of any set or zone. So, splitMeshRegion will name the newly created mesh region, created from cells that are part of no set or zone, simply region0.

In such a case, you can use the command line argument defaultRegionName to provide a more telling name.
That's all
Attached Images
File Type: png baseMesh.png (142.9 KB, 22 views)
Yann and daylen like this.
GerhardHolzinger is offline   Reply With Quote

Old   December 16, 2021, 18:29
Default
  #3
Member
 
Gabriel
Join Date: Aug 2021
Posts: 37
Rep Power: 4
daylen is on a distinguished road
thank you for your reply now i understand
daylen 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
[mesh manipulation] splitMeshRegions Error! aezid OpenFOAM Meshing & Mesh Conversion 0 August 13, 2020 04:33
splitMeshRegions 1D Wirman OpenFOAM Running, Solving & CFD 4 May 5, 2020 16:05
Issues with splitMeshRegions! vabishek OpenFOAM Pre-Processing 6 October 25, 2018 13:16
splitMeshRegions not working porperly fracasce OpenFOAM Pre-Processing 3 June 5, 2018 03:30
splitMeshRegions doesn't find my regions. GPesch OpenFOAM Pre-Processing 2 November 14, 2013 05:20


All times are GMT -4. The time now is 23:45.