multiphase and fireFoam: set phi based on the interpolated U before the pEqn construction for the p BCs

This commit is contained in:
Henry
2012-08-02 15:29:08 +01:00
parent 30eba3882a
commit b94d46d0e7
14 changed files with 64 additions and 75 deletions

View File

@ -5,8 +5,8 @@ surfaceScalarField rhorAUf("Dp", fvc::interpolate(rho*rAU));
volVectorField HbyA("HbyA", U);
HbyA = rAU*UEqn.H();
phi.boundaryField() =
fvc::interpolate(rho.boundaryField())
*(fvc::interpolate(U.boundaryField()) & mesh.Sf().boundaryField());
fvc::interpolate(rho.boundaryField()*U.boundaryField())
& mesh.Sf().boundaryField();
surfaceScalarField phig(-rhorAUf*ghf*fvc::snGrad(rho)*mesh.magSf());