mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Feature overlapping zones
This commit is contained in:
committed by
Andrew Heather
parent
28e212030d
commit
3973cf7a83
@ -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;
|
||||
|
||||
@ -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
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user