Changing header in tutorial files and updating pEq.H

This commit is contained in:
sergio
2016-06-03 09:31:56 -07:00
parent 45264f1b2d
commit af648d7c89
30 changed files with 39 additions and 528677 deletions

View File

@ -1,11 +1,10 @@
{
volVectorField HbyA("HbyA", U);
HbyA = rAUc*UEqn.H();
volVectorField HbyA(constrainHbyA(rAUc*UEqn.H(), U, p_rgh));
surfaceScalarField phiHbyA
(
"phiHbyA",
(fvc::interpolate(HbyA) & mesh.Sf())
fvc::flux(HbyA)
+ alphacf*fvc::interpolate(rho*rAUc)*fvc::ddtCorr(U, phi)
);
@ -23,15 +22,8 @@
phiHbyA += phig;
// Update the fixedFluxPressure BCs to ensure flux consistency
setSnGrad<fixedFluxPressureFvPatchScalarField>
(
p_rgh.boundaryField(),
(
phiHbyA.boundaryField()
- MRF.relative(mesh.Sf().boundaryField() & U.boundaryField())
)/(mesh.magSf().boundaryField()*rAUcf.boundaryField())
);
// Update the pressure BCs to ensure flux consistency
constrainPressure(p_rgh, U, phiHbyA, rAUcf, MRF);
while (pimple.correctNonOrthogonal())
{