Made consistent with respect to pd BC and ddtPhiCorr

This commit is contained in:
henry
2008-06-27 17:30:28 +01:00
parent 53cb0c6cc4
commit 0912c6c790
4 changed files with 4 additions and 19 deletions

View File

@ -1,8 +1,5 @@
bool closedVolume = pd.needReference();
//pd.boundaryField() ==
// p.boundaryField() - rho.boundaryField()*gh.boundaryField() - pRef.value();
rho = thermo->rho();
volScalarField rUA = 1.0/UEqn.A();

View File

@ -1,6 +1,3 @@
pd.boundaryField() ==
p.boundaryField() - rho.boundaryField()*gh.boundaryField() - pRef.value();
volScalarField rUA = 1.0/UEqn().A();
U = rUA*UEqn().H();
UEqn.clear();

View File

@ -1,6 +1,3 @@
pd.boundaryField() ==
p.boundaryField() - rho.boundaryField()*gh.boundaryField() - pRef.value();
volScalarField rUA = 1.0/UEqn().A();
U = rUA*UEqn().H();
UEqn.clear();

View File

@ -1,11 +1,6 @@
{
bool closedVolume = false;
//pdf[i].boundaryField() ==
// thermof[i].p().boundaryField()
// - rhof[i].boundaryField()*ghf[i].boundaryField()
// - pRef.value();
rhof[i] = thermof[i].rho();
volScalarField rUA = 1.0/UEqn().A();
@ -15,11 +10,11 @@
fvc::interpolate(rhof[i])
*(
(fvc::interpolate(Uf[i]) & fluidRegions[i].Sf())
// + fvc::ddtPhiCorr(rUA, rhof[i], Uf[i], phif[i])
+ fvc::ddtPhiCorr(rUA, rhof[i], Uf[i], phif[i])
)
- fvc::interpolate(rhof[i]*rUA*ghf[i])
*fvc::snGrad(rhof[i])
*fluidRegions[i].magSf();
*fvc::snGrad(rhof[i])
*fluidRegions[i].magSf();
// Solve pressure difference
# include "pdEqn.H"
@ -55,8 +50,7 @@
initialMassf[i]
)
- fvc::domainIntegrate(thermof[i].psi()*thermof[i].p())
)
/fvc::domainIntegrate(thermof[i].psi());
)/fvc::domainIntegrate(thermof[i].psi());
rhof[i] = thermof[i].rho();
}