mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated sources handling in rhoPimpleFoam
This commit is contained in:
@ -5,6 +5,8 @@ tmp<fvVectorMatrix> UEqn
|
|||||||
fvm::ddt(rho, U)
|
fvm::ddt(rho, U)
|
||||||
+ fvm::div(phi, U)
|
+ fvm::div(phi, U)
|
||||||
+ turbulence->divDevRhoReff(U)
|
+ turbulence->divDevRhoReff(U)
|
||||||
|
==
|
||||||
|
sources(rho, U)
|
||||||
);
|
);
|
||||||
|
|
||||||
UEqn().relax();
|
UEqn().relax();
|
||||||
@ -13,6 +15,6 @@ sources.constrain(UEqn());
|
|||||||
|
|
||||||
if (pimple.momentumPredictor())
|
if (pimple.momentumPredictor())
|
||||||
{
|
{
|
||||||
solve(UEqn() == -fvc::grad(p) + sources(rho, U));
|
solve(UEqn() == -fvc::grad(p));
|
||||||
K = 0.5*magSqr(U);
|
K = 0.5*magSqr(U);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,6 +24,8 @@ if (pimple.transonic())
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
sources.relatoiveFlux(fvc::interpolate(psi), phid);
|
||||||
|
|
||||||
volScalarField Dp("Dp", rho*rAU);
|
volScalarField Dp("Dp", rho*rAU);
|
||||||
|
|
||||||
while (pimple.correctNonOrthogonal())
|
while (pimple.correctNonOrthogonal())
|
||||||
@ -59,6 +61,8 @@ else
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
sources.relatoiveFlux(fvc::interpolate(rho), phiHbyA);
|
||||||
|
|
||||||
volScalarField Dp("Dp", rho*rAU);
|
volScalarField Dp("Dp", rho*rAU);
|
||||||
|
|
||||||
while (pimple.correctNonOrthogonal())
|
while (pimple.correctNonOrthogonal())
|
||||||
|
|||||||
Reference in New Issue
Block a user