CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

multiRegion Case with separated cell zones into a Single region

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 6, 2023, 01:58
Talking multiRegion Case with separated cell zones into a Single region
  #1
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5
dasith0001 is on a distinguished road
Hi Foamers,

this is an issue with topoSet for multiRegion case.

Both topoSet and splitMesh are happy if I define the toposet as follows

Code:
    // chamberBtm
    {
        name    chamberBtmCellSet;
        type    cellSet;
        action  new;
        source  cylinderToCell;
    	p1      (0 0 0.523507); //top center
    	p2      (0 0 0.683507); // bottom center
    	radius   0.0290; //0.0295;
        innerRadius 0.0;
    }
	
	{
        name    chamberBtmCellSet;
        type    cellSet;
        action  add;
        source  cylinderToCell;
    	p1      (0 0 0.748507); //top center
    	p2      (0 0 0.683507); // bottom center
    	radius   0.0290; //0.122
        innerRadius 0.0165;
    }
  
    {
        name    chamberBtm;
        type    cellZoneSet;
        action  new;
        source  setToCellZone;
        set     chamberBtmCellSet;
    }
here, the 'action add; cellSet is physically connected to the initial cellZone. This works perfectly fine.

But when I want to have two separate zones categorised as the same region as follows;

Code:
    // chamberBtm
    {
        name    chamberBtmCellSet;
        type    cellSet;
        action  new;
        source  cylinderToCell;
    	p1      (0 0 0.523507); //top center
    	p2      (0 0 0.683507); // bottom center
    	radius   0.0290; //0.0295;
        innerRadius 0.0;
    }
	
	{
        name    chamberBtmCellSet;
        type    cellSet;
        action  add;
        source  cylinderToCell;
    	p1      (0 0 0.748507); //top center
    	p2      (0 0 0.70000); // bottom center
    	radius   0.0290; //0.122
        innerRadius 0.0165;
    }
  
    {
        name    chamberBtm;
        type    cellZoneSet;
        action  new;
        source  setToCellZone;
        set     chamberBtmCellSet;
    }
the latter region does not get added into the 'chamberBtm' region.

I cannot understand why two cellZones needs to be in contact to be defined into a single region. Is it because of any boundary conditions ?

Is there way to resolve the issue within the topoSet?
Thank you
dasith0001 is offline   Reply With Quote

Old   September 6, 2023, 02:22
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
A topoSetSource must act on a connected region.

You don't have to use exactly the same phraseology that foam does, but try not to contradict it. You do not have (at least as shown here) two zones in one region, you have two cell sets that you are trying to assign to one zone.

Just create two cellSets and put them to the same cellZoneSet
LuckyTran is offline   Reply With Quote

Old   September 6, 2023, 20:20
Default
  #3
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5
dasith0001 is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
A topoSetSource must act on a connected region.

You don't have to use exactly the same phraseology that foam does, but try not to contradict it. You do not have (at least as shown here) two zones in one region, you have two cell sets that you are trying to assign to one zone.

Just create two cellSets and put them to the same cellZoneSet
apologies yes I am trying to assign two cellSets into a one 'zone'

But sorry I do not understand your answer, ''A topoSetSource must act on a connected region.''
Does this mean it is not possible ?

Anyways, following this,
''Just create two cellSets and put them to the same cellZoneSet''
I created two cellSets and tried assign them into cellZoneSet

topoSet stopped complaining that I am trying to assigned a cellSet to a cellZone

Thanks
dasith0001 is offline   Reply With Quote

Old   September 6, 2023, 23:08
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
source cylinderToCell; calls the template topoSetSource

One topoSetSource, named chamberBtmCellSet in your case, can only act on a connected group of cells. That means no disjoint cells per source.

You tried to add a disconnected group of cells to the same source (again chamberBtmCellSet) and hence it is a disallowed operation.

You can create multiple cellSets (chamberBtmCellSet.1 and chamberBtmCellSet.2) which are disconnected and then add them to one zone, that is allowed.

These rules are exactly to prevent people from doing what you attempted to do.
LuckyTran is offline   Reply With Quote

Reply

Tags
multiregion, toposet


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
Problem with chtMultiregionFoam radiation boundary condition baran_foam OpenFOAM Running, Solving & CFD 10 December 17, 2019 18:36
Problem simulating the temperature rise in a composite material (chtMultiRegionFoam) Adam_K OpenFOAM Running, Solving & CFD 2 March 27, 2019 07:51
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 15:53
FvMatrix coefficients shrina OpenFOAM Running, Solving & CFD 10 October 3, 2013 15:38
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 13:24


All times are GMT -4. The time now is 13:41.