solver: Remove unused bool return from moveMesh method

This commit is contained in:
Will Bainbridge
2023-02-02 11:37:47 +00:00
parent df0f7f16be
commit efa8cae943
15 changed files with 20 additions and 55 deletions

View File

@ -212,7 +212,7 @@ public:
virtual void preSolve();
//- Called at the start of the PIMPLE loop to move the mesh
virtual bool moveMesh();
virtual void moveMesh();
//- Called at the start of the PIMPLE loop
virtual void prePredictor() = 0;

View File

@ -29,7 +29,7 @@ License
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
bool Foam::solvers::VoFSolver::moveMesh()
void Foam::solvers::VoFSolver::moveMesh()
{
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
{
@ -102,16 +102,10 @@ bool Foam::solvers::VoFSolver::moveMesh()
meshCourantNo();
correctInterface();
divU.clear();
return true;
}
divU.clear();
}
return false;
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2022-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -174,7 +174,7 @@ public:
virtual void preSolve();
//- Called at the start of the PIMPLE loop to move the mesh
virtual bool moveMesh();
virtual void moveMesh();
//- Called at the start of the PIMPLE loop
virtual void prePredictor();

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2022-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -29,7 +29,7 @@ License
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
bool Foam::solvers::incompressibleFluid::moveMesh()
void Foam::solvers::incompressibleFluid::moveMesh()
{
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
{
@ -67,12 +67,8 @@ bool Foam::solvers::incompressibleFluid::moveMesh()
}
meshCourantNo();
return true;
}
}
return false;
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2022-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -239,7 +239,7 @@ public:
virtual void preSolve();
//- Called at the start of the PIMPLE loop to move the mesh
virtual bool moveMesh();
virtual void moveMesh();
//- Called at the start of the PIMPLE loop
virtual void prePredictor();

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2022-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -28,7 +28,7 @@ License
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
bool Foam::solvers::isothermalFluid::moveMesh()
void Foam::solvers::isothermalFluid::moveMesh()
{
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
{
@ -76,12 +76,8 @@ bool Foam::solvers::isothermalFluid::moveMesh()
}
meshCourantNo();
return true;
}
}
return false;
}

View File

@ -71,16 +71,12 @@ void Foam::solvers::movingMesh::preSolve()
}
bool Foam::solvers::movingMesh::moveMesh()
void Foam::solvers::movingMesh::moveMesh()
{
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
{
mesh.move();
return true;
}
return false;
}

View File

@ -89,7 +89,7 @@ public:
virtual void preSolve();
//- Called at the start of the PIMPLE loop to move the mesh
virtual bool moveMesh();
virtual void moveMesh();
//- Called at the beginning of the PIMPLE loop
virtual void prePredictor();

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2022-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -29,7 +29,7 @@ License
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
bool Foam::solvers::multiphaseEuler::moveMesh()
void Foam::solvers::multiphaseEuler::moveMesh()
{
if
(
@ -69,16 +69,10 @@ bool Foam::solvers::multiphaseEuler::moveMesh()
);
meshCourantNo();
divU.clear();
return true;
}
divU.clear();
}
return false;
}

View File

@ -217,7 +217,7 @@ public:
virtual void preSolve();
//- Called at the start of the PIMPLE loop to move the mesh
virtual bool moveMesh();
virtual void moveMesh();
//- Called at the start of the PIMPLE loop
virtual void prePredictor();

View File

@ -27,7 +27,7 @@ License
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
bool Foam::solvers::shockFluid::moveMesh()
void Foam::solvers::shockFluid::moveMesh()
{
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
{
@ -41,12 +41,8 @@ bool Foam::solvers::shockFluid::moveMesh()
}
meshCourantNo();
return true;
}
}
return false;
}

View File

@ -224,7 +224,7 @@ public:
virtual void preSolve();
//- Called at the start of the PIMPLE loop to move the mesh
virtual bool moveMesh();
virtual void moveMesh();
//- Called at the start of the PIMPLE loop
virtual void prePredictor();

View File

@ -160,7 +160,7 @@ void Foam::solvers::solid::preSolve()
}
bool Foam::solvers::solid::moveMesh()
void Foam::solvers::solid::moveMesh()
{
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
{
@ -173,14 +173,7 @@ bool Foam::solvers::solid::moveMesh()
}
mesh.move();
if (mesh.changing())
{
return mesh.moving();
}
}
return false;
}

View File

@ -130,7 +130,7 @@ public:
virtual void preSolve();
//- Called at the start of the PIMPLE loop to move the mesh
virtual bool moveMesh();
virtual void moveMesh();
//- Called at the beginning of the PIMPLE loop
virtual void prePredictor();

View File

@ -160,7 +160,7 @@ public:
virtual void preSolve() = 0;
//- Called at the start of the PIMPLE loop to move the mesh
virtual bool moveMesh() = 0;
virtual void moveMesh() = 0;
//- Called at the start of the PIMPLE loop
virtual void prePredictor() = 0;