Renamed meshCellZones -> cellZones, meshFaceZones -> faceZones and meshPointZones -> pointZones
The prefix "mesh" was confusing and obviously relevant or helpful in understanding the purpose or operation of these zone container classes.
This commit is contained in:
@ -198,7 +198,7 @@ void Foam::mergePolyMesh::addMesh(const polyMesh& m)
|
|||||||
const pointField& p = m.points();
|
const pointField& p = m.points();
|
||||||
labelList renumberPoints(p.size());
|
labelList renumberPoints(p.size());
|
||||||
|
|
||||||
const meshPointZones& pz = m.pointZones();
|
const pointZones& pz = m.pointZones();
|
||||||
labelList pointZoneIndices(pz.size());
|
labelList pointZoneIndices(pz.size());
|
||||||
|
|
||||||
forAll(pz, zonei)
|
forAll(pz, zonei)
|
||||||
@ -229,7 +229,7 @@ void Foam::mergePolyMesh::addMesh(const polyMesh& m)
|
|||||||
const cellList& c = m.cells();
|
const cellList& c = m.cells();
|
||||||
labelList renumberCells(c.size());
|
labelList renumberCells(c.size());
|
||||||
|
|
||||||
const meshCellZones& cz = m.cellZones();
|
const cellZones& cz = m.cellZones();
|
||||||
labelList cellZoneIndices(cz.size());
|
labelList cellZoneIndices(cz.size());
|
||||||
|
|
||||||
forAll(cz, zonei)
|
forAll(cz, zonei)
|
||||||
@ -267,7 +267,7 @@ void Foam::mergePolyMesh::addMesh(const polyMesh& m)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
const meshFaceZones& fz = m.faceZones();
|
const faceZones& fz = m.faceZones();
|
||||||
labelList faceZoneIndices(fz.size());
|
labelList faceZoneIndices(fz.size());
|
||||||
|
|
||||||
forAll(fz, zonei)
|
forAll(fz, zonei)
|
||||||
|
|||||||
@ -238,7 +238,7 @@ void simpleMarkFeatures
|
|||||||
}
|
}
|
||||||
|
|
||||||
// B. face zones.
|
// B. face zones.
|
||||||
const meshFaceZones& faceZones = mesh.faceZones();
|
const faceZones& faceZones = mesh.faceZones();
|
||||||
|
|
||||||
if (doNotPreserveFaceZones)
|
if (doNotPreserveFaceZones)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -453,7 +453,7 @@ autoPtr<polyTopoChangeMap> reorderMesh
|
|||||||
|
|
||||||
// Re-do the faceZones
|
// Re-do the faceZones
|
||||||
{
|
{
|
||||||
meshFaceZones& faceZones = mesh.faceZones();
|
faceZones& faceZones = mesh.faceZones();
|
||||||
forAll(faceZones, zoneI)
|
forAll(faceZones, zoneI)
|
||||||
{
|
{
|
||||||
faceZone& fZone = faceZones[zoneI];
|
faceZone& fZone = faceZones[zoneI];
|
||||||
@ -483,7 +483,7 @@ autoPtr<polyTopoChangeMap> reorderMesh
|
|||||||
}
|
}
|
||||||
// Re-do the cellZones
|
// Re-do the cellZones
|
||||||
{
|
{
|
||||||
meshCellZones& cellZones = mesh.cellZones();
|
cellZones& cellZones = mesh.cellZones();
|
||||||
forAll(cellZones, zoneI)
|
forAll(cellZones, zoneI)
|
||||||
{
|
{
|
||||||
cellZones[zoneI] = UIndirectList<label>
|
cellZones[zoneI] = UIndirectList<label>
|
||||||
|
|||||||
@ -125,7 +125,7 @@ int main(int argc, char *argv[])
|
|||||||
(
|
(
|
||||||
set.name(), // name
|
set.name(), // name
|
||||||
pointLabels, // addressing
|
pointLabels, // addressing
|
||||||
mesh.pointZones() // meshPointZones
|
mesh.pointZones() // pointZones
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
mesh.pointZones().writeOpt() = IOobject::AUTO_WRITE;
|
mesh.pointZones().writeOpt() = IOobject::AUTO_WRITE;
|
||||||
@ -256,7 +256,7 @@ int main(int argc, char *argv[])
|
|||||||
set.name(), // name
|
set.name(), // name
|
||||||
addressing.shrink(), // addressing
|
addressing.shrink(), // addressing
|
||||||
flipMap.shrink(), // flipmap
|
flipMap.shrink(), // flipmap
|
||||||
mesh.faceZones() // meshFaceZones
|
mesh.faceZones() // faceZones
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
mesh.faceZones().writeOpt() = IOobject::AUTO_WRITE;
|
mesh.faceZones().writeOpt() = IOobject::AUTO_WRITE;
|
||||||
@ -303,7 +303,7 @@ int main(int argc, char *argv[])
|
|||||||
(
|
(
|
||||||
set.name(), // name
|
set.name(), // name
|
||||||
cellLabels, // addressing
|
cellLabels, // addressing
|
||||||
mesh.cellZones() // meshCellZones
|
mesh.cellZones() // cellZones
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
mesh.cellZones().writeOpt() = IOobject::AUTO_WRITE;
|
mesh.cellZones().writeOpt() = IOobject::AUTO_WRITE;
|
||||||
|
|||||||
@ -1122,7 +1122,7 @@ label findCorrespondingRegion
|
|||||||
void getZoneID
|
void getZoneID
|
||||||
(
|
(
|
||||||
const polyMesh& mesh,
|
const polyMesh& mesh,
|
||||||
const meshCellZones& cellZones,
|
const cellZones& cellZones,
|
||||||
labelList& zoneID,
|
labelList& zoneID,
|
||||||
labelList& neiZoneID
|
labelList& neiZoneID
|
||||||
)
|
)
|
||||||
@ -1181,7 +1181,7 @@ void matchRegions
|
|||||||
labelList& zoneToRegion
|
labelList& zoneToRegion
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const meshCellZones& cellZones = mesh.cellZones();
|
const cellZones& cellZones = mesh.cellZones();
|
||||||
|
|
||||||
regionToZone.setSize(nCellRegions, -1);
|
regionToZone.setSize(nCellRegions, -1);
|
||||||
regionNames.setSize(nCellRegions);
|
regionNames.setSize(nCellRegions);
|
||||||
@ -1513,7 +1513,7 @@ int main(int argc, char *argv[])
|
|||||||
args.optionLookupOrDefault("defaultRegionName", standardRegionName)
|
args.optionLookupOrDefault("defaultRegionName", standardRegionName)
|
||||||
);
|
);
|
||||||
|
|
||||||
const meshCellZones& cellZones = mesh.cellZones();
|
const Foam::cellZones& cellZones = mesh.cellZones();
|
||||||
|
|
||||||
// Existing zoneID
|
// Existing zoneID
|
||||||
labelList zoneID(mesh.nCells(), -1);
|
labelList zoneID(mesh.nCells(), -1);
|
||||||
@ -1572,7 +1572,7 @@ int main(int argc, char *argv[])
|
|||||||
<< "This requires all"
|
<< "This requires all"
|
||||||
<< " cells to be in one and only one cellZone." << nl << endl;
|
<< " cells to be in one and only one cellZone." << nl << endl;
|
||||||
|
|
||||||
meshCellZones newCellZones
|
Foam::cellZones newCellZones
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
@ -1865,7 +1865,7 @@ int main(int argc, char *argv[])
|
|||||||
(
|
(
|
||||||
zoneName, // name
|
zoneName, // name
|
||||||
regionCells, // addressing
|
regionCells, // addressing
|
||||||
cellZones // meshCellZones
|
cellZones // cellZones
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -126,7 +126,7 @@ void removeSet
|
|||||||
{
|
{
|
||||||
removeZone
|
removeZone
|
||||||
(
|
(
|
||||||
const_cast<meshCellZones&>(mesh.cellZones()),
|
const_cast<cellZones&>(mesh.cellZones()),
|
||||||
setName
|
setName
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -134,7 +134,7 @@ void removeSet
|
|||||||
{
|
{
|
||||||
removeZone
|
removeZone
|
||||||
(
|
(
|
||||||
const_cast<meshFaceZones&>(mesh.faceZones()),
|
const_cast<faceZones&>(mesh.faceZones()),
|
||||||
setName
|
setName
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -142,7 +142,7 @@ void removeSet
|
|||||||
{
|
{
|
||||||
removeZone
|
removeZone
|
||||||
(
|
(
|
||||||
const_cast<meshPointZones&>(mesh.pointZones()),
|
const_cast<pointZones&>(mesh.pointZones()),
|
||||||
setName
|
setName
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1062,18 +1062,18 @@ int main(int argc, char *argv[])
|
|||||||
//
|
//
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
const meshFaceZones& zones = mesh.faceZones();
|
const faceZones& zones = mesh.faceZones();
|
||||||
|
|
||||||
if (doFaceZones && zones.size() > 0)
|
if (doFaceZones && zones.size() > 0)
|
||||||
{
|
{
|
||||||
mkDir(fvPath/"meshFaceZones");
|
mkDir(fvPath/"faceZones");
|
||||||
|
|
||||||
fileName patchFileName;
|
fileName patchFileName;
|
||||||
|
|
||||||
if (vMesh.useSubMesh())
|
if (vMesh.useSubMesh())
|
||||||
{
|
{
|
||||||
patchFileName =
|
patchFileName =
|
||||||
fvPath/"meshFaceZones"/cellSetName
|
fvPath/"faceZones"/cellSetName
|
||||||
+ "_"
|
+ "_"
|
||||||
+ timeDesc
|
+ timeDesc
|
||||||
+ ".plt";
|
+ ".plt";
|
||||||
@ -1081,7 +1081,7 @@ int main(int argc, char *argv[])
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
patchFileName =
|
patchFileName =
|
||||||
fvPath/"meshFaceZones"/"meshFaceZones"
|
fvPath/"faceZones"/"faceZones"
|
||||||
+ "_"
|
+ "_"
|
||||||
+ timeDesc
|
+ timeDesc
|
||||||
+ ".plt";
|
+ ".plt";
|
||||||
|
|||||||
@ -144,7 +144,7 @@ Usage
|
|||||||
#include "sphericalTensorIOField.H"
|
#include "sphericalTensorIOField.H"
|
||||||
#include "symmTensorIOField.H"
|
#include "symmTensorIOField.H"
|
||||||
#include "tensorIOField.H"
|
#include "tensorIOField.H"
|
||||||
#include "meshFaceZones.H"
|
#include "faceZones.H"
|
||||||
#include "Cloud.H"
|
#include "Cloud.H"
|
||||||
#include "passiveParticle.H"
|
#include "passiveParticle.H"
|
||||||
#include "stringListOps.H"
|
#include "stringListOps.H"
|
||||||
@ -1074,7 +1074,7 @@ int main(int argc, char *argv[])
|
|||||||
);
|
);
|
||||||
print(" surfVectorFields :", Info, svf);
|
print(" surfVectorFields :", Info, svf);
|
||||||
|
|
||||||
const meshFaceZones& zones = mesh.faceZones();
|
const faceZones& zones = mesh.faceZones();
|
||||||
|
|
||||||
forAll(zones, zoneI)
|
forAll(zones, zoneI)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -264,7 +264,7 @@ void Foam::vtkPVFoam::convertMeshCellZones
|
|||||||
printMemory();
|
printMemory();
|
||||||
}
|
}
|
||||||
|
|
||||||
const meshCellZones& zMesh = mesh.cellZones();
|
const cellZones& zMesh = mesh.cellZones();
|
||||||
for (int partId = range.start(); partId < range.end(); ++partId)
|
for (int partId = range.start(); partId < range.end(); ++partId)
|
||||||
{
|
{
|
||||||
const word zoneName = getPartName(partId);
|
const word zoneName = getPartName(partId);
|
||||||
@ -432,7 +432,7 @@ void Foam::vtkPVFoam::convertMeshFaceZones
|
|||||||
printMemory();
|
printMemory();
|
||||||
}
|
}
|
||||||
|
|
||||||
const meshFaceZones& zMesh = mesh.faceZones();
|
const faceZones& zMesh = mesh.faceZones();
|
||||||
for (int partId = range.start(); partId < range.end(); ++partId)
|
for (int partId = range.start(); partId < range.end(); ++partId)
|
||||||
{
|
{
|
||||||
const word zoneName = getPartName(partId);
|
const word zoneName = getPartName(partId);
|
||||||
@ -550,7 +550,7 @@ void Foam::vtkPVFoam::convertMeshPointZones
|
|||||||
|
|
||||||
if (range.size())
|
if (range.size())
|
||||||
{
|
{
|
||||||
const meshPointZones& zMesh = mesh.pointZones();
|
const pointZones& zMesh = mesh.pointZones();
|
||||||
for (int partId = range.start(); partId < range.end(); ++partId)
|
for (int partId = range.start(); partId < range.end(); ++partId)
|
||||||
{
|
{
|
||||||
word zoneName = getPartName(partId);
|
word zoneName = getPartName(partId);
|
||||||
|
|||||||
@ -260,7 +260,7 @@ void Foam::vtkPVFoam::convertSurfaceFields
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const meshFaceZones& zMesh = mesh.faceZones();
|
const faceZones& zMesh = mesh.faceZones();
|
||||||
const label zoneId = zMesh.findIndex(zoneName);
|
const label zoneId = zMesh.findIndex(zoneName);
|
||||||
|
|
||||||
if (zoneId < 0)
|
if (zoneId < 0)
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -217,7 +217,7 @@ void Foam::vtkPVFoam::convertVolFields
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const meshFaceZones& zMesh = mesh.faceZones();
|
const faceZones& zMesh = mesh.faceZones();
|
||||||
const label zoneId = zMesh.findIndex(zoneName);
|
const label zoneId = zMesh.findIndex(zoneName);
|
||||||
|
|
||||||
if (zoneId < 0)
|
if (zoneId < 0)
|
||||||
|
|||||||
@ -142,7 +142,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
const meshFaceZones& mfz = mesh.faceZones();
|
const faceZones& mfz = mesh.faceZones();
|
||||||
labelHashSet includeFaceZones(mfz.size());
|
labelHashSet includeFaceZones(mfz.size());
|
||||||
|
|
||||||
if (args.optionFound("faceZones"))
|
if (args.optionFound("faceZones"))
|
||||||
|
|||||||
@ -52,9 +52,9 @@ SourceFiles
|
|||||||
#include "labelIOList.H"
|
#include "labelIOList.H"
|
||||||
#include "polyBoundaryMesh.H"
|
#include "polyBoundaryMesh.H"
|
||||||
#include "boundBox.H"
|
#include "boundBox.H"
|
||||||
#include "meshPointZones.H"
|
#include "pointZones.H"
|
||||||
#include "meshFaceZones.H"
|
#include "faceZones.H"
|
||||||
#include "meshCellZones.H"
|
#include "cellZones.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -159,13 +159,13 @@ private:
|
|||||||
// Zoning information
|
// Zoning information
|
||||||
|
|
||||||
//- Point zones
|
//- Point zones
|
||||||
meshPointZones pointZones_;
|
Foam::pointZones pointZones_;
|
||||||
|
|
||||||
//- Face zones
|
//- Face zones
|
||||||
meshFaceZones faceZones_;
|
Foam::faceZones faceZones_;
|
||||||
|
|
||||||
//- Cell zones
|
//- Cell zones
|
||||||
meshCellZones cellZones_;
|
Foam::cellZones cellZones_;
|
||||||
|
|
||||||
|
|
||||||
//- Parallel info
|
//- Parallel info
|
||||||
@ -438,19 +438,19 @@ public:
|
|||||||
const indexedOctree<treeDataCell>& cellTree() const;
|
const indexedOctree<treeDataCell>& cellTree() const;
|
||||||
|
|
||||||
//- Return point zones
|
//- Return point zones
|
||||||
const meshPointZones& pointZones() const
|
const Foam::pointZones& pointZones() const
|
||||||
{
|
{
|
||||||
return pointZones_;
|
return pointZones_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return face zones
|
//- Return face zones
|
||||||
const meshFaceZones& faceZones() const
|
const Foam::faceZones& faceZones() const
|
||||||
{
|
{
|
||||||
return faceZones_;
|
return faceZones_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return cell zones
|
//- Return cell zones
|
||||||
const meshCellZones& cellZones() const
|
const Foam::cellZones& cellZones() const
|
||||||
{
|
{
|
||||||
return cellZones_;
|
return cellZones_;
|
||||||
}
|
}
|
||||||
@ -506,19 +506,19 @@ public:
|
|||||||
// Topological change
|
// Topological change
|
||||||
|
|
||||||
//- Return non-const access to the pointZones
|
//- Return non-const access to the pointZones
|
||||||
meshPointZones& pointZones()
|
Foam::pointZones& pointZones()
|
||||||
{
|
{
|
||||||
return pointZones_;
|
return pointZones_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return non-const access to the faceZones
|
//- Return non-const access to the faceZones
|
||||||
meshFaceZones& faceZones()
|
Foam::faceZones& faceZones()
|
||||||
{
|
{
|
||||||
return faceZones_;
|
return faceZones_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return non-const access to the cellZones
|
//- Return non-const access to the cellZones
|
||||||
meshCellZones& cellZones()
|
Foam::cellZones& cellZones()
|
||||||
{
|
{
|
||||||
return cellZones_;
|
return cellZones_;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -308,7 +308,7 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate()
|
|||||||
|
|
||||||
// pointZones
|
// pointZones
|
||||||
{
|
{
|
||||||
meshPointZones newPointZones
|
Foam::pointZones newPointZones
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
@ -329,7 +329,7 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate()
|
|||||||
|
|
||||||
// faceZones
|
// faceZones
|
||||||
{
|
{
|
||||||
meshFaceZones newFaceZones
|
Foam::faceZones newFaceZones
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
@ -350,7 +350,7 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate()
|
|||||||
|
|
||||||
// cellZones
|
// cellZones
|
||||||
{
|
{
|
||||||
meshCellZones newCellZones
|
Foam::cellZones newCellZones
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
|
|||||||
@ -22,16 +22,16 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Foam::meshCellZones
|
Foam::cellZones
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef meshCellZones_H
|
#ifndef cellZones_H
|
||||||
#define meshCellZones_H
|
#define cellZones_H
|
||||||
|
|
||||||
#include "Zones.H"
|
#include "Zones.H"
|
||||||
#include "cellZone.H"
|
#include "cellZone.H"
|
||||||
#include "meshCellZonesFwd.H"
|
#include "cellZonesFwd.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -22,15 +22,15 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::meshCellZones
|
Foam::cellZones
|
||||||
|
|
||||||
Description
|
Description
|
||||||
A Zones with the type cellZone
|
A Zones with the type cellZone
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef meshCellZonesFwd_H
|
#ifndef cellZonesFwd_H
|
||||||
#define meshCellZonesFwd_H
|
#define cellZonesFwd_H
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ namespace Foam
|
|||||||
class cellZone;
|
class cellZone;
|
||||||
class polyMesh;
|
class polyMesh;
|
||||||
|
|
||||||
typedef Zones<cellZone, polyMesh> meshCellZones;
|
typedef Zones<cellZone, polyMesh> cellZones;
|
||||||
}
|
}
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -22,16 +22,16 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Foam::meshFaceZones
|
Foam::faceZones
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef meshFaceZones_H
|
#ifndef faceZones_H
|
||||||
#define meshFaceZones_H
|
#define faceZones_H
|
||||||
|
|
||||||
#include "Zones.H"
|
#include "Zones.H"
|
||||||
#include "faceZone.H"
|
#include "faceZone.H"
|
||||||
#include "meshFaceZonesFwd.H"
|
#include "faceZonesFwd.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -22,15 +22,15 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::meshFaceZones
|
Foam::faceZones
|
||||||
|
|
||||||
Description
|
Description
|
||||||
A Zones with the type faceZone
|
A Zones with the type faceZone
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef meshFaceZonesFwd_H
|
#ifndef faceZonesFwd_H
|
||||||
#define meshFaceZonesFwd_H
|
#define faceZonesFwd_H
|
||||||
|
|
||||||
#include "Zones.H"
|
#include "Zones.H"
|
||||||
|
|
||||||
@ -42,9 +42,9 @@ namespace Foam
|
|||||||
class faceZone;
|
class faceZone;
|
||||||
class polyMesh;
|
class polyMesh;
|
||||||
|
|
||||||
typedef Zones<faceZone, polyMesh> meshFaceZones;
|
typedef Zones<faceZone, polyMesh> faceZones;
|
||||||
|
|
||||||
// class meshFaceZones
|
// class faceZones
|
||||||
// :
|
// :
|
||||||
// public Zones<faceZone, polyMesh>
|
// public Zones<faceZone, polyMesh>
|
||||||
// {
|
// {
|
||||||
@ -22,16 +22,16 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Foam::meshPointZones
|
Foam::pointZones
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef meshPointZones_H
|
#ifndef pointZones_H
|
||||||
#define meshPointZones_H
|
#define pointZones_H
|
||||||
|
|
||||||
#include "Zones.H"
|
#include "Zones.H"
|
||||||
#include "pointZone.H"
|
#include "pointZone.H"
|
||||||
#include "meshPointZonesFwd.H"
|
#include "pointZonesFwd.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -22,15 +22,15 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::meshPointZones
|
Foam::pointZones
|
||||||
|
|
||||||
Description
|
Description
|
||||||
A Zones with the type pointZone
|
A Zones with the type pointZone
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef meshPointZonesFwd_H
|
#ifndef pointZonesFwd_H
|
||||||
#define meshPointZonesFwd_H
|
#define pointZonesFwd_H
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ namespace Foam
|
|||||||
class pointZone;
|
class pointZone;
|
||||||
class polyMesh;
|
class polyMesh;
|
||||||
|
|
||||||
typedef Zones<pointZone, polyMesh> meshPointZones;
|
typedef Zones<pointZone, polyMesh> pointZones;
|
||||||
}
|
}
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -24,7 +24,7 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "cellZone.H"
|
#include "cellZone.H"
|
||||||
#include "meshCellZones.H"
|
#include "cellZones.H"
|
||||||
#include "polyMesh.H"
|
#include "polyMesh.H"
|
||||||
#include "polyTopoChangeMap.H"
|
#include "polyTopoChangeMap.H"
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
@ -46,10 +46,10 @@ Foam::cellZone::cellZone
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const labelUList& addr,
|
const labelUList& addr,
|
||||||
const meshCellZones& mz
|
const cellZones& mz
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
Zone<cellZone, meshCellZones>(name, addr, mz)
|
Zone<cellZone, cellZones>(name, addr, mz)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -57,10 +57,10 @@ Foam::cellZone::cellZone
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
labelList&& addr,
|
labelList&& addr,
|
||||||
const meshCellZones& mz
|
const cellZones& mz
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
Zone<cellZone, meshCellZones>(name, move(addr), mz)
|
Zone<cellZone, cellZones>(name, move(addr), mz)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -68,10 +68,10 @@ Foam::cellZone::cellZone
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const meshCellZones& mz
|
const cellZones& mz
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
Zone<cellZone, meshCellZones>(name, dict, this->labelsName, mz)
|
Zone<cellZone, cellZones>(name, dict, this->labelsName, mz)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -79,10 +79,10 @@ Foam::cellZone::cellZone
|
|||||||
(
|
(
|
||||||
const cellZone& cz,
|
const cellZone& cz,
|
||||||
const labelUList& addr,
|
const labelUList& addr,
|
||||||
const meshCellZones& mz
|
const cellZones& mz
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
Zone<cellZone, meshCellZones>(cz, addr, mz)
|
Zone<cellZone, cellZones>(cz, addr, mz)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -90,10 +90,10 @@ Foam::cellZone::cellZone
|
|||||||
(
|
(
|
||||||
const cellZone& cz,
|
const cellZone& cz,
|
||||||
labelList&& addr,
|
labelList&& addr,
|
||||||
const meshCellZones& mz
|
const cellZones& mz
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
Zone<cellZone, meshCellZones>(cz, move(addr), mz)
|
Zone<cellZone, cellZones>(cz, move(addr), mz)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -107,13 +107,13 @@ Foam::cellZone::~cellZone()
|
|||||||
|
|
||||||
Foam::label Foam::cellZone::whichCell(const label globalCellID) const
|
Foam::label Foam::cellZone::whichCell(const label globalCellID) const
|
||||||
{
|
{
|
||||||
return Zone<cellZone, meshCellZones>::localIndex(globalCellID);
|
return Zone<cellZone, cellZones>::localIndex(globalCellID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Foam::cellZone::checkDefinition(const bool report) const
|
bool Foam::cellZone::checkDefinition(const bool report) const
|
||||||
{
|
{
|
||||||
return Zone<cellZone, meshCellZones>::checkDefinition
|
return Zone<cellZone, cellZones>::checkDefinition
|
||||||
(
|
(
|
||||||
zones_.mesh().nCells(),
|
zones_.mesh().nCells(),
|
||||||
report
|
report
|
||||||
@ -164,13 +164,13 @@ void Foam::cellZone::writeDict(Ostream& os) const
|
|||||||
|
|
||||||
void Foam::cellZone::operator=(const cellZone& zn)
|
void Foam::cellZone::operator=(const cellZone& zn)
|
||||||
{
|
{
|
||||||
Zone<cellZone, meshCellZones>::operator=(zn);
|
Zone<cellZone, cellZones>::operator=(zn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::cellZone::operator=(cellZone&& zn)
|
void Foam::cellZone::operator=(cellZone&& zn)
|
||||||
{
|
{
|
||||||
Zone<cellZone, meshCellZones>::operator=(move(zn));
|
Zone<cellZone, cellZones>::operator=(move(zn));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -29,7 +29,7 @@ Description
|
|||||||
|
|
||||||
Currently set up as an indirect list but will be extended to use a
|
Currently set up as an indirect list but will be extended to use a
|
||||||
primitive mesh. For quick check whether a cell belongs to the zone use
|
primitive mesh. For quick check whether a cell belongs to the zone use
|
||||||
the lookup mechanism in meshCellZones, where all the zoned cells are
|
the lookup mechanism in cellZones, where all the zoned cells are
|
||||||
registered with their zone number.
|
registered with their zone number.
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
@ -42,7 +42,7 @@ SourceFiles
|
|||||||
#define cellZone_H
|
#define cellZone_H
|
||||||
|
|
||||||
#include "Zone.H"
|
#include "Zone.H"
|
||||||
#include "meshCellZonesFwd.H"
|
#include "cellZonesFwd.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -55,12 +55,12 @@ namespace Foam
|
|||||||
|
|
||||||
class cellZone
|
class cellZone
|
||||||
:
|
:
|
||||||
public Zone<cellZone, meshCellZones>
|
public Zone<cellZone, cellZones>
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
typedef meshCellZones ZonesType;
|
typedef cellZones ZonesType;
|
||||||
|
|
||||||
// Static Data Members
|
// Static Data Members
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ public:
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const meshCellZones& mz
|
const cellZones& mz
|
||||||
),
|
),
|
||||||
(name, dict, mz)
|
(name, dict, mz)
|
||||||
);
|
);
|
||||||
@ -95,7 +95,7 @@ public:
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const labelUList& addr,
|
const labelUList& addr,
|
||||||
const meshCellZones&
|
const cellZones&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct from components, transferring contents
|
//- Construct from components, transferring contents
|
||||||
@ -103,7 +103,7 @@ public:
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
labelList&& addr,
|
labelList&& addr,
|
||||||
const meshCellZones&
|
const cellZones&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct from dictionary
|
//- Construct from dictionary
|
||||||
@ -111,7 +111,7 @@ public:
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const dictionary&,
|
const dictionary&,
|
||||||
const meshCellZones&
|
const cellZones&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct given the original zone and resetting the
|
//- Construct given the original zone and resetting the
|
||||||
@ -120,7 +120,7 @@ public:
|
|||||||
(
|
(
|
||||||
const cellZone&,
|
const cellZone&,
|
||||||
const labelUList& addr,
|
const labelUList& addr,
|
||||||
const meshCellZones&
|
const cellZones&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct given the original zone, resetting the
|
//- Construct given the original zone, resetting the
|
||||||
@ -129,7 +129,7 @@ public:
|
|||||||
(
|
(
|
||||||
const cellZone&,
|
const cellZone&,
|
||||||
labelList&& addr,
|
labelList&& addr,
|
||||||
const meshCellZones&
|
const cellZones&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Disallow default bitwise copy construction
|
//- Disallow default bitwise copy construction
|
||||||
@ -137,7 +137,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Construct and return a clone, resetting the mesh zones
|
//- Construct and return a clone, resetting the mesh zones
|
||||||
virtual autoPtr<cellZone> clone(const meshCellZones& mz) const
|
virtual autoPtr<cellZone> clone(const cellZones& mz) const
|
||||||
{
|
{
|
||||||
return autoPtr<cellZone>
|
return autoPtr<cellZone>
|
||||||
(
|
(
|
||||||
@ -150,7 +150,7 @@ public:
|
|||||||
virtual autoPtr<cellZone> clone
|
virtual autoPtr<cellZone> clone
|
||||||
(
|
(
|
||||||
const labelUList& addr,
|
const labelUList& addr,
|
||||||
const meshCellZones& mz
|
const cellZones& mz
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
return autoPtr<cellZone>
|
return autoPtr<cellZone>
|
||||||
@ -168,7 +168,7 @@ public:
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const dictionary&,
|
const dictionary&,
|
||||||
const meshCellZones&
|
const cellZones&
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -200,7 +200,7 @@ public:
|
|||||||
|
|
||||||
// Member Operators
|
// Member Operators
|
||||||
|
|
||||||
using Zone<cellZone, meshCellZones>::operator=;
|
using Zone<cellZone, cellZones>::operator=;
|
||||||
|
|
||||||
//- Assignment to zone, clearing demand-driven data
|
//- Assignment to zone, clearing demand-driven data
|
||||||
void operator=(const cellZone&);
|
void operator=(const cellZone&);
|
||||||
|
|||||||
@ -32,7 +32,7 @@ Foam::autoPtr<Foam::cellZone> Foam::cellZone::New
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const meshCellZones& mz
|
const cellZones& mz
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (debug)
|
if (debug)
|
||||||
|
|||||||
@ -24,7 +24,7 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "faceZone.H"
|
#include "faceZone.H"
|
||||||
#include "meshFaceZones.H"
|
#include "faceZones.H"
|
||||||
#include "polyMesh.H"
|
#include "polyMesh.H"
|
||||||
#include "polyTopoChangeMap.H"
|
#include "polyTopoChangeMap.H"
|
||||||
#include "syncTools.H"
|
#include "syncTools.H"
|
||||||
@ -202,10 +202,10 @@ Foam::faceZone::faceZone
|
|||||||
const word& name,
|
const word& name,
|
||||||
const labelUList& addr,
|
const labelUList& addr,
|
||||||
const boolList& fm,
|
const boolList& fm,
|
||||||
const meshFaceZones& mz
|
const faceZones& mz
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
Zone<faceZone, meshFaceZones>(name, addr, mz),
|
Zone<faceZone, faceZones>(name, addr, mz),
|
||||||
flipMap_(fm),
|
flipMap_(fm),
|
||||||
patchPtr_(nullptr),
|
patchPtr_(nullptr),
|
||||||
masterCellsPtr_(nullptr),
|
masterCellsPtr_(nullptr),
|
||||||
@ -221,10 +221,10 @@ Foam::faceZone::faceZone
|
|||||||
const word& name,
|
const word& name,
|
||||||
labelList&& addr,
|
labelList&& addr,
|
||||||
boolList&& fm,
|
boolList&& fm,
|
||||||
const meshFaceZones& mz
|
const faceZones& mz
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
Zone<faceZone, meshFaceZones>(name, move(addr), mz),
|
Zone<faceZone, faceZones>(name, move(addr), mz),
|
||||||
flipMap_(move(fm)),
|
flipMap_(move(fm)),
|
||||||
patchPtr_(nullptr),
|
patchPtr_(nullptr),
|
||||||
masterCellsPtr_(nullptr),
|
masterCellsPtr_(nullptr),
|
||||||
@ -239,10 +239,10 @@ Foam::faceZone::faceZone
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const meshFaceZones& mz
|
const faceZones& mz
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
Zone<faceZone, meshFaceZones>(name, dict, this->labelsName, mz),
|
Zone<faceZone, faceZones>(name, dict, this->labelsName, mz),
|
||||||
flipMap_(dict.lookup("flipMap")),
|
flipMap_(dict.lookup("flipMap")),
|
||||||
patchPtr_(nullptr),
|
patchPtr_(nullptr),
|
||||||
masterCellsPtr_(nullptr),
|
masterCellsPtr_(nullptr),
|
||||||
@ -258,10 +258,10 @@ Foam::faceZone::faceZone
|
|||||||
const faceZone& fz,
|
const faceZone& fz,
|
||||||
const labelUList& addr,
|
const labelUList& addr,
|
||||||
const boolList& fm,
|
const boolList& fm,
|
||||||
const meshFaceZones& mz
|
const faceZones& mz
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
Zone<faceZone, meshFaceZones>(fz, addr, mz),
|
Zone<faceZone, faceZones>(fz, addr, mz),
|
||||||
flipMap_(fm),
|
flipMap_(fm),
|
||||||
patchPtr_(nullptr),
|
patchPtr_(nullptr),
|
||||||
masterCellsPtr_(nullptr),
|
masterCellsPtr_(nullptr),
|
||||||
@ -277,10 +277,10 @@ Foam::faceZone::faceZone
|
|||||||
const faceZone& fz,
|
const faceZone& fz,
|
||||||
labelList&& addr,
|
labelList&& addr,
|
||||||
boolList&& fm,
|
boolList&& fm,
|
||||||
const meshFaceZones& mz
|
const faceZones& mz
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
Zone<faceZone, meshFaceZones>(fz, move(addr), mz),
|
Zone<faceZone, faceZones>(fz, move(addr), mz),
|
||||||
flipMap_(move(fm)),
|
flipMap_(move(fm)),
|
||||||
patchPtr_(nullptr),
|
patchPtr_(nullptr),
|
||||||
masterCellsPtr_(nullptr),
|
masterCellsPtr_(nullptr),
|
||||||
@ -303,7 +303,7 @@ Foam::faceZone::~faceZone()
|
|||||||
|
|
||||||
Foam::label Foam::faceZone::whichFace(const label globalFaceID) const
|
Foam::label Foam::faceZone::whichFace(const label globalFaceID) const
|
||||||
{
|
{
|
||||||
return Zone<faceZone, meshFaceZones>::localIndex(globalFaceID);
|
return Zone<faceZone, faceZones>::localIndex(globalFaceID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -361,7 +361,7 @@ const Foam::labelList& Foam::faceZone::meshEdges() const
|
|||||||
|
|
||||||
void Foam::faceZone::clearAddressing()
|
void Foam::faceZone::clearAddressing()
|
||||||
{
|
{
|
||||||
Zone<faceZone, meshFaceZones>::clearAddressing();
|
Zone<faceZone, faceZones>::clearAddressing();
|
||||||
|
|
||||||
deleteDemandDrivenData(patchPtr_);
|
deleteDemandDrivenData(patchPtr_);
|
||||||
|
|
||||||
@ -386,7 +386,7 @@ void Foam::faceZone::resetAddressing
|
|||||||
|
|
||||||
bool Foam::faceZone::checkDefinition(const bool report) const
|
bool Foam::faceZone::checkDefinition(const bool report) const
|
||||||
{
|
{
|
||||||
return Zone<faceZone, meshFaceZones>::checkDefinition
|
return Zone<faceZone, faceZones>::checkDefinition
|
||||||
(
|
(
|
||||||
zones().mesh().faces().size(),
|
zones().mesh().faces().size(),
|
||||||
report
|
report
|
||||||
@ -491,7 +491,7 @@ void Foam::faceZone::insert(const Map<bool>& newIndices)
|
|||||||
|
|
||||||
void Foam::faceZone::swap(faceZone& fz)
|
void Foam::faceZone::swap(faceZone& fz)
|
||||||
{
|
{
|
||||||
Zone<faceZone, meshFaceZones>::swap(fz);
|
Zone<faceZone, faceZones>::swap(fz);
|
||||||
flipMap_.swap(fz.flipMap_);
|
flipMap_.swap(fz.flipMap_);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -570,14 +570,14 @@ void Foam::faceZone::writeDict(Ostream& os) const
|
|||||||
|
|
||||||
void Foam::faceZone::operator=(const faceZone& zn)
|
void Foam::faceZone::operator=(const faceZone& zn)
|
||||||
{
|
{
|
||||||
Zone<faceZone, meshFaceZones>::operator=(zn);
|
Zone<faceZone, faceZones>::operator=(zn);
|
||||||
flipMap_ = zn.flipMap_;
|
flipMap_ = zn.flipMap_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::faceZone::operator=(faceZone&& zn)
|
void Foam::faceZone::operator=(faceZone&& zn)
|
||||||
{
|
{
|
||||||
Zone<faceZone, meshFaceZones>::operator=(move(zn));
|
Zone<faceZone, faceZones>::operator=(move(zn));
|
||||||
flipMap_ = move(zn.flipMap_);
|
flipMap_ = move(zn.flipMap_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -28,7 +28,7 @@ Description
|
|||||||
A subset of mesh faces organised as a primitive patch.
|
A subset of mesh faces organised as a primitive patch.
|
||||||
|
|
||||||
For quick check whether a face belongs to the zone use the lookup
|
For quick check whether a face belongs to the zone use the lookup
|
||||||
mechanism in meshFaceZones, where all the zoned faces are registered
|
mechanism in faceZones, where all the zoned faces are registered
|
||||||
with their zone number.
|
with their zone number.
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
@ -41,7 +41,7 @@ SourceFiles
|
|||||||
#define faceZone_H
|
#define faceZone_H
|
||||||
|
|
||||||
#include "Zone.H"
|
#include "Zone.H"
|
||||||
#include "meshFaceZonesFwd.H"
|
#include "faceZonesFwd.H"
|
||||||
#include "boolList.H"
|
#include "boolList.H"
|
||||||
#include "primitiveFacePatch.H"
|
#include "primitiveFacePatch.H"
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ Ostream& operator<<(Ostream&, const faceZone&);
|
|||||||
|
|
||||||
class faceZone
|
class faceZone
|
||||||
:
|
:
|
||||||
public Zone<faceZone, meshFaceZones>
|
public Zone<faceZone, faceZones>
|
||||||
{
|
{
|
||||||
// Private Data
|
// Private Data
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
typedef meshFaceZones ZonesType;
|
typedef faceZones ZonesType;
|
||||||
|
|
||||||
// Static Data Members
|
// Static Data Members
|
||||||
|
|
||||||
@ -136,7 +136,7 @@ public:
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const meshFaceZones& mz
|
const faceZones& mz
|
||||||
),
|
),
|
||||||
(name, dict, mz)
|
(name, dict, mz)
|
||||||
);
|
);
|
||||||
@ -150,7 +150,7 @@ public:
|
|||||||
const word& name,
|
const word& name,
|
||||||
const labelUList& addr,
|
const labelUList& addr,
|
||||||
const boolList& fm,
|
const boolList& fm,
|
||||||
const meshFaceZones& mz
|
const faceZones& mz
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct from components, moving contents
|
//- Construct from components, moving contents
|
||||||
@ -159,7 +159,7 @@ public:
|
|||||||
const word& name,
|
const word& name,
|
||||||
labelList&& addr,
|
labelList&& addr,
|
||||||
boolList&& fm,
|
boolList&& fm,
|
||||||
const meshFaceZones&
|
const faceZones&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct from dictionary
|
//- Construct from dictionary
|
||||||
@ -167,7 +167,7 @@ public:
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const dictionary&,
|
const dictionary&,
|
||||||
const meshFaceZones&
|
const faceZones&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct given the original zone and resetting the
|
//- Construct given the original zone and resetting the
|
||||||
@ -177,7 +177,7 @@ public:
|
|||||||
const faceZone&,
|
const faceZone&,
|
||||||
const labelUList& addr,
|
const labelUList& addr,
|
||||||
const boolList& fm,
|
const boolList& fm,
|
||||||
const meshFaceZones&
|
const faceZones&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct given the original zone, resetting the
|
//- Construct given the original zone, resetting the
|
||||||
@ -187,7 +187,7 @@ public:
|
|||||||
const faceZone&,
|
const faceZone&,
|
||||||
labelList&& addr,
|
labelList&& addr,
|
||||||
boolList&& fm,
|
boolList&& fm,
|
||||||
const meshFaceZones&
|
const faceZones&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Disallow default bitwise copy construction
|
//- Disallow default bitwise copy construction
|
||||||
@ -195,7 +195,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Construct and return a clone, resetting the mesh zones
|
//- Construct and return a clone, resetting the mesh zones
|
||||||
virtual autoPtr<faceZone> clone(const meshFaceZones& mz) const
|
virtual autoPtr<faceZone> clone(const faceZones& mz) const
|
||||||
{
|
{
|
||||||
return autoPtr<faceZone>
|
return autoPtr<faceZone>
|
||||||
(
|
(
|
||||||
@ -209,7 +209,7 @@ public:
|
|||||||
(
|
(
|
||||||
const labelUList& addr,
|
const labelUList& addr,
|
||||||
const boolList& fm,
|
const boolList& fm,
|
||||||
const meshFaceZones& mz
|
const faceZones& mz
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
return autoPtr<faceZone>
|
return autoPtr<faceZone>
|
||||||
@ -227,7 +227,7 @@ public:
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const dictionary&,
|
const dictionary&,
|
||||||
const meshFaceZones&
|
const faceZones&
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -32,7 +32,7 @@ Foam::autoPtr<Foam::faceZone> Foam::faceZone::New
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const meshFaceZones& mz
|
const faceZones& mz
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (debug)
|
if (debug)
|
||||||
|
|||||||
@ -24,7 +24,7 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "pointZone.H"
|
#include "pointZone.H"
|
||||||
#include "meshPointZones.H"
|
#include "pointZones.H"
|
||||||
#include "polyMesh.H"
|
#include "polyMesh.H"
|
||||||
#include "polyTopoChangeMap.H"
|
#include "polyTopoChangeMap.H"
|
||||||
#include "syncTools.H"
|
#include "syncTools.H"
|
||||||
@ -47,10 +47,10 @@ Foam::pointZone::pointZone
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const labelUList& addr,
|
const labelUList& addr,
|
||||||
const meshPointZones& mz
|
const pointZones& mz
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
Zone<pointZone, meshPointZones>(name, addr, mz)
|
Zone<pointZone, pointZones>(name, addr, mz)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -58,10 +58,10 @@ Foam::pointZone::pointZone
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
labelList&& addr,
|
labelList&& addr,
|
||||||
const meshPointZones& mz
|
const pointZones& mz
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
Zone<pointZone, meshPointZones>(name, move(addr), mz)
|
Zone<pointZone, pointZones>(name, move(addr), mz)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -69,10 +69,10 @@ Foam::pointZone::pointZone
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const meshPointZones& mz
|
const pointZones& mz
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
Zone<pointZone, meshPointZones>(name, dict, this->labelsName, mz)
|
Zone<pointZone, pointZones>(name, dict, this->labelsName, mz)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -80,10 +80,10 @@ Foam::pointZone::pointZone
|
|||||||
(
|
(
|
||||||
const pointZone& pz,
|
const pointZone& pz,
|
||||||
const labelUList& addr,
|
const labelUList& addr,
|
||||||
const meshPointZones& mz
|
const pointZones& mz
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
Zone<pointZone, meshPointZones>(pz, addr, mz)
|
Zone<pointZone, pointZones>(pz, addr, mz)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -91,10 +91,10 @@ Foam::pointZone::pointZone
|
|||||||
(
|
(
|
||||||
const pointZone& pz,
|
const pointZone& pz,
|
||||||
labelList&& addr,
|
labelList&& addr,
|
||||||
const meshPointZones& mz
|
const pointZones& mz
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
Zone<pointZone, meshPointZones>(pz, move(addr), mz)
|
Zone<pointZone, pointZones>(pz, move(addr), mz)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -108,13 +108,13 @@ Foam::pointZone::~pointZone()
|
|||||||
|
|
||||||
Foam::label Foam::pointZone::whichPoint(const label globalPointID) const
|
Foam::label Foam::pointZone::whichPoint(const label globalPointID) const
|
||||||
{
|
{
|
||||||
return Zone<pointZone, meshPointZones>::localIndex(globalPointID);
|
return Zone<pointZone, pointZones>::localIndex(globalPointID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Foam::pointZone::checkDefinition(const bool report) const
|
bool Foam::pointZone::checkDefinition(const bool report) const
|
||||||
{
|
{
|
||||||
return Zone<pointZone, meshPointZones>::checkDefinition
|
return Zone<pointZone, pointZones>::checkDefinition
|
||||||
(
|
(
|
||||||
zones_.mesh().points().size(),
|
zones_.mesh().points().size(),
|
||||||
report
|
report
|
||||||
@ -217,13 +217,13 @@ void Foam::pointZone::writeDict(Ostream& os) const
|
|||||||
|
|
||||||
void Foam::pointZone::operator=(const pointZone& zn)
|
void Foam::pointZone::operator=(const pointZone& zn)
|
||||||
{
|
{
|
||||||
Zone<pointZone, meshPointZones>::operator=(zn);
|
Zone<pointZone, pointZones>::operator=(zn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::pointZone::operator=(pointZone&& zn)
|
void Foam::pointZone::operator=(pointZone&& zn)
|
||||||
{
|
{
|
||||||
Zone<pointZone, meshPointZones>::operator=(move(zn));
|
Zone<pointZone, pointZones>::operator=(move(zn));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@ Description
|
|||||||
list.
|
list.
|
||||||
|
|
||||||
For quick check whether a point belongs to the zone use the lookup
|
For quick check whether a point belongs to the zone use the lookup
|
||||||
mechanism in meshPointZones, where all the zoned points are registered
|
mechanism in pointZones, where all the zoned points are registered
|
||||||
with their zone number.
|
with their zone number.
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
@ -43,7 +43,7 @@ SourceFiles
|
|||||||
#define pointZone_H
|
#define pointZone_H
|
||||||
|
|
||||||
#include "Zone.H"
|
#include "Zone.H"
|
||||||
#include "meshPointZonesFwd.H"
|
#include "pointZonesFwd.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -56,12 +56,12 @@ namespace Foam
|
|||||||
|
|
||||||
class pointZone
|
class pointZone
|
||||||
:
|
:
|
||||||
public Zone<pointZone, meshPointZones>
|
public Zone<pointZone, pointZones>
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
typedef meshPointZones ZonesType;
|
typedef pointZones ZonesType;
|
||||||
|
|
||||||
// Static Data Members
|
// Static Data Members
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ public:
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const meshPointZones& mz
|
const pointZones& mz
|
||||||
),
|
),
|
||||||
(name, dict, mz)
|
(name, dict, mz)
|
||||||
);
|
);
|
||||||
@ -96,7 +96,7 @@ public:
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const labelUList& addr,
|
const labelUList& addr,
|
||||||
const meshPointZones&
|
const pointZones&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct from components, transferring contents
|
//- Construct from components, transferring contents
|
||||||
@ -104,7 +104,7 @@ public:
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
labelList&& addr,
|
labelList&& addr,
|
||||||
const meshPointZones&
|
const pointZones&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct from dictionary
|
//- Construct from dictionary
|
||||||
@ -112,7 +112,7 @@ public:
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const dictionary&,
|
const dictionary&,
|
||||||
const meshPointZones&
|
const pointZones&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct given the original zone and resetting the
|
//- Construct given the original zone and resetting the
|
||||||
@ -121,7 +121,7 @@ public:
|
|||||||
(
|
(
|
||||||
const pointZone&,
|
const pointZone&,
|
||||||
const labelUList& addr,
|
const labelUList& addr,
|
||||||
const meshPointZones&
|
const pointZones&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct given the original zone, resetting the
|
//- Construct given the original zone, resetting the
|
||||||
@ -130,7 +130,7 @@ public:
|
|||||||
(
|
(
|
||||||
const pointZone&,
|
const pointZone&,
|
||||||
labelList&& addr,
|
labelList&& addr,
|
||||||
const meshPointZones&
|
const pointZones&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Disallow default bitwise copy construction
|
//- Disallow default bitwise copy construction
|
||||||
@ -138,7 +138,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Construct and return a clone, resetting the mesh zones
|
//- Construct and return a clone, resetting the mesh zones
|
||||||
virtual autoPtr<pointZone> clone(const meshPointZones& mz) const
|
virtual autoPtr<pointZone> clone(const pointZones& mz) const
|
||||||
{
|
{
|
||||||
return autoPtr<pointZone>
|
return autoPtr<pointZone>
|
||||||
(
|
(
|
||||||
@ -150,7 +150,7 @@ public:
|
|||||||
// and mesh zones
|
// and mesh zones
|
||||||
virtual autoPtr<pointZone> clone
|
virtual autoPtr<pointZone> clone
|
||||||
(
|
(
|
||||||
const meshPointZones& mz,
|
const pointZones& mz,
|
||||||
const labelUList& addr
|
const labelUList& addr
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
@ -169,7 +169,7 @@ public:
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const dictionary&,
|
const dictionary&,
|
||||||
const meshPointZones&
|
const pointZones&
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -198,7 +198,7 @@ public:
|
|||||||
|
|
||||||
// Member Operators
|
// Member Operators
|
||||||
|
|
||||||
using Zone<pointZone, meshPointZones>::operator=;
|
using Zone<pointZone, pointZones>::operator=;
|
||||||
|
|
||||||
//- Assignment to zone, clearing demand-driven data
|
//- Assignment to zone, clearing demand-driven data
|
||||||
void operator=(const pointZone&);
|
void operator=(const pointZone&);
|
||||||
|
|||||||
@ -32,7 +32,7 @@ Foam::autoPtr<Foam::pointZone> Foam::pointZone::New
|
|||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const meshPointZones& mz
|
const pointZones& mz
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (debug)
|
if (debug)
|
||||||
|
|||||||
@ -470,7 +470,7 @@ void Foam::cellTable::addCellZones
|
|||||||
}
|
}
|
||||||
zoneUsed.setSize(nZone);
|
zoneUsed.setSize(nZone);
|
||||||
|
|
||||||
meshCellZones& czMesh = mesh.cellZones();
|
cellZones& czMesh = mesh.cellZones();
|
||||||
|
|
||||||
czMesh.clear();
|
czMesh.clear();
|
||||||
if (nZone <= 1)
|
if (nZone <= 1)
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -85,7 +85,7 @@ void surfaceDisplacementPointPatchVectorField::calcProjection
|
|||||||
|
|
||||||
if (frozenPointsZone_.size() > 0)
|
if (frozenPointsZone_.size() > 0)
|
||||||
{
|
{
|
||||||
const meshPointZones& pZones = mesh.pointZones();
|
const pointZones& pZones = mesh.pointZones();
|
||||||
|
|
||||||
zonePtr = &pZones[frozenPointsZone_];
|
zonePtr = &pZones[frozenPointsZone_];
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -84,7 +84,7 @@ void surfaceSlipDisplacementPointPatchVectorField::calcProjection
|
|||||||
|
|
||||||
if (frozenPointsZone_.size() > 0)
|
if (frozenPointsZone_.size() > 0)
|
||||||
{
|
{
|
||||||
const meshPointZones& pZones = mesh.pointZones();
|
const pointZones& pZones = mesh.pointZones();
|
||||||
|
|
||||||
zonePtr = &pZones[frozenPointsZone_];
|
zonePtr = &pZones[frozenPointsZone_];
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -481,7 +481,7 @@ void Foam::moleculeCloud::initialiseMolecules
|
|||||||
<< "Initialising molecules in each zone specified in mdInitialiseDict."
|
<< "Initialising molecules in each zone specified in mdInitialiseDict."
|
||||||
<< endl;
|
<< endl;
|
||||||
|
|
||||||
const meshCellZones& cellZones = mesh_.cellZones();
|
const cellZones& cellZones = mesh_.cellZones();
|
||||||
|
|
||||||
if (!cellZones.size())
|
if (!cellZones.size())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -82,7 +82,7 @@ void Foam::FacePostProcessing<CloudType>::write()
|
|||||||
{
|
{
|
||||||
const fvMesh& mesh = this->owner().mesh();
|
const fvMesh& mesh = this->owner().mesh();
|
||||||
const Time& time = mesh.time();
|
const Time& time = mesh.time();
|
||||||
const meshFaceZones& mfz = mesh.faceZones();
|
const faceZones& mfz = mesh.faceZones();
|
||||||
scalar timeNew = time.value();
|
scalar timeNew = time.value();
|
||||||
scalar timeElapsed = timeNew - timeOld_;
|
scalar timeElapsed = timeNew - timeOld_;
|
||||||
|
|
||||||
@ -264,7 +264,7 @@ Foam::FacePostProcessing<CloudType>::FacePostProcessing
|
|||||||
outputFilePtr_.setSize(faceZoneNames.size());
|
outputFilePtr_.setSize(faceZoneNames.size());
|
||||||
|
|
||||||
DynamicList<label> zoneIDs;
|
DynamicList<label> zoneIDs;
|
||||||
const meshFaceZones& mfz = owner.mesh().faceZones();
|
const faceZones& mfz = owner.mesh().faceZones();
|
||||||
const surfaceScalarField& magSf = owner.mesh().magSf();
|
const surfaceScalarField& magSf = owner.mesh().magSf();
|
||||||
const polyBoundaryMesh& pbm = owner.mesh().boundaryMesh();
|
const polyBoundaryMesh& pbm = owner.mesh().boundaryMesh();
|
||||||
forAll(faceZoneNames, i)
|
forAll(faceZoneNames, i)
|
||||||
@ -357,7 +357,7 @@ void Foam::FacePostProcessing<CloudType>::preFace(const parcelType& p)
|
|||||||
|| this->owner().solution().transient()
|
|| this->owner().solution().transient()
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const meshFaceZones& mfz = this->owner().mesh().faceZones();
|
const faceZones& mfz = this->owner().mesh().faceZones();
|
||||||
|
|
||||||
forAll(faceZoneIndices_, i)
|
forAll(faceZoneIndices_, i)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1388,7 +1388,7 @@ Foam::autoPtr<Foam::polyDistributionMap> Foam::meshRefinement::balance
|
|||||||
|
|
||||||
const PtrList<surfaceZonesInfo>& surfZones =
|
const PtrList<surfaceZonesInfo>& surfZones =
|
||||||
surfaces().surfZones();
|
surfaces().surfZones();
|
||||||
const meshFaceZones& fZones = mesh_.faceZones();
|
const faceZones& fZones = mesh_.faceZones();
|
||||||
const polyBoundaryMesh& pbm = mesh_.boundaryMesh();
|
const polyBoundaryMesh& pbm = mesh_.boundaryMesh();
|
||||||
|
|
||||||
// Get faces whose owner and neighbour should stay together,
|
// Get faces whose owner and neighbour should stay together,
|
||||||
@ -1801,7 +1801,7 @@ Foam::tmp<Foam::pointVectorField> Foam::meshRefinement::makeDisplacementField
|
|||||||
|
|
||||||
void Foam::meshRefinement::checkCoupledFaceZones(const polyMesh& mesh)
|
void Foam::meshRefinement::checkCoupledFaceZones(const polyMesh& mesh)
|
||||||
{
|
{
|
||||||
const meshFaceZones& fZones = mesh.faceZones();
|
const faceZones& fZones = mesh.faceZones();
|
||||||
|
|
||||||
// Check any zones are present anywhere and in same order
|
// Check any zones are present anywhere and in same order
|
||||||
|
|
||||||
|
|||||||
@ -214,7 +214,7 @@ Foam::Map<Foam::labelPair> Foam::meshRefinement::getZoneBafflePatches
|
|||||||
Map<labelPair> bafflePatch(mesh_.nFaces()/1000);
|
Map<labelPair> bafflePatch(mesh_.nFaces()/1000);
|
||||||
|
|
||||||
const PtrList<surfaceZonesInfo>& surfZones = surfaces_.surfZones();
|
const PtrList<surfaceZonesInfo>& surfZones = surfaces_.surfZones();
|
||||||
const meshFaceZones& fZones = mesh_.faceZones();
|
const faceZones& fZones = mesh_.faceZones();
|
||||||
|
|
||||||
forAll(surfZones, surfi)
|
forAll(surfZones, surfi)
|
||||||
{
|
{
|
||||||
@ -397,7 +397,7 @@ Foam::autoPtr<Foam::polyTopoChangeMap> Foam::meshRefinement::createBaffles
|
|||||||
|
|
||||||
void Foam::meshRefinement::checkZoneFaces() const
|
void Foam::meshRefinement::checkZoneFaces() const
|
||||||
{
|
{
|
||||||
const meshFaceZones& fZones = mesh_.faceZones();
|
const faceZones& fZones = mesh_.faceZones();
|
||||||
|
|
||||||
const polyBoundaryMesh& pbm = mesh_.boundaryMesh();
|
const polyBoundaryMesh& pbm = mesh_.boundaryMesh();
|
||||||
|
|
||||||
|
|||||||
@ -340,7 +340,7 @@ Foam::labelList Foam::surfaceZonesInfo::addCellZonesToMesh
|
|||||||
{
|
{
|
||||||
labelList surfaceToCellZone(surfList.size(), -1);
|
labelList surfaceToCellZone(surfList.size(), -1);
|
||||||
|
|
||||||
meshCellZones& cellZones = mesh.cellZones();
|
cellZones& cellZones = mesh.cellZones();
|
||||||
|
|
||||||
forAll(namedSurfaces, i)
|
forAll(namedSurfaces, i)
|
||||||
{
|
{
|
||||||
@ -363,7 +363,7 @@ Foam::labelList Foam::surfaceZonesInfo::addCellZonesToMesh
|
|||||||
(
|
(
|
||||||
cellZoneName, // name
|
cellZoneName, // name
|
||||||
labelList(0), // addressing
|
labelList(0), // addressing
|
||||||
cellZones // meshCellZones
|
cellZones // cellZones
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -404,7 +404,7 @@ Foam::labelList Foam::surfaceZonesInfo::addFaceZonesToMesh
|
|||||||
{
|
{
|
||||||
labelList surfaceToFaceZone(surfList.size(), -1);
|
labelList surfaceToFaceZone(surfList.size(), -1);
|
||||||
|
|
||||||
meshFaceZones& faceZones = mesh.faceZones();
|
faceZones& faceZones = mesh.faceZones();
|
||||||
|
|
||||||
forAll(namedSurfaces, i)
|
forAll(namedSurfaces, i)
|
||||||
{
|
{
|
||||||
@ -426,7 +426,7 @@ Foam::labelList Foam::surfaceZonesInfo::addFaceZonesToMesh
|
|||||||
faceZoneName, // name
|
faceZoneName, // name
|
||||||
labelList(0), // addressing
|
labelList(0), // addressing
|
||||||
boolList(0), // flipmap
|
boolList(0), // flipmap
|
||||||
faceZones // meshFaceZones
|
faceZones // faceZones
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1839,7 +1839,7 @@ Foam::autoPtr<Foam::polyTopoChangeMap> Foam::snappySnapDriver::repatchToSurface
|
|||||||
|
|
||||||
// 2. All faces on zoned surfaces
|
// 2. All faces on zoned surfaces
|
||||||
const PtrList<surfaceZonesInfo>& surfZones = surfaces.surfZones();
|
const PtrList<surfaceZonesInfo>& surfZones = surfaces.surfZones();
|
||||||
const meshFaceZones& fZones = mesh.faceZones();
|
const faceZones& fZones = mesh.faceZones();
|
||||||
|
|
||||||
forAll(zonedSurfaces, i)
|
forAll(zonedSurfaces, i)
|
||||||
{
|
{
|
||||||
@ -2138,7 +2138,7 @@ void Foam::snappySnapDriver::doSnap
|
|||||||
// Selectively 'forget' about the baffles, i.e. not check across them
|
// Selectively 'forget' about the baffles, i.e. not check across them
|
||||||
// or merge across them.
|
// or merge across them.
|
||||||
{
|
{
|
||||||
const meshFaceZones& fZones = mesh.faceZones();
|
const faceZones& fZones = mesh.faceZones();
|
||||||
const refinementSurfaces& surfaces = meshRefiner_.surfaces();
|
const refinementSurfaces& surfaces = meshRefiner_.surfaces();
|
||||||
const PtrList<surfaceZonesInfo>& surfZones = surfaces.surfZones();
|
const PtrList<surfaceZonesInfo>& surfZones = surfaces.surfZones();
|
||||||
|
|
||||||
|
|||||||
@ -74,7 +74,7 @@ cellZoneSet::cellZoneSet
|
|||||||
mesh_(mesh),
|
mesh_(mesh),
|
||||||
addressing_(0)
|
addressing_(0)
|
||||||
{
|
{
|
||||||
const meshCellZones& cellZones = mesh.cellZones();
|
const cellZones& cellZones = mesh.cellZones();
|
||||||
label zoneID = cellZones.findIndex(name);
|
label zoneID = cellZones.findIndex(name);
|
||||||
|
|
||||||
if
|
if
|
||||||
@ -259,7 +259,7 @@ bool cellZoneSet::writeObject
|
|||||||
const_cast<word&>(type()) = oldTypeName;
|
const_cast<word&>(type()) = oldTypeName;
|
||||||
|
|
||||||
// Modify cellZone
|
// Modify cellZone
|
||||||
meshCellZones& cellZones = const_cast<polyMesh&>(mesh_).cellZones();
|
cellZones& cellZones = const_cast<polyMesh&>(mesh_).cellZones();
|
||||||
label zoneID = cellZones.findIndex(name());
|
label zoneID = cellZones.findIndex(name());
|
||||||
|
|
||||||
if (zoneID == -1)
|
if (zoneID == -1)
|
||||||
|
|||||||
@ -79,7 +79,7 @@ faceZoneSet::faceZoneSet
|
|||||||
addressing_(0),
|
addressing_(0),
|
||||||
flipMap_(0)
|
flipMap_(0)
|
||||||
{
|
{
|
||||||
const meshFaceZones& faceZones = mesh.faceZones();
|
const faceZones& faceZones = mesh.faceZones();
|
||||||
label zoneID = faceZones.findIndex(name);
|
label zoneID = faceZones.findIndex(name);
|
||||||
|
|
||||||
if
|
if
|
||||||
@ -474,7 +474,7 @@ bool faceZoneSet::writeObject
|
|||||||
const_cast<word&>(type()) = oldTypeName;
|
const_cast<word&>(type()) = oldTypeName;
|
||||||
|
|
||||||
// Modify faceZone
|
// Modify faceZone
|
||||||
meshFaceZones& faceZones = const_cast<polyMesh&>(mesh_).faceZones();
|
faceZones& faceZones = const_cast<polyMesh&>(mesh_).faceZones();
|
||||||
label zoneID = faceZones.findIndex(name());
|
label zoneID = faceZones.findIndex(name());
|
||||||
|
|
||||||
if (zoneID == -1)
|
if (zoneID == -1)
|
||||||
|
|||||||
@ -76,7 +76,7 @@ pointZoneSet::pointZoneSet
|
|||||||
mesh_(mesh),
|
mesh_(mesh),
|
||||||
addressing_(0)
|
addressing_(0)
|
||||||
{
|
{
|
||||||
const meshPointZones& pointZones = mesh.pointZones();
|
const pointZones& pointZones = mesh.pointZones();
|
||||||
label zoneID = pointZones.findIndex(name);
|
label zoneID = pointZones.findIndex(name);
|
||||||
|
|
||||||
if
|
if
|
||||||
@ -260,7 +260,7 @@ bool pointZoneSet::writeObject
|
|||||||
const_cast<word&>(type()) = oldTypeName;
|
const_cast<word&>(type()) = oldTypeName;
|
||||||
|
|
||||||
// Modify pointZone
|
// Modify pointZone
|
||||||
meshPointZones& pointZones = const_cast<polyMesh&>(mesh_).pointZones();
|
pointZones& pointZones = const_cast<polyMesh&>(mesh_).pointZones();
|
||||||
label zoneID = pointZones.findIndex(name());
|
label zoneID = pointZones.findIndex(name());
|
||||||
|
|
||||||
if (zoneID == -1)
|
if (zoneID == -1)
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -26,7 +26,7 @@ License
|
|||||||
#include "multiSolidBodyMotionSolver.H"
|
#include "multiSolidBodyMotionSolver.H"
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
#include "transformField.H"
|
#include "transformField.H"
|
||||||
#include "meshCellZones.H"
|
#include "cellZones.H"
|
||||||
#include "boolList.H"
|
#include "boolList.H"
|
||||||
#include "syncTools.H"
|
#include "syncTools.H"
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2015-2021 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2015-2024 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -97,7 +97,7 @@ void Foam::decompositionConstraints::preserveFaceZonesConstraint::add
|
|||||||
{
|
{
|
||||||
blockedFace.setSize(mesh.nFaces(), true);
|
blockedFace.setSize(mesh.nFaces(), true);
|
||||||
|
|
||||||
const meshFaceZones& fZones = mesh.faceZones();
|
const faceZones& fZones = mesh.faceZones();
|
||||||
|
|
||||||
const labelList zoneIDs = findStrings(zones_, fZones.names());
|
const labelList zoneIDs = findStrings(zones_, fZones.names());
|
||||||
|
|
||||||
@ -167,7 +167,7 @@ void Foam::decompositionConstraints::preserveFaceZonesConstraint::apply
|
|||||||
// Override if differing
|
// Override if differing
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
const meshFaceZones& fZones = mesh.faceZones();
|
const faceZones& fZones = mesh.faceZones();
|
||||||
|
|
||||||
const labelList zoneIDs = findStrings(zones_, fZones.names());
|
const labelList zoneIDs = findStrings(zones_, fZones.names());
|
||||||
|
|
||||||
|
|||||||
@ -935,7 +935,7 @@ void Foam::domainDecomposition::decompose()
|
|||||||
|
|
||||||
// Create point zones
|
// Create point zones
|
||||||
{
|
{
|
||||||
const meshPointZones& pz = completeMesh().pointZones();
|
const pointZones& pz = completeMesh().pointZones();
|
||||||
|
|
||||||
// Go through all the zoned points and find out if they
|
// Go through all the zoned points and find out if they
|
||||||
// belong to a zone. If so, add it to the zone as
|
// belong to a zone. If so, add it to the zone as
|
||||||
@ -999,7 +999,7 @@ void Foam::domainDecomposition::decompose()
|
|||||||
|
|
||||||
// Create face zones
|
// Create face zones
|
||||||
{
|
{
|
||||||
const meshFaceZones& fz = completeMesh().faceZones();
|
const faceZones& fz = completeMesh().faceZones();
|
||||||
|
|
||||||
// Go through all the zoned face and find out if they
|
// Go through all the zoned face and find out if they
|
||||||
// belong to a zone. If so, add it to the zone as
|
// belong to a zone. If so, add it to the zone as
|
||||||
@ -1091,7 +1091,7 @@ void Foam::domainDecomposition::decompose()
|
|||||||
|
|
||||||
// Create cell zones
|
// Create cell zones
|
||||||
{
|
{
|
||||||
const meshCellZones& cz = completeMesh().cellZones();
|
const cellZones& cz = completeMesh().cellZones();
|
||||||
|
|
||||||
// Go through all the zoned cells and find out if they
|
// Go through all the zoned cells and find out if they
|
||||||
// belong to a zone. If so, add it to the zone as
|
// belong to a zone. If so, add it to the zone as
|
||||||
|
|||||||
@ -1525,7 +1525,7 @@ void Foam::fvMeshDistribute::sendMesh
|
|||||||
// in merged-zone indices.
|
// in merged-zone indices.
|
||||||
CompactListList<label> zonePoints;
|
CompactListList<label> zonePoints;
|
||||||
{
|
{
|
||||||
const meshPointZones& pointZones = mesh.pointZones();
|
const pointZones& pointZones = mesh.pointZones();
|
||||||
|
|
||||||
labelList rowSizes(pointZoneNames.size(), 0);
|
labelList rowSizes(pointZoneNames.size(), 0);
|
||||||
|
|
||||||
@ -1555,7 +1555,7 @@ void Foam::fvMeshDistribute::sendMesh
|
|||||||
CompactListList<label> zoneFaces;
|
CompactListList<label> zoneFaces;
|
||||||
CompactListList<bool> zoneFaceFlip;
|
CompactListList<bool> zoneFaceFlip;
|
||||||
{
|
{
|
||||||
const meshFaceZones& faceZones = mesh.faceZones();
|
const faceZones& faceZones = mesh.faceZones();
|
||||||
|
|
||||||
labelList rowSizes(faceZoneNames.size(), 0);
|
labelList rowSizes(faceZoneNames.size(), 0);
|
||||||
|
|
||||||
@ -1587,7 +1587,7 @@ void Foam::fvMeshDistribute::sendMesh
|
|||||||
// Assume sparse, possibly overlapping cell zones
|
// Assume sparse, possibly overlapping cell zones
|
||||||
CompactListList<label> zoneCells;
|
CompactListList<label> zoneCells;
|
||||||
{
|
{
|
||||||
const meshCellZones& cellZones = mesh.cellZones();
|
const cellZones& cellZones = mesh.cellZones();
|
||||||
|
|
||||||
labelList rowSizes(cellZoneNames.size(), 0);
|
labelList rowSizes(cellZoneNames.size(), 0);
|
||||||
|
|
||||||
@ -1620,7 +1620,7 @@ void Foam::fvMeshDistribute::sendMesh
|
|||||||
// cellZoneID.setSize(mesh.nCells());
|
// cellZoneID.setSize(mesh.nCells());
|
||||||
// cellZoneID = -1;
|
// cellZoneID = -1;
|
||||||
//
|
//
|
||||||
// const meshCellZones& cellZones = mesh.cellZones();
|
// const cellZones& cellZones = mesh.cellZones();
|
||||||
//
|
//
|
||||||
// forAll(cellZones, zoneI)
|
// forAll(cellZones, zoneI)
|
||||||
// {
|
// {
|
||||||
|
|||||||
@ -324,7 +324,7 @@ void Foam::fvMeshSubset::subsetZones()
|
|||||||
{
|
{
|
||||||
// Keep all zones, even if zero size.
|
// Keep all zones, even if zero size.
|
||||||
|
|
||||||
const meshPointZones& pointZones = baseMesh().pointZones();
|
const pointZones& pointZones = baseMesh().pointZones();
|
||||||
|
|
||||||
// PointZones
|
// PointZones
|
||||||
List<pointZone*> pZonePtrs(pointZones.size());
|
List<pointZone*> pZonePtrs(pointZones.size());
|
||||||
@ -343,7 +343,7 @@ void Foam::fvMeshSubset::subsetZones()
|
|||||||
|
|
||||||
|
|
||||||
// FaceZones
|
// FaceZones
|
||||||
const meshFaceZones& faceZones = baseMesh().faceZones();
|
const faceZones& faceZones = baseMesh().faceZones();
|
||||||
|
|
||||||
// Do we need to remove zones where the side we're interested in
|
// Do we need to remove zones where the side we're interested in
|
||||||
// no longer exists? Guess not.
|
// no longer exists? Guess not.
|
||||||
@ -409,7 +409,7 @@ void Foam::fvMeshSubset::subsetZones()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// CellZones
|
// CellZones
|
||||||
const meshCellZones& cellZones = baseMesh().cellZones();
|
const cellZones& cellZones = baseMesh().cellZones();
|
||||||
|
|
||||||
List<cellZone*> cZonePtrs(cellZones.size());
|
List<cellZone*> cZonePtrs(cellZones.size());
|
||||||
|
|
||||||
|
|||||||
@ -562,8 +562,8 @@ void Foam::polyMeshAdder::mergePrimitives
|
|||||||
void Foam::polyMeshAdder::mergePointZones
|
void Foam::polyMeshAdder::mergePointZones
|
||||||
(
|
(
|
||||||
const label nAllPoints,
|
const label nAllPoints,
|
||||||
const meshPointZones& pz0,
|
const pointZones& pz0,
|
||||||
const meshPointZones& pz1,
|
const pointZones& pz1,
|
||||||
const labelList& from0ToAllPoints,
|
const labelList& from0ToAllPoints,
|
||||||
const labelList& from1ToAllPoints,
|
const labelList& from1ToAllPoints,
|
||||||
|
|
||||||
@ -712,9 +712,9 @@ void Foam::polyMeshAdder::mergeFaceZones
|
|||||||
List<DynamicList<bool>>& fzFlips
|
List<DynamicList<bool>>& fzFlips
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const meshFaceZones& fz0 = mesh0.faceZones();
|
const faceZones& fz0 = mesh0.faceZones();
|
||||||
const labelList& owner0 = mesh0.faceOwner();
|
const labelList& owner0 = mesh0.faceOwner();
|
||||||
const meshFaceZones& fz1 = mesh1.faceZones();
|
const faceZones& fz1 = mesh1.faceZones();
|
||||||
const labelList& owner1 = mesh1.faceOwner();
|
const labelList& owner1 = mesh1.faceOwner();
|
||||||
|
|
||||||
|
|
||||||
@ -890,8 +890,8 @@ void Foam::polyMeshAdder::mergeCellZones
|
|||||||
(
|
(
|
||||||
const label nAllCells,
|
const label nAllCells,
|
||||||
|
|
||||||
const meshCellZones& cz0,
|
const cellZones& cz0,
|
||||||
const meshCellZones& cz1,
|
const cellZones& cz1,
|
||||||
const labelList& from1ToAllCells,
|
const labelList& from1ToAllCells,
|
||||||
|
|
||||||
DynamicList<word>& zoneNames,
|
DynamicList<word>& zoneNames,
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -133,8 +133,8 @@ private:
|
|||||||
(
|
(
|
||||||
const label nAllPoints,
|
const label nAllPoints,
|
||||||
|
|
||||||
const meshPointZones& pz0,
|
const pointZones& pz0,
|
||||||
const meshPointZones& pz1,
|
const pointZones& pz1,
|
||||||
const labelList& from0ToAllPoints,
|
const labelList& from0ToAllPoints,
|
||||||
const labelList& from1ToAllPoints,
|
const labelList& from1ToAllPoints,
|
||||||
|
|
||||||
@ -165,8 +165,8 @@ private:
|
|||||||
(
|
(
|
||||||
const label nAllCells,
|
const label nAllCells,
|
||||||
|
|
||||||
const meshCellZones& cz0,
|
const cellZones& cz0,
|
||||||
const meshCellZones& cz1,
|
const cellZones& cz1,
|
||||||
const labelList& from1ToAllCells,
|
const labelList& from1ToAllCells,
|
||||||
|
|
||||||
DynamicList<word>& zoneNames,
|
DynamicList<word>& zoneNames,
|
||||||
|
|||||||
@ -2322,7 +2322,7 @@ Foam::autoPtr<Foam::polyTopoChangeMap> Foam::polyTopoChange::makeMesh
|
|||||||
// ~~~~~
|
// ~~~~~
|
||||||
|
|
||||||
// Copy pointZone from old mesh
|
// Copy pointZone from old mesh
|
||||||
const meshPointZones& oldPointZones = mesh.pointZones();
|
const pointZones& oldPointZones = mesh.pointZones();
|
||||||
List<pointZone*> pZonePtrs(oldPointZones.size());
|
List<pointZone*> pZonePtrs(oldPointZones.size());
|
||||||
{
|
{
|
||||||
forAll(oldPointZones, i)
|
forAll(oldPointZones, i)
|
||||||
@ -2332,7 +2332,7 @@ Foam::autoPtr<Foam::polyTopoChangeMap> Foam::polyTopoChange::makeMesh
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Copy faceZone from old mesh
|
// Copy faceZone from old mesh
|
||||||
const meshFaceZones& oldFaceZones = mesh.faceZones();
|
const faceZones& oldFaceZones = mesh.faceZones();
|
||||||
List<faceZone*> fZonePtrs(oldFaceZones.size());
|
List<faceZone*> fZonePtrs(oldFaceZones.size());
|
||||||
{
|
{
|
||||||
forAll(oldFaceZones, i)
|
forAll(oldFaceZones, i)
|
||||||
@ -2342,7 +2342,7 @@ Foam::autoPtr<Foam::polyTopoChangeMap> Foam::polyTopoChange::makeMesh
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Copy cellZone from old mesh
|
// Copy cellZone from old mesh
|
||||||
const meshCellZones& oldCellZones = mesh.cellZones();
|
const cellZones& oldCellZones = mesh.cellZones();
|
||||||
List<cellZone*> cZonePtrs(oldCellZones.size());
|
List<cellZone*> cZonePtrs(oldCellZones.size());
|
||||||
{
|
{
|
||||||
forAll(oldCellZones, i)
|
forAll(oldCellZones, i)
|
||||||
|
|||||||
Reference in New Issue
Block a user