applications/solvers: Added fvOptions.correct()

to support new fvOptions that solve equations and provide sources to multiple
fields.
This commit is contained in:
Henry Weller
2021-02-24 08:34:50 +00:00
parent ba1e6da3b1
commit 9c82a94e31
40 changed files with 114 additions and 35 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-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -151,6 +151,8 @@ int main(int argc, char *argv[])
#include "rhoEqn.H"
}
fvOptions.correct();
#include "UEqn.H"
#include "EEqn.H"

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-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -61,6 +61,8 @@ int main(int argc, char *argv[])
{
Info<< "Time = " << runTime.timeName() << nl << endl;
fvOptions.correct();
// Pressure-velocity SIMPLE corrector
#include "UEqn.H"
#include "EEqn.H"