Feature overlapping zones

This commit is contained in:
Mattijs Janssens
2024-03-13 14:44:13 +00:00
committed by Andrew Heather
parent 28e212030d
commit 3973cf7a83
8 changed files with 1164 additions and 187 deletions

View File

@ -42,6 +42,29 @@ filter1
}
heater1
{
// Add some additional water inside a cellZone that is nested inside
// the filter. This is just to demonstrate overlapping cellZones
type scalarSemiImplicitSource;
active yes;
timeStart 0.0;
duration 0.4;
volumeMode specific;
selectionMode cellZone;
cellZone heater;
sources
{
rho (1e-2 0); // kg/s/m^3
H2O (1e-2 0); // kg/s/m^3
}
}
massSource1
{
type scalarSemiImplicitSource;

View File

@ -32,7 +32,6 @@ actions
set filterCells;
}
{
name leftFluidCells;
type cellSet;
@ -114,6 +113,41 @@ actions
source setToFaceZone;
faceSet cycRightFaces; // name of faceSet
}
// Additional zones inside filter
// heater inside filter
{
name heaterCells;
type cellSet;
action new;
source boxToCell;
box (1.7 -10 -10) (1.8 10 10);
}
// Note: could be done directly using boxToCell
{
name heater;
type cellZoneSet;
action new;
source setToCellZone;
set heaterCells;
}
{
name heaterOutsideFaces;
type faceSet;
action new;
source cellToFace;
set heaterCells;
option outside;
}
{
name heaterOutside;
type faceZoneSet;
action new;
source setToFaceZone;
faceSet heaterOutsideFaces; // name of faceSet
}
);