Skip to content
Snippets Groups Projects
Commit c7da0a5c authored by andy's avatar andy
Browse files

ENH: Updated sources handling in rhoPimpleFoam

parent 12ec31f0
Branches
Tags
No related merge requests found
......@@ -5,6 +5,8 @@ tmp<fvVectorMatrix> UEqn
fvm::ddt(rho, U)
+ fvm::div(phi, U)
+ turbulence->divDevRhoReff(U)
==
sources(rho, U)
);
UEqn().relax();
......@@ -13,6 +15,6 @@ sources.constrain(UEqn());
if (pimple.momentumPredictor())
{
solve(UEqn() == -fvc::grad(p) + sources(rho, U));
solve(UEqn() == -fvc::grad(p));
K = 0.5*magSqr(U);
}
......@@ -24,6 +24,8 @@ if (pimple.transonic())
)
);
sources.relatoiveFlux(fvc::interpolate(psi), phid);
volScalarField Dp("Dp", rho*rAU);
while (pimple.correctNonOrthogonal())
......@@ -59,6 +61,8 @@ else
)
);
sources.relatoiveFlux(fvc::interpolate(rho), phiHbyA);
volScalarField Dp("Dp", rho*rAU);
while (pimple.correctNonOrthogonal())
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment