Skip to content
Snippets Groups Projects
Commit 332c3cc3 authored by Henry's avatar Henry
Browse files

Tutorials: change topoSetDicts to avoid duplicate names

parent 2299f080
Branches
Tags
No related merge requests found
Showing
with 93 additions and 98 deletions
......@@ -19,7 +19,7 @@ actions
(
// Heater
{
name heater;
name heaterCellSet;
type cellSet;
action new;
source boxToCell;
......@@ -29,7 +29,7 @@ actions
}
}
{
name heater;
name heaterCellSet;
type cellSet;
action add;
source boxToCell;
......@@ -45,13 +45,13 @@ actions
source setToCellZone;
sourceInfo
{
set heater; // name of cellSet
set heaterCellSet;
}
}
// leftSolid
{
name leftSolid;
name leftSolidCellSet;
type cellSet;
action new;
source boxToCell;
......@@ -67,13 +67,13 @@ actions
source setToCellZone;
sourceInfo
{
set leftSolid;
set leftSolidCellSet;
}
}
// rightSolid
{
name rightSolid;
name rightSolidCellSet;
type cellSet;
action new;
source boxToCell;
......@@ -89,13 +89,13 @@ actions
source setToCellZone;
sourceInfo
{
set rightSolid;
set rightSolidCellSet;
}
}
// topAir
{
name topAir;
name topAirCellSet;
type cellSet;
action new;
source boxToCell;
......@@ -111,59 +111,54 @@ actions
source setToCellZone;
sourceInfo
{
set topAir;
set topAirCellSet;
}
}
// bottomWater is all the other cells
{
name bottomWater;
type cellZoneSet;
action clear;
}
{
name bottomWater;
name bottomWaterCellSet;
type cellSet;
action add;
action new;
source cellToCell;
sourceInfo
{
set heater;
set heaterCellSet;
}
}
{
name bottomWater;
name bottomWaterCellSet;
type cellSet;
action add;
source cellToCell;
sourceInfo
{
set leftSolid;
set leftSolidCellSet;
}
}
{
name bottomWater;
name bottomWaterCellSet;
type cellSet;
action add;
source cellToCell;
sourceInfo
{
set rightSolid;
set rightSolidCellSet;
}
}
{
name bottomWater;
name bottomWaterCellSet;
type cellSet;
action add;
source cellToCell;
sourceInfo
{
set topAir;
set topAirCellSet;
}
}
{
name bottomWater;
name bottomWaterCellSet;
type cellSet;
action invert;
}
......@@ -174,9 +169,10 @@ actions
source setToCellZone;
sourceInfo
{
set bottomWater;
set bottomWaterCellSet;
}
}
);
// ************************************************************************* //
......@@ -95,7 +95,7 @@ actions
}
{
name rotorBlades;
name rotorBladesFaceSet;
type faceSet;
action add;
source faceToFace;
......@@ -111,7 +111,7 @@ actions
source setToFaceZone;
sourceInfo
{
faceSet rotorBlades;
faceSet rotorBladesFaceSet;
}
}
);
......
......@@ -19,7 +19,7 @@ actions
(
// Heater
{
name heater;
name heaterCellSet;
type cellSet;
action new;
source boxToCell;
......@@ -29,7 +29,7 @@ actions
}
}
{
name heater;
name heaterCellSet;
type cellSet;
action add;
source boxToCell;
......@@ -45,13 +45,13 @@ actions
source setToCellZone;
sourceInfo
{
set heater; // name of cellSet
set heaterCellSet;
}
}
// leftSolid
{
name leftSolid;
name leftSolidCellSet;
type cellSet;
action new;
source boxToCell;
......@@ -67,13 +67,13 @@ actions
source setToCellZone;
sourceInfo
{
set leftSolid;
set leftSolidCellSet;
}
}
// rightSolid
{
name rightSolid;
name rightSolidCellSet;
type cellSet;
action new;
source boxToCell;
......@@ -89,13 +89,13 @@ actions
source setToCellZone;
sourceInfo
{
set rightSolid;
set rightSolidCellSet;
}
}
// topAir
{
name topAir;
name topAirCellSet;
type cellSet;
action new;
source boxToCell;
......@@ -111,59 +111,54 @@ actions
source setToCellZone;
sourceInfo
{
set topAir;
set topAirCellSet;
}
}
// bottomAir is all the other cells
{
name bottomAir;
type cellZoneSet;
action clear;
}
{
name bottomAir;
name bottomAirCellSet;
type cellSet;
action add;
action new;
source cellToCell;
sourceInfo
{
set heater;
set heaterCellSet;
}
}
{
name bottomAir;
name bottomAirCellSet;
type cellSet;
action add;
source cellToCell;
sourceInfo
{
set leftSolid;
set leftSolidCellSet;
}
}
{
name bottomAir;
name bottomAirCellSet;
type cellSet;
action add;
source cellToCell;
sourceInfo
{
set rightSolid;
set rightSolidCellSet;
}
}
{
name bottomAir;
name bottomAirCellSet;
type cellSet;
action add;
source cellToCell;
sourceInfo
{
set topAir;
set topAirCellSet;
}
}
{
name bottomAir;
name bottomAirCellSet;
type cellSet;
action invert;
}
......@@ -174,9 +169,10 @@ actions
source setToCellZone;
sourceInfo
{
set bottomAir;
set bottomAirCellSet;
}
}
);
// ************************************************************************* //
......@@ -21,7 +21,7 @@ actions
// Create faceZone for patch couple1
{
name couple1Faces;
name couple1FaceSet;
type faceSet;
action new;
source patchToFace;
......@@ -37,13 +37,13 @@ actions
source setToFaceZone;
sourceInfo
{
faceSet couple1Faces;
faceSet couple1FaceSet;
}
}
// Create faceZone for patch couple2
{
name couple2Faces;
name couple2FaceSet;
type faceSet;
action new;
source patchToFace;
......@@ -59,13 +59,13 @@ actions
source setToFaceZone;
sourceInfo
{
faceSet couple2Faces;
faceSet couple2FaceSet;
}
}
// Create cellZone for moving cells in inlet channel
{
name inletChannel;
name inletChannelCellSet;
type cellSet;
action new;
source boxToCell;
......@@ -81,7 +81,7 @@ actions
source setToCellZone;
sourceInfo
{
set inletChannel;
set inletChannelCellSet;
}
}
);
......
......@@ -18,7 +18,7 @@ FoamFile
actions
(
{
name cyclicFaces;
name cyclicFacesFaceSet;
type faceSet;
action new;
source boxToFace;
......@@ -46,13 +46,13 @@ actions
source setsToFaceZone;
sourceInfo
{
faceSet cyclicFaces;
faceSet cyclicFacesFaceSet;
cellSet cyclicFacesSlaveCells;
}
}
{
name baffleFaces;
name baffleFaceSet;
type faceSet;
action new;
source boxToFace;
......@@ -63,7 +63,7 @@ actions
}
{
name baffleFaces;
name baffleFaceSet;
type faceSet;
action delete;
source boxToFace;
......@@ -80,7 +80,7 @@ actions
source setToFaceZone;
sourceInfo
{
faceSet baffleFaces;
faceSet baffleFaceSet;
}
}
);
......
......@@ -19,7 +19,7 @@ actions
(
// actuationDisk1
{
name actuationDisk1;
name actuationDisk1CellSet;
type cellSet;
action new;
source boxToCell;
......@@ -35,13 +35,13 @@ actions
source setToCellZone;
sourceInfo
{
set actuationDisk1;
set actuationDisk1CellSet;
}
}
// actuationDisk2
{
name actuationDisk2;
name actuationDisk2CellSet;
type cellSet;
action new;
source boxToCell;
......@@ -57,7 +57,7 @@ actions
source setToCellZone;
sourceInfo
{
set actuationDisk2;
set actuationDisk2CellSet;
}
}
......
......@@ -18,7 +18,7 @@ FoamFile
actions
(
{
name wallFilmFaces;
name wallFilmFaceSet;
type faceSet;
action new;
source patchToFace;
......@@ -34,7 +34,7 @@ actions
source setToFaceZone;
sourceInfo
{
faceSet wallFilmFaces;
faceSet wallFilmFaceSet;
}
}
);
......
......@@ -18,7 +18,7 @@ FoamFile
actions
(
{
name wallFilmFaces;
name wallFilmFaceSet;
type faceSet;
action new;
source patchToFace;
......@@ -34,9 +34,10 @@ actions
source setToFaceZone;
sourceInfo
{
faceSet wallFilmFaces;
faceSet wallFilmFaceSet;
}
}
);
// ************************************************************************* //
......@@ -18,7 +18,7 @@ FoamFile
actions
(
{
name wallFilmFaces;
name wallFilmFaceSet;
type faceSet;
action new;
source patchToFace;
......@@ -34,7 +34,7 @@ actions
source setToFaceZone;
sourceInfo
{
faceSet wallFilmFaces;
faceSet wallFilmFaceSet;
}
}
);
......
......@@ -19,7 +19,7 @@ actions
(
// filter
{
name filter;
name filterCellSet;
type cellSet;
action new;
source boxToCell;
......@@ -35,13 +35,13 @@ actions
source setToCellZone;
sourceInfo
{
set filter;
set filterCellSet;
}
}
{
name leftFluid;
name leftFluidCellSet;
type cellSet;
action new;
source boxToCell;
......@@ -57,11 +57,11 @@ actions
source setToCellZone;
sourceInfo
{
set leftFluid;
set leftFluidCellSet;
}
}
{
name rightFluid;
name rightFluidCellSet;
type cellSet;
action new;
source boxToCell;
......@@ -77,31 +77,31 @@ actions
source setToCellZone;
sourceInfo
{
set rightFluid;
set rightFluidCellSet;
}
}
// cycLeft
{
name cycLeft;
name cycLeftFaceSet;
type faceSet;
action new;
source cellToFace;
sourceInfo
{
set filter;
set filterCellSet;
option all;
}
}
{
name cycLeft;
name cycLeftFaceSet;
type faceSet;
action subset;
source cellToFace;
sourceInfo
{
set leftFluid;
set leftFluidCellSet;
option all;
}
}
......@@ -113,30 +113,30 @@ actions
source setToFaceZone;
sourceInfo
{
faceSet cycLeft; // name of faceSet
faceSet cycLeftFaceSet;
}
}
// cycRight
{
name cycRight;
name cycRightFaceSet;
type faceSet;
action new;
source cellToFace;
sourceInfo
{
set filter;
set filterCellSet;
option all;
}
}
{
name cycRight;
name cycRightFaceSet;
type faceSet;
action subset;
source cellToFace;
sourceInfo
{
set rightFluid;
set rightFluidCellSet;
option all;
}
}
......@@ -148,10 +148,10 @@ actions
source setToFaceZone;
sourceInfo
{
faceSet cycRight; // name of faceSet
faceSet cycRightFaceSet;
}
}
);
// ************************************************************************* //
......@@ -18,7 +18,7 @@ FoamFile
actions
(
{
name cyclicFaces;
name cyclicFacesFaceSet;
type faceSet;
action new;
source boxToFace;
......@@ -46,7 +46,7 @@ actions
source setsToFaceZone;
sourceInfo
{
faceSet cyclicFaces;
faceSet cyclicFacesFaceSet;
cellSet cyclicFacesSlaveCells;
}
}
......
......@@ -35,7 +35,7 @@ actions
}
{
name f0;
name f0FaceSet;
type faceSet;
action new;
source patchToFace;
......@@ -46,7 +46,7 @@ actions
}
{
name f0;
name f0FaceSet;
type faceSet;
action subset;
source boxToFace;
......@@ -63,9 +63,10 @@ actions
source setToFaceZone;
sourceInfo
{
faceSet f0;
faceSet f0FaceSet;
}
}
);
// ************************************************************************* //
......@@ -35,7 +35,7 @@ actions
}
{
name f0;
name f0FaceSet;
type faceSet;
action new;
source patchToFace;
......@@ -46,7 +46,7 @@ actions
}
{
name f0;
name f0FaceSet;
type faceSet;
action subset;
source boxToFace;
......@@ -63,9 +63,10 @@ actions
source setToFaceZone;
sourceInfo
{
faceSet f0;
faceSet f0FaceSet;
}
}
);
// ************************************************************************* //
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment