ENH: ddtScheme::fvcDdtPhiCoeff: Improved formulation providing better stability/accuracy balance

Resolves problem with pressure "staggering" when running with a very Courant
number.
This commit is contained in:
Henry Weller
2018-01-08 21:35:00 +00:00
committed by Andrew Heather
parent 4272820fca
commit fe4752d28a
10 changed files with 508 additions and 74 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -148,7 +148,7 @@ int main(int argc, char *argv[])
volScalarField rAB(1.0/BEqn.A());
surfaceScalarField rABf("rABf", fvc::interpolate(rAB));
phiB = fvc::flux(B) + rABf*fvc::ddtCorr(B, phiB);
phiB = fvc::flux(B);
while (bpiso.correctNonOrthogonal())
{