fvMatrixSolve: Use standard solver settings rather than ".*Final" when running steady

For transient solvers which support steady operation using the steadyState ddt
scheme the ".*Final" solver settings are now only used for the final PIMPLE
iteration when running transient; for stead running the standard solver settings
are used for all PIMPLE iterations for compatibility with the equivalent steady
solvers.  This makes it easier to maintain both transient and steady cases for
transient solvers.
This commit is contained in:
Henry Weller
2022-02-17 09:34:23 +00:00
parent fd3cfe4364
commit 457230b4f9

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-2022 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -286,7 +286,8 @@ Foam::fvMatrix<Type>::solver()
(
psi_.select
(
psi_.mesh().data::template lookupOrDefault<bool>
!psi_.mesh().steady()
&& psi_.mesh().data::template lookupOrDefault<bool>
("finalIteration", false)
)
)
@ -303,7 +304,8 @@ Foam::SolverPerformance<Type> Foam::fvMatrix<Type>::fvSolver::solve()
(
fvMat_.psi_.select
(
fvMat_.psi_.mesh().data::template lookupOrDefault<bool>
!psi_.mesh().steady()
&& fvMat_.psi_.mesh().data::template lookupOrDefault<bool>
("finalIteration", false)
)
)
@ -318,7 +320,8 @@ Foam::SolverPerformance<Type> Foam::fvMatrix<Type>::solve(const word& name)
(
psi_.mesh().solverDict
(
psi_.mesh().data::template lookupOrDefault<bool>
!psi_.mesh().steady()
&& psi_.mesh().data::template lookupOrDefault<bool>
("finalIteration", false)
? word(name + "Final")
: name
@ -336,7 +339,8 @@ Foam::SolverPerformance<Type> Foam::fvMatrix<Type>::solve()
(
psi_.select
(
psi_.mesh().data::template lookupOrDefault<bool>
!psi_.mesh().steady()
&& psi_.mesh().data::template lookupOrDefault<bool>
(
"finalIteration",
false