solver: Remove unused bool return from moveMesh method
This commit is contained in:
@ -212,7 +212,7 @@ public:
|
|||||||
virtual void preSolve();
|
virtual void preSolve();
|
||||||
|
|
||||||
//- Called at the start of the PIMPLE loop to move the mesh
|
//- 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
|
//- Called at the start of the PIMPLE loop
|
||||||
virtual void prePredictor() = 0;
|
virtual void prePredictor() = 0;
|
||||||
|
|||||||
@ -29,7 +29,7 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
bool Foam::solvers::VoFSolver::moveMesh()
|
void Foam::solvers::VoFSolver::moveMesh()
|
||||||
{
|
{
|
||||||
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
|
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
|
||||||
{
|
{
|
||||||
@ -102,16 +102,10 @@ bool Foam::solvers::VoFSolver::moveMesh()
|
|||||||
meshCourantNo();
|
meshCourantNo();
|
||||||
|
|
||||||
correctInterface();
|
correctInterface();
|
||||||
|
|
||||||
divU.clear();
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
divU.clear();
|
divU.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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) 2022 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2022-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -174,7 +174,7 @@ public:
|
|||||||
virtual void preSolve();
|
virtual void preSolve();
|
||||||
|
|
||||||
//- Called at the start of the PIMPLE loop to move the mesh
|
//- 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
|
//- Called at the start of the PIMPLE loop
|
||||||
virtual void prePredictor();
|
virtual void prePredictor();
|
||||||
|
|||||||
@ -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) 2022 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2022-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -29,7 +29,7 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
bool Foam::solvers::incompressibleFluid::moveMesh()
|
void Foam::solvers::incompressibleFluid::moveMesh()
|
||||||
{
|
{
|
||||||
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
|
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
|
||||||
{
|
{
|
||||||
@ -67,12 +67,8 @@ bool Foam::solvers::incompressibleFluid::moveMesh()
|
|||||||
}
|
}
|
||||||
|
|
||||||
meshCourantNo();
|
meshCourantNo();
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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) 2022 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2022-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -239,7 +239,7 @@ public:
|
|||||||
virtual void preSolve();
|
virtual void preSolve();
|
||||||
|
|
||||||
//- Called at the start of the PIMPLE loop to move the mesh
|
//- 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
|
//- Called at the start of the PIMPLE loop
|
||||||
virtual void prePredictor();
|
virtual void prePredictor();
|
||||||
|
|||||||
@ -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) 2022 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2022-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -28,7 +28,7 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
bool Foam::solvers::isothermalFluid::moveMesh()
|
void Foam::solvers::isothermalFluid::moveMesh()
|
||||||
{
|
{
|
||||||
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
|
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
|
||||||
{
|
{
|
||||||
@ -76,12 +76,8 @@ bool Foam::solvers::isothermalFluid::moveMesh()
|
|||||||
}
|
}
|
||||||
|
|
||||||
meshCourantNo();
|
meshCourantNo();
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -71,16 +71,12 @@ void Foam::solvers::movingMesh::preSolve()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Foam::solvers::movingMesh::moveMesh()
|
void Foam::solvers::movingMesh::moveMesh()
|
||||||
{
|
{
|
||||||
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
|
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
|
||||||
{
|
{
|
||||||
mesh.move();
|
mesh.move();
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -89,7 +89,7 @@ public:
|
|||||||
virtual void preSolve();
|
virtual void preSolve();
|
||||||
|
|
||||||
//- Called at the start of the PIMPLE loop to move the mesh
|
//- 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
|
//- Called at the beginning of the PIMPLE loop
|
||||||
virtual void prePredictor();
|
virtual void prePredictor();
|
||||||
|
|||||||
@ -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) 2022 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2022-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -29,7 +29,7 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
bool Foam::solvers::multiphaseEuler::moveMesh()
|
void Foam::solvers::multiphaseEuler::moveMesh()
|
||||||
{
|
{
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
@ -69,16 +69,10 @@ bool Foam::solvers::multiphaseEuler::moveMesh()
|
|||||||
);
|
);
|
||||||
|
|
||||||
meshCourantNo();
|
meshCourantNo();
|
||||||
|
|
||||||
divU.clear();
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
divU.clear();
|
divU.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -217,7 +217,7 @@ public:
|
|||||||
virtual void preSolve();
|
virtual void preSolve();
|
||||||
|
|
||||||
//- Called at the start of the PIMPLE loop to move the mesh
|
//- 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
|
//- Called at the start of the PIMPLE loop
|
||||||
virtual void prePredictor();
|
virtual void prePredictor();
|
||||||
|
|||||||
@ -27,7 +27,7 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
bool Foam::solvers::shockFluid::moveMesh()
|
void Foam::solvers::shockFluid::moveMesh()
|
||||||
{
|
{
|
||||||
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
|
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
|
||||||
{
|
{
|
||||||
@ -41,12 +41,8 @@ bool Foam::solvers::shockFluid::moveMesh()
|
|||||||
}
|
}
|
||||||
|
|
||||||
meshCourantNo();
|
meshCourantNo();
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -224,7 +224,7 @@ public:
|
|||||||
virtual void preSolve();
|
virtual void preSolve();
|
||||||
|
|
||||||
//- Called at the start of the PIMPLE loop to move the mesh
|
//- 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
|
//- Called at the start of the PIMPLE loop
|
||||||
virtual void prePredictor();
|
virtual void prePredictor();
|
||||||
|
|||||||
@ -160,7 +160,7 @@ void Foam::solvers::solid::preSolve()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Foam::solvers::solid::moveMesh()
|
void Foam::solvers::solid::moveMesh()
|
||||||
{
|
{
|
||||||
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
|
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
|
||||||
{
|
{
|
||||||
@ -173,16 +173,9 @@ bool Foam::solvers::solid::moveMesh()
|
|||||||
}
|
}
|
||||||
|
|
||||||
mesh.move();
|
mesh.move();
|
||||||
|
|
||||||
if (mesh.changing())
|
|
||||||
{
|
|
||||||
return mesh.moving();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void Foam::solvers::solid::prePredictor()
|
void Foam::solvers::solid::prePredictor()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -130,7 +130,7 @@ public:
|
|||||||
virtual void preSolve();
|
virtual void preSolve();
|
||||||
|
|
||||||
//- Called at the start of the PIMPLE loop to move the mesh
|
//- 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
|
//- Called at the beginning of the PIMPLE loop
|
||||||
virtual void prePredictor();
|
virtual void prePredictor();
|
||||||
|
|||||||
@ -160,7 +160,7 @@ public:
|
|||||||
virtual void preSolve() = 0;
|
virtual void preSolve() = 0;
|
||||||
|
|
||||||
//- Called at the start of the PIMPLE loop to move the mesh
|
//- 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
|
//- Called at the start of the PIMPLE loop
|
||||||
virtual void prePredictor() = 0;
|
virtual void prePredictor() = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user