Commit 0bcb6aa8 authored by andy's avatar andy
Browse files

ENH: rhoSimpleFoam - updated handling of generic sources

parent 5128ae22
......@@ -4,6 +4,8 @@
(
fvm::div(phi, U)
+ turbulence->divDevRhoReff(U)
==
sources(rho, U)
);
UEqn().relax();
......
......@@ -6,7 +6,7 @@
volScalarField rAU(1.0/UEqn().A());
volVectorField HbyA("HbyA", U);
HbyA = rAU*(UEqn() == sources(rho, U))().H();
HbyA = rAU*UEqn().H();
UEqn.clear();
......@@ -20,6 +20,8 @@
fvc::interpolate(psi)*(fvc::interpolate(HbyA) & mesh.Sf())
);
sources.relativeFlux(fvc::interpolate(psi), phid);
while (simple.correctNonOrthogonal())
{
fvScalarMatrix pEqn
......@@ -53,6 +55,8 @@
fvc::interpolate(rho)*(fvc::interpolate(HbyA) & mesh.Sf())
);
sources.relativeFlux(fvc::interpolate(rho), phiHbyA);
closedVolume = adjustPhi(phiHbyA, U, p);
while (simple.correctNonOrthogonal())
......
Supports Markdown
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