Resolve warning messages generated by Clang-15
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2013-2022 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -463,9 +463,6 @@ void Foam::compressibleMultiphaseMixture::solveAlphas
|
||||
const scalar cAlpha
|
||||
)
|
||||
{
|
||||
static label nSolves=-1;
|
||||
nSolves++;
|
||||
|
||||
word alphaScheme("div(phi,alpha)");
|
||||
word alpharScheme("div(phirb,alpha)");
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -441,9 +441,6 @@ void Foam::multiphaseMixture::solveAlphas
|
||||
const scalar cAlpha
|
||||
)
|
||||
{
|
||||
static label nSolves=-1;
|
||||
nSolves++;
|
||||
|
||||
word alphaScheme("div(phi,alpha)");
|
||||
word alpharScheme("div(phirb,alpha)");
|
||||
|
||||
|
||||
@ -42,8 +42,6 @@ for (label i=0; i<nPoints; i++)
|
||||
labelList i1tab(nPoints), i3tab(nPoints), i8tab(nPoints), idreg(nPoints),
|
||||
f(nPoints), bcl(nPoints), bcf(nPoints), bcb(nPoints);
|
||||
|
||||
label nBfaces = 0;
|
||||
|
||||
for (label i=0; i<nPoints; i++)
|
||||
{
|
||||
label i1, i3, i8;
|
||||
@ -64,10 +62,6 @@ for (label i=0; i<nPoints; i++)
|
||||
bcl[i] = label(fbcl);
|
||||
bcf[i] = label(fbcf);
|
||||
bcb[i] = label(fbcb);
|
||||
|
||||
if (bcl[i] > 0 && bcl[i] != 4) nBfaces++;
|
||||
if (bcf[i] > 0 && bcf[i] != 4) nBfaces++;
|
||||
if (bcb[i] > 0 && bcb[i] != 4) nBfaces++;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -61,8 +61,6 @@ void writeOBJ(const point& pt, Ostream& os)
|
||||
// All edges of mesh
|
||||
void writePoints(const polyMesh& mesh, const fileName& timeName)
|
||||
{
|
||||
label vertI = 0;
|
||||
|
||||
fileName pointFile(mesh.time().path()/"meshPoints_" + timeName + ".obj");
|
||||
|
||||
Info<< "Writing mesh points and edges to " << pointFile << endl;
|
||||
@ -72,7 +70,6 @@ void writePoints(const polyMesh& mesh, const fileName& timeName)
|
||||
forAll(mesh.points(), pointi)
|
||||
{
|
||||
writeOBJ(mesh.points()[pointi], pointStream);
|
||||
vertI++;
|
||||
}
|
||||
|
||||
forAll(mesh.edges(), edgeI)
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2012-2022 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -169,23 +169,14 @@ template<class Triangulation>
|
||||
void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
{
|
||||
label nInternal = 0;
|
||||
label nInternalRef = 0;
|
||||
label nUnassigned = 0;
|
||||
label nUnassignedRef = 0;
|
||||
label nInternalNearBoundary = 0;
|
||||
label nInternalNearBoundaryRef = 0;
|
||||
label nInternalSurface = 0;
|
||||
label nInternalSurfaceRef = 0;
|
||||
label nInternalFeatureEdge = 0;
|
||||
label nInternalFeatureEdgeRef = 0;
|
||||
label nInternalFeaturePoint = 0;
|
||||
label nInternalFeaturePointRef = 0;
|
||||
label nExternalSurface = 0;
|
||||
label nExternalSurfaceRef = 0;
|
||||
label nExternalFeatureEdge = 0;
|
||||
label nExternalFeatureEdgeRef = 0;
|
||||
label nExternalFeaturePoint = 0;
|
||||
label nExternalFeaturePointRef = 0;
|
||||
label nFar = 0;
|
||||
label nReferred = 0;
|
||||
|
||||
@ -201,7 +192,6 @@ void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
if (vit->referred())
|
||||
{
|
||||
nReferred++;
|
||||
nInternalRef++;
|
||||
}
|
||||
|
||||
nInternal++;
|
||||
@ -211,7 +201,6 @@ void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
if (vit->referred())
|
||||
{
|
||||
nReferred++;
|
||||
nUnassignedRef++;
|
||||
}
|
||||
|
||||
nUnassigned++;
|
||||
@ -221,7 +210,6 @@ void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
if (vit->referred())
|
||||
{
|
||||
nReferred++;
|
||||
nInternalNearBoundaryRef++;
|
||||
}
|
||||
|
||||
nInternalNearBoundary++;
|
||||
@ -231,7 +219,6 @@ void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
if (vit->referred())
|
||||
{
|
||||
nReferred++;
|
||||
nInternalSurfaceRef++;
|
||||
}
|
||||
|
||||
nInternalSurface++;
|
||||
@ -241,7 +228,6 @@ void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
if (vit->referred())
|
||||
{
|
||||
nReferred++;
|
||||
nInternalFeatureEdgeRef++;
|
||||
}
|
||||
|
||||
nInternalFeatureEdge++;
|
||||
@ -251,7 +237,6 @@ void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
if (vit->referred())
|
||||
{
|
||||
nReferred++;
|
||||
nInternalFeaturePointRef++;
|
||||
}
|
||||
|
||||
nInternalFeaturePoint++;
|
||||
@ -261,7 +246,6 @@ void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
if (vit->referred())
|
||||
{
|
||||
nReferred++;
|
||||
nExternalSurfaceRef++;
|
||||
}
|
||||
|
||||
nExternalSurface++;
|
||||
@ -271,7 +255,6 @@ void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
if (vit->referred())
|
||||
{
|
||||
nReferred++;
|
||||
nExternalFeatureEdgeRef++;
|
||||
}
|
||||
|
||||
nExternalFeatureEdge++;
|
||||
@ -281,7 +264,6 @@ void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
if (vit->referred())
|
||||
{
|
||||
nReferred++;
|
||||
nExternalFeaturePointRef++;
|
||||
}
|
||||
|
||||
nExternalFeaturePoint++;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2012-2022 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -911,8 +911,6 @@ Foam::DistributedDelaunayMesh<Triangulation>::rangeInsertReferredWithInfo
|
||||
typename Triangulation::Locate_type lt;
|
||||
int li, lj;
|
||||
|
||||
label nNotInserted = 0;
|
||||
|
||||
labelPairHashSet uninserted
|
||||
(
|
||||
Triangulation::number_of_vertices()
|
||||
@ -1037,7 +1035,6 @@ Foam::DistributedDelaunayMesh<Triangulation>::rangeInsertReferredWithInfo
|
||||
else
|
||||
{
|
||||
uninserted.insert(labelPair(vert.procIndex(), vert.index()));
|
||||
nNotInserted++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2012-2021 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -182,27 +182,6 @@ Foam::tensor Foam::cellShapeControl::cellAlignment(const point& pt) const
|
||||
alignment = tensor::I;
|
||||
}
|
||||
else
|
||||
{
|
||||
label nFarPoints = 0;
|
||||
for (label pI = 0; pI < 4; ++pI)
|
||||
{
|
||||
if (ch->vertex(pI)->farPoint())
|
||||
{
|
||||
nFarPoints++;
|
||||
}
|
||||
}
|
||||
|
||||
// if (nFarPoints != 0)
|
||||
// {
|
||||
// for (label pI = 0; pI < 4; ++pI)
|
||||
// {
|
||||
// if (!ch->vertex(pI)->farPoint())
|
||||
// {
|
||||
// alignment = ch->vertex(pI)->alignment();
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
{
|
||||
triad tri;
|
||||
|
||||
@ -221,16 +200,6 @@ Foam::tensor Foam::cellShapeControl::cellAlignment(const point& pt) const
|
||||
alignment = tri;
|
||||
}
|
||||
|
||||
// cellShapeControlMesh::Vertex_handle nearV =
|
||||
// shapeControlMesh_.nearest_vertex_in_cell
|
||||
// (
|
||||
// toPoint<cellShapeControlMesh::Point>(pt),
|
||||
// ch
|
||||
// );
|
||||
//
|
||||
// alignment = nearV->alignment();
|
||||
}
|
||||
|
||||
return alignment;
|
||||
}
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -79,16 +79,9 @@ bool Foam::controlMeshRefinement::detectEdge
|
||||
|
||||
Foam::point midPoint = (a + b)/2.0;
|
||||
|
||||
label nIterations = 0;
|
||||
|
||||
while (true)
|
||||
{
|
||||
nIterations++;
|
||||
|
||||
if
|
||||
(
|
||||
magSqr(a - b) < tolSqr
|
||||
)
|
||||
if (magSqr(a - b) < tolSqr)
|
||||
{
|
||||
pointFound.setPoint(midPoint);
|
||||
pointFound.setHit();
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -72,8 +72,6 @@ bool Foam::featurePointConformer::createSpecialisedFeaturePoint
|
||||
return false;
|
||||
}
|
||||
|
||||
label nVert = foamyHexMesh_.number_of_vertices();
|
||||
|
||||
const label initialNumOfPoints = pts.size();
|
||||
|
||||
const scalar ppDist = foamyHexMesh_.pointPairDistance(featPt);
|
||||
@ -267,7 +265,6 @@ bool Foam::featurePointConformer::createSpecialisedFeaturePoint
|
||||
for (label i = 0; i < 2; ++i)
|
||||
{
|
||||
pts.remove();
|
||||
nVert--;
|
||||
}
|
||||
|
||||
return false;
|
||||
@ -504,8 +501,6 @@ bool Foam::featurePointConformer::createSpecialisedFeaturePoint
|
||||
return false;
|
||||
}
|
||||
|
||||
label nVert = foamyHexMesh_.number_of_vertices();
|
||||
|
||||
const label initialNumOfPoints = pts.size();
|
||||
|
||||
const scalar ppDist = foamyHexMesh_.pointPairDistance(featPt);
|
||||
@ -703,7 +698,6 @@ bool Foam::featurePointConformer::createSpecialisedFeaturePoint
|
||||
for (label i = 0; i < 2; ++i)
|
||||
{
|
||||
pts.remove();
|
||||
nVert--;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2013-2021 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -122,12 +122,10 @@ void Foam::CV2D::insertPointPairs
|
||||
if (meshControls().objOutput())
|
||||
{
|
||||
OFstream str(fName);
|
||||
label vertI = 0;
|
||||
|
||||
forAll(surfacePoints, ppi)
|
||||
{
|
||||
meshTools::writeOBJ(str, toPoint3D(surfacePoints[ppi]));
|
||||
vertI++;
|
||||
}
|
||||
|
||||
Info<< "insertPointPairs: Written " << surfacePoints.size()
|
||||
|
||||
@ -8,7 +8,7 @@ int USERD_get_gold_part_build_info
|
||||
char *part_descriptions[Z_BUFL],
|
||||
int *number_of_nodes,
|
||||
int *number_of_elements[Z_MAXTYPE],
|
||||
int *ijk_dimensions[3],
|
||||
int *ijk_dimensions[9],
|
||||
int *iblanking_options[6]
|
||||
)
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -114,9 +114,10 @@ void Foam::writeVTKFields
|
||||
forAll(values, fieldi)
|
||||
{
|
||||
Info<< " writing field " << fieldNames[fieldi] << endl;
|
||||
|
||||
os << nl << fieldNames[fieldi] << ' ' << pTraits<Type>::nComponents
|
||||
<< ' ' << values[fieldi].size() << " float" << nl;
|
||||
label offset = 0;
|
||||
|
||||
forAll(addr, trackI)
|
||||
{
|
||||
const List<label> ids(addr[trackI]);
|
||||
@ -135,7 +136,6 @@ void Foam::writeVTKFields
|
||||
os << ' ';
|
||||
}
|
||||
}
|
||||
offset += ids.size();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -645,7 +645,6 @@ int main(int argc, char *argv[])
|
||||
label nIntOrExt = 0;
|
||||
label nFlat = 0;
|
||||
label nOpen = 0;
|
||||
label nMultiple = 0;
|
||||
|
||||
forAll(edgeNormals, eI)
|
||||
{
|
||||
@ -671,7 +670,6 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
else if (nEdNorms > 2)
|
||||
{
|
||||
nMultiple++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -776,8 +776,6 @@ label collapseBase
|
||||
{
|
||||
label nTotalSplit = 0;
|
||||
|
||||
label iter = 0;
|
||||
|
||||
while (true)
|
||||
{
|
||||
// Detect faces to collapse
|
||||
@ -971,17 +969,7 @@ label collapseBase
|
||||
// Pack the triangles
|
||||
newTris.shrink();
|
||||
|
||||
// Pout<< "Resetting surface from " << surf.size() << " to "
|
||||
// << newTris.size() << " triangles" << endl;
|
||||
surf = triSurface(newTris, surf.patches(), surf.localPoints());
|
||||
|
||||
//{
|
||||
// fileName fName("bla" + name(iter) + ".obj");
|
||||
// Pout<< "Writing surf to " << fName << endl;
|
||||
// surf.write(fName);
|
||||
//}
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
// Remove any unused vertices
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -202,9 +202,6 @@ void Foam::GAMGAgglomeration::agglomerateLduAddressing
|
||||
boolList& faceFlipMap = faceFlipMap_[fineLevelIndex];
|
||||
|
||||
|
||||
label nFlipped = 0;
|
||||
label nDissapear = 0;
|
||||
|
||||
forAll(faceRestrictAddr, fineFacei)
|
||||
{
|
||||
label coarseFacei = faceRestrictAddr[fineFacei];
|
||||
@ -221,7 +218,6 @@ void Foam::GAMGAgglomeration::agglomerateLduAddressing
|
||||
if (cOwn == rmUpperAddr && cNei == rmLowerAddr)
|
||||
{
|
||||
faceFlipMap[fineFacei] = true;
|
||||
nFlipped++;
|
||||
}
|
||||
else if (cOwn == rmLowerAddr && cNei == rmUpperAddr)
|
||||
{
|
||||
@ -240,10 +236,6 @@ void Foam::GAMGAgglomeration::agglomerateLduAddressing
|
||||
<< exit(FatalError);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
nDissapear++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -2458,7 +2458,6 @@ Foam::autoPtr<Foam::globalIndex> Foam::globalMeshData::mergePoints
|
||||
globalIndex globalPPoints(meshPoints.size());
|
||||
|
||||
labelList patchToCoupled(meshPoints.size(), -1);
|
||||
label nCoupled = 0;
|
||||
labelList coupledToGlobalPatch(pointSlavesMap.constructSize(), -1);
|
||||
|
||||
// Note: loop over patch since usually smaller
|
||||
@ -2472,14 +2471,9 @@ Foam::autoPtr<Foam::globalIndex> Foam::globalMeshData::mergePoints
|
||||
{
|
||||
patchToCoupled[patchPointi] = iter();
|
||||
coupledToGlobalPatch[iter()] = globalPPoints.toGlobal(patchPointi);
|
||||
nCoupled++;
|
||||
}
|
||||
}
|
||||
|
||||
// Pout<< "Patch:" << nl
|
||||
// << " points:" << meshPoints.size() << nl
|
||||
// << " of which on coupled patch:" << nCoupled << endl;
|
||||
|
||||
|
||||
// Determine master of connected points
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@ -2560,12 +2554,6 @@ Foam::autoPtr<Foam::globalIndex> Foam::globalMeshData::mergePoints
|
||||
|
||||
autoPtr<globalIndex> globalPointsPtr(new globalIndex(nMasters));
|
||||
|
||||
// Pout<< "Patch:" << nl
|
||||
// << " points:" << meshPoints.size() << nl
|
||||
// << " of which on coupled patch:" << nCoupled << nl
|
||||
// << " of which master:" << nMasters << endl;
|
||||
|
||||
|
||||
|
||||
// Push back compact numbering for master point onto slaves
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -633,7 +633,7 @@ etc,
|
||||
void Foam::meshReaders::STARCD::readBoundary(const fileName& inputName)
|
||||
{
|
||||
const word fileSignature = "PROSTAR_BOUNDARY";
|
||||
label nPatches = 0, nFaces = 0, nBafflePatches = 0, maxId = 0;
|
||||
label nPatches = 0, nBafflePatches = 0, maxId = 0;
|
||||
label lineLabel, starCellId, cellFaceId, starRegion, configNumber;
|
||||
word patchType;
|
||||
|
||||
@ -672,7 +672,6 @@ void Foam::meshReaders::STARCD::readBoundary(const fileName& inputName)
|
||||
|
||||
while ((is >> lineLabel).good())
|
||||
{
|
||||
nFaces++;
|
||||
is >> starCellId
|
||||
>> cellFaceId
|
||||
>> starRegion
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -457,8 +457,6 @@ Foam::autoPtr<Foam::polyTopoChangeMap> Foam::fvMeshDistribute::deleteProcPatches
|
||||
// or new patchID
|
||||
labelList newPatchID(mesh_.nFaces() - mesh_.nInternalFaces(), -1);
|
||||
|
||||
label nProcPatches = 0;
|
||||
|
||||
forAll(mesh_.boundaryMesh(), patchi)
|
||||
{
|
||||
const polyPatch& pp = mesh_.boundaryMesh()[patchi];
|
||||
@ -478,8 +476,6 @@ Foam::autoPtr<Foam::polyTopoChangeMap> Foam::fvMeshDistribute::deleteProcPatches
|
||||
{
|
||||
newPatchID[offset+i] = destinationPatch;
|
||||
}
|
||||
|
||||
nProcPatches++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -67,14 +67,11 @@ void Foam::MRFZone::setMRFFaces()
|
||||
zoneCell[cellLabels[i]] = true;
|
||||
}
|
||||
|
||||
label nZoneFaces = 0;
|
||||
|
||||
for (label facei = 0; facei < mesh_.nInternalFaces(); facei++)
|
||||
{
|
||||
if (zoneCell[own[facei]] || zoneCell[nei[facei]])
|
||||
{
|
||||
faceInMRF[facei] = true;
|
||||
nZoneFaces++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -91,7 +88,6 @@ void Foam::MRFZone::setMRFFaces()
|
||||
if (zoneCell[own[facei]])
|
||||
{
|
||||
faceInMRF[facei] = true;
|
||||
nZoneFaces++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -192,7 +192,7 @@ ddt
|
||||
|
||||
|
||||
template<class Type>
|
||||
tmp<SurfaceField<typename flux<Type>::type>> ddtCorr
|
||||
tmp<SurfaceField<typename Foam::flux<Type>::type>> ddtCorr
|
||||
(
|
||||
const VolField<Type>& U,
|
||||
const SurfaceField<Type>& Uf
|
||||
@ -207,10 +207,10 @@ tmp<SurfaceField<typename flux<Type>::type>> ddtCorr
|
||||
|
||||
|
||||
template<class Type>
|
||||
tmp<SurfaceField<typename flux<Type>::type>> ddtCorr
|
||||
tmp<SurfaceField<typename Foam::flux<Type>::type>> ddtCorr
|
||||
(
|
||||
const VolField<Type>& U,
|
||||
const SurfaceField<typename flux<Type>::type>& phi
|
||||
const SurfaceField<typename Foam::flux<Type>::type>& phi
|
||||
)
|
||||
{
|
||||
return fv::ddtScheme<Type>::New
|
||||
@ -222,10 +222,10 @@ tmp<SurfaceField<typename flux<Type>::type>> ddtCorr
|
||||
|
||||
|
||||
template<class Type>
|
||||
tmp<SurfaceField<typename flux<Type>::type>> ddtCorr
|
||||
tmp<SurfaceField<typename Foam::flux<Type>::type>> ddtCorr
|
||||
(
|
||||
const VolField<Type>& U,
|
||||
const SurfaceField<typename flux<Type>::type>& phi,
|
||||
const SurfaceField<typename Foam::flux<Type>::type>& phi,
|
||||
const autoPtr<SurfaceField<Type>>& Uf
|
||||
)
|
||||
{
|
||||
@ -241,7 +241,7 @@ tmp<SurfaceField<typename flux<Type>::type>> ddtCorr
|
||||
|
||||
|
||||
template<class Type>
|
||||
tmp<SurfaceField<typename flux<Type>::type>> ddtCorr
|
||||
tmp<SurfaceField<typename Foam::flux<Type>::type>> ddtCorr
|
||||
(
|
||||
const volScalarField& rho,
|
||||
const VolField<Type>& U,
|
||||
@ -257,11 +257,11 @@ tmp<SurfaceField<typename flux<Type>::type>> ddtCorr
|
||||
|
||||
|
||||
template<class Type>
|
||||
tmp<SurfaceField<typename flux<Type>::type>> ddtCorr
|
||||
tmp<SurfaceField<typename Foam::flux<Type>::type>> ddtCorr
|
||||
(
|
||||
const volScalarField& rho,
|
||||
const VolField<Type>& U,
|
||||
const SurfaceField<typename flux<Type>::type>& phi
|
||||
const SurfaceField<typename Foam::flux<Type>::type>& phi
|
||||
)
|
||||
{
|
||||
return fv::ddtScheme<Type>::New
|
||||
@ -273,11 +273,11 @@ tmp<SurfaceField<typename flux<Type>::type>> ddtCorr
|
||||
|
||||
|
||||
template<class Type>
|
||||
tmp<SurfaceField<typename flux<Type>::type>> ddtCorr
|
||||
tmp<SurfaceField<typename Foam::flux<Type>::type>> ddtCorr
|
||||
(
|
||||
const volScalarField& rho,
|
||||
const VolField<Type>& U,
|
||||
const SurfaceField<typename flux<Type>::type>& phi,
|
||||
const SurfaceField<typename Foam::flux<Type>::type>& phi,
|
||||
const autoPtr<SurfaceField<Type>>& Uf
|
||||
)
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2013-2022 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -443,7 +443,6 @@ bool Foam::functionObjects::regionSizeDistribution::write()
|
||||
|
||||
// Determine blocked faces
|
||||
boolList blockedFace(mesh_.nFaces(), false);
|
||||
label nBlocked = 0;
|
||||
|
||||
{
|
||||
for (label facei = 0; facei < mesh_.nInternalFaces(); facei++)
|
||||
@ -458,7 +457,6 @@ bool Foam::functionObjects::regionSizeDistribution::write()
|
||||
)
|
||||
{
|
||||
blockedFace[facei] = true;
|
||||
nBlocked++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -487,7 +485,6 @@ bool Foam::functionObjects::regionSizeDistribution::write()
|
||||
)
|
||||
{
|
||||
blockedFace[start+i] = true;
|
||||
nBlocked++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -1831,14 +1831,11 @@ Foam::label Foam::meshRefinement::markPatchZones
|
||||
|
||||
// Protect all non-manifold edges
|
||||
{
|
||||
label nProtected = 0;
|
||||
|
||||
forAll(nMasterFacesPerEdge, edgei)
|
||||
{
|
||||
if (nMasterFacesPerEdge[edgei] > 2)
|
||||
{
|
||||
allEdgeInfo[edgei] = -2;
|
||||
nProtected++;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1989,8 +1986,6 @@ void Foam::meshRefinement::consistentOrientation
|
||||
// - slaves of coupled faces
|
||||
// - non-manifold edges
|
||||
{
|
||||
label nProtected = 0;
|
||||
|
||||
forAll(patch.addressing(), facei)
|
||||
{
|
||||
const label meshFacei = patch.addressing()[facei];
|
||||
@ -2005,7 +2000,6 @@ void Foam::meshRefinement::consistentOrientation
|
||||
{
|
||||
// Slave side. Mark so doesn't get visited.
|
||||
allFaceInfo[facei] = orientedSurface::NOFLIP;
|
||||
nProtected++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -714,7 +714,6 @@ Foam::labelList Foam::meshRefinement::markFacesOnProblemCells
|
||||
// Get number of anchor points (pointLevel <= cellLevel)
|
||||
|
||||
label nBoundaryAnchors = 0;
|
||||
label nNonAnchorBoundary = 0;
|
||||
label nonBoundaryAnchor = -1;
|
||||
|
||||
forAll(cPoints, i)
|
||||
@ -734,34 +733,12 @@ Foam::labelList Foam::meshRefinement::markFacesOnProblemCells
|
||||
nonBoundaryAnchor = pointi;
|
||||
}
|
||||
}
|
||||
else if (isBoundaryPoint[pointi])
|
||||
{
|
||||
nNonAnchorBoundary++;
|
||||
}
|
||||
}
|
||||
|
||||
if (nBoundaryAnchors == 8)
|
||||
{
|
||||
const cell& cFaces = mesh_.cells()[celli];
|
||||
|
||||
// Count boundary faces.
|
||||
label nBfaces = 0;
|
||||
|
||||
forAll(cFaces, cFacei)
|
||||
{
|
||||
if (isBoundaryFace[cFaces[cFacei]])
|
||||
{
|
||||
nBfaces++;
|
||||
}
|
||||
}
|
||||
|
||||
// If nBfaces > 1 make all non-boundary non-baffle faces baffles.
|
||||
// We assume that this situation is where there is a single
|
||||
// cell sticking out which would get flattened.
|
||||
|
||||
// Eugene: delete cell no matter what.
|
||||
// if (nBfaces > 1)
|
||||
{
|
||||
if
|
||||
(
|
||||
checkCollapse
|
||||
@ -769,6 +746,7 @@ Foam::labelList Foam::meshRefinement::markFacesOnProblemCells
|
||||
)
|
||||
{
|
||||
nPrevented++;
|
||||
|
||||
// Pout<< "Preventing baffling/removal of 8 anchor point"
|
||||
// << " cell "
|
||||
// << celli << " at " << mesh_.cellCentres()[celli]
|
||||
@ -805,7 +783,6 @@ Foam::labelList Foam::meshRefinement::markFacesOnProblemCells
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (nBoundaryAnchors == 7)
|
||||
{
|
||||
// Mark the cell. Store the (single!) non-boundary anchor point.
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -514,7 +514,6 @@ Foam::labelList Foam::localPointRegion::findDuplicateFaces
|
||||
);
|
||||
|
||||
labelList duplicateFace(allPatch.size(), -1);
|
||||
label nDuplicateFaces = 0;
|
||||
|
||||
// Find all duplicate faces.
|
||||
forAll(allPatch, bFacei)
|
||||
@ -569,7 +568,6 @@ Foam::labelList Foam::localPointRegion::findDuplicateFaces
|
||||
|
||||
duplicateFace[bFacei] = otherFacei;
|
||||
duplicateFace[otherFacei] = bFacei;
|
||||
nDuplicateFaces++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -294,7 +294,6 @@ void Foam::regionToCell::erode
|
||||
|
||||
// Select all cells using these points
|
||||
|
||||
label nChanged = 0;
|
||||
forAll(boundaryPoint, pointi)
|
||||
{
|
||||
if (boundaryPoint[pointi])
|
||||
@ -306,7 +305,6 @@ void Foam::regionToCell::erode
|
||||
if (!removeCell[celli])
|
||||
{
|
||||
removeCell[celli] = true;
|
||||
nChanged++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user