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

[Technical] Question on changing default mesh regions names

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By AtoHM

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 29, 2022, 04:05
Default
  #8
Senior Member
 
M
Join Date: Dec 2017
Posts: 645
Rep Power: 12
AtoHM is on a distinguished road
Ok, I found a way to do it using topoSet without supplying a location.


As I pointed out, mergeMesh carries along the association of cells to the regions (regionToCell file). After using mergeMesh, one can use checkMesh which writes out polyMesh/sets/region* files.

Then, since I know in the script which sequence I used for merging (I know which regions corresponds to which mesh or body), I can produce automatically a topoSetDict which creates cellZones with my desired names:


Code:
    {
        action  new;
        type    cellZoneSet;
        name    Tank;
        source  setToCellZone;
        set     region0;
    }
Thats basically what I was looking for, although slightly more complicated.
Yann and DCHEVRON like this.
AtoHM is offline   Reply With Quote

 


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] How to write cellSet for different regions in constant/polyMesh/sets Struggle_Achieve OpenFOAM Meshing & Mesh Conversion 3 June 17, 2019 09:29
Too diffusive result on Delaunay type mesh for pipe AlmostSurelyRob OpenFOAM Running, Solving & CFD 7 October 8, 2018 13:34
Gambit problems Althea FLUENT 22 January 4, 2017 03:19
[snappyHexMesh] Snappyhex mesh: poor inlet mesh Swagga5aur OpenFOAM Meshing & Mesh Conversion 1 December 3, 2016 16:59
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 09:38


All times are GMT -4. The time now is 12:03.