surface meshes: Renamed movePoints -> setPoints for consistency with polyMesh

The surface mesh setPoints function resets the points without caching the old
points or swept areas so is the equivalent of the polyMesh::setPoints rather
than movePoints.
This commit is contained in:
Henry Weller
2024-03-08 17:28:55 +00:00
parent 587f79b39f
commit 3f1e6e796f
13 changed files with 34 additions and 34 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -61,7 +61,7 @@ Foam::fvMesh::readUpdateState Foam::vtkMesh::readUpdate()
if (meshState != fvMesh::UNCHANGED)
{
// Note: since fvMeshSubset has no movePoints() functionality,
// Note: since fvMeshSubset has no setPoints() functionality,
// reconstruct the subset even if only movement.
topoPtr_.clear();

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -133,7 +133,7 @@ bool intersectSurfaces
if (nIters != 0)
{
// Update geometric quantities
surf.movePoints(points);
surf.setPoints(points);
hasMoved = true;
}
}
@ -206,7 +206,7 @@ bool intersectSurfaces
if (nIters1 != 0)
{
// Update geometric quantities
surf1.movePoints(points1);
surf1.setPoints(points1);
hasMoved1 = true;
}
}
@ -249,7 +249,7 @@ bool intersectSurfaces
if (nIters2 != 0)
{
// Update geometric quantities
surf2.movePoints(points2);
surf2.setPoints(points2);
hasMoved2 = true;
}
}

View File

@ -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-2024 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -206,7 +206,7 @@ int main(int argc, char *argv[])
UIndirectList<point>(newPoints, surf1.meshPoints()) =
newLocalPoints;
surf1.movePoints(newPoints);
surf1.setPoints(newPoints);
}
// Mu
@ -222,7 +222,7 @@ int main(int argc, char *argv[])
UIndirectList<point>(newPoints, surf1.meshPoints()) =
newLocalPoints;
surf1.movePoints(newPoints);
surf1.setPoints(newPoints);
}
}

View File

@ -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-2024 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -182,14 +182,14 @@ int main(int argc, char *argv[])
{
Info<< " -from " << fromCsys().name() << endl;
tmp<pointField> tpf = fromCsys().localPosition(surf.points());
surf.movePoints(tpf());
surf.setPoints(tpf());
}
if (toCsys.valid())
{
Info<< " -to " << toCsys().name() << endl;
tmp<pointField> tpf = toCsys().globalPosition(surf.points());
surf.movePoints(tpf());
surf.setPoints(tpf());
}
scalar scaleOut = 0;

View File

@ -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-2024 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -186,14 +186,14 @@ int main(int argc, char *argv[])
{
Info<< " -from " << fromCsys().name() << endl;
tmp<pointField> tpf = fromCsys().localPosition(surf.points());
surf.movePoints(tpf());
surf.setPoints(tpf());
}
if (toCsys.valid())
{
Info<< " -to " << toCsys().name() << endl;
tmp<pointField> tpf = toCsys().globalPosition(surf.points());
surf.movePoints(tpf());
surf.setPoints(tpf());
}
scalar scaleOut = 0;

View File

@ -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-2024 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -183,14 +183,14 @@ int main(int argc, char *argv[])
{
Info<< " -from " << fromCsys().name() << endl;
tmp<pointField> tpf = fromCsys().localPosition(surf.points());
surf.movePoints(tpf());
surf.setPoints(tpf());
}
if (toCsys.valid())
{
Info<< " -to " << toCsys().name() << endl;
tmp<pointField> tpf = toCsys().globalPosition(surf.points());
surf.movePoints(tpf());
surf.setPoints(tpf());
}
scalar scaleOut = 0;

View File

@ -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-2024 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -118,7 +118,7 @@ int main(int argc, char *argv[])
meshedSurface surf1(surfFileName);
pointField points(surf1.points());
transforms.transformPosition(points, points);
surf1.movePoints(points);
surf1.setPoints(points);
surf1.write(outFileName);
Info<< "End\n" << endl;