Skip to content
Snippets Groups Projects
Commit 6e716c66 authored by Andrew Heather's avatar Andrew Heather Committed by Andrew Heather
Browse files

ENH: pimpleFoam - ddtCorr now optional

parent 88dd3a18
Branches
Tags
1 merge request!367AMI code enhancements
volScalarField rAU(1.0/UEqn.A());
volVectorField HbyA(constrainHbyA(rAU*UEqn.H(), U, p));
surfaceScalarField phiHbyA
(
"phiHbyA",
fvc::flux(HbyA)
+ MRF.zeroFilter(fvc::interpolate(rAU)*fvc::ddtCorr(U, phi, Uf))
);
surfaceScalarField phiHbyA("phiHbyA", fvc::flux(HbyA));
if (pimple.ddtCorr())
{
phiHbyA += MRF.zeroFilter(fvc::interpolate(rAU)*fvc::ddtCorr(U, phi, Uf));
}
MRF.makeRelative(phiHbyA);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment