snappyHexMesh::checkFaces: changed to const labelList&
checkFaces is never changed
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) 2011-2022 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -718,7 +718,7 @@ Foam::scalar Foam::motionSmootherAlgo::setErrorReduction
|
||||
|
||||
bool Foam::motionSmootherAlgo::scaleMesh
|
||||
(
|
||||
labelList& checkFaces,
|
||||
const labelList& checkFaces,
|
||||
const bool smoothMesh,
|
||||
const label nAllowableErrors
|
||||
)
|
||||
@ -736,7 +736,7 @@ bool Foam::motionSmootherAlgo::scaleMesh
|
||||
|
||||
bool Foam::motionSmootherAlgo::scaleMesh
|
||||
(
|
||||
labelList& checkFaces,
|
||||
const labelList& checkFaces,
|
||||
const List<labelPair>& baffles,
|
||||
const bool smoothMesh,
|
||||
const label nAllowableErrors
|
||||
@ -829,7 +829,7 @@ Foam::tmp<Foam::pointField> Foam::motionSmootherAlgo::curPoints() const
|
||||
|
||||
bool Foam::motionSmootherAlgo::scaleMesh
|
||||
(
|
||||
labelList& checkFaces,
|
||||
const labelList& checkFaces,
|
||||
const List<labelPair>& baffles,
|
||||
const dictionary& paramDict,
|
||||
const dictionary& meshQualityDict,
|
||||
@ -955,11 +955,12 @@ bool Foam::motionSmootherAlgo::scaleMesh
|
||||
// - points to be smoothed
|
||||
// - faces to be checked in next iteration
|
||||
PackedBoolList isAffectedPoint(mesh_.nPoints());
|
||||
labelList affectedFaces(checkFaces);
|
||||
getAffectedFacesAndPoints
|
||||
(
|
||||
nSmoothScale, // smoothing iterations
|
||||
wrongFaces, // error faces
|
||||
checkFaces,
|
||||
affectedFaces,
|
||||
isAffectedPoint
|
||||
);
|
||||
|
||||
|
||||
@ -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
|
||||
@ -390,7 +390,7 @@ public:
|
||||
// across patches)
|
||||
bool scaleMesh
|
||||
(
|
||||
labelList& checkFaces,
|
||||
const labelList& checkFaces,
|
||||
const bool smoothMesh = true,
|
||||
const label nAllow = 0
|
||||
);
|
||||
@ -398,7 +398,7 @@ public:
|
||||
//- Move mesh (with baffles) with given scale.
|
||||
bool scaleMesh
|
||||
(
|
||||
labelList& checkFaces,
|
||||
const labelList& checkFaces,
|
||||
const List<labelPair>& baffles,
|
||||
const bool smoothMesh = true,
|
||||
const label nAllow = 0
|
||||
@ -407,7 +407,7 @@ public:
|
||||
//- Move mesh with externally provided mesh constraints
|
||||
bool scaleMesh
|
||||
(
|
||||
labelList& checkFaces,
|
||||
const labelList& checkFaces,
|
||||
const List<labelPair>& baffles,
|
||||
const dictionary& paramDict,
|
||||
const dictionary& meshQualityDict,
|
||||
|
||||
@ -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
|
||||
@ -160,7 +160,7 @@ public:
|
||||
(
|
||||
const dictionary&,
|
||||
const label nAllowableErrors,
|
||||
labelList& checkFaces
|
||||
const labelList& checkFaces
|
||||
) = 0;
|
||||
|
||||
//- Update local data for geometry changes
|
||||
|
||||
@ -1964,15 +1964,12 @@ bool Foam::medialAxisMeshMover::shrinkMesh
|
||||
(
|
||||
const dictionary& meshQualityDict,
|
||||
const label nAllowableErrors,
|
||||
labelList& checkFaces
|
||||
const labelList& checkFaces
|
||||
)
|
||||
{
|
||||
//- Number of attempts shrinking the mesh
|
||||
const label nSnap = meshQualityDict.lookup<label>("nRelaxIter");
|
||||
|
||||
|
||||
|
||||
|
||||
// Make sure displacement boundary conditions is up-to-date with
|
||||
// internal field
|
||||
meshMover_.setDisplacementPatchFields();
|
||||
@ -2028,7 +2025,7 @@ bool Foam::medialAxisMeshMover::move
|
||||
(
|
||||
const dictionary& moveDict,
|
||||
const label nAllowableErrors,
|
||||
labelList& checkFaces
|
||||
const labelList& checkFaces
|
||||
)
|
||||
{
|
||||
// Read a few settings
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2014-2022 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2014-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -221,7 +221,7 @@ class medialAxisMeshMover
|
||||
(
|
||||
const dictionary& meshQualityDict,
|
||||
const label nAllowableErrors,
|
||||
labelList& checkFaces
|
||||
const labelList& checkFaces
|
||||
);
|
||||
|
||||
|
||||
@ -259,7 +259,7 @@ public:
|
||||
(
|
||||
const dictionary&,
|
||||
const label nAllowableErrors,
|
||||
labelList& checkFaces
|
||||
const labelList& checkFaces
|
||||
);
|
||||
|
||||
//- Update local data for geometry changes
|
||||
|
||||
Reference in New Issue
Block a user