|
[Sponsors] |
multiRegion Case with separated cell zones into a Single region |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 6, 2023, 01:58 |
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 |
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; } 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; } 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 |
|
September 6, 2023, 02:22 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
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 |
|
September 6, 2023, 20:20 |
|
#3 | |
Senior Member
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5 |
Quote:
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 |
||
September 6, 2023, 23:08 |
|
#4 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
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. |
|
Tags |
multiregion, toposet |
|
|
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 |