mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Made consistent with respect to pd BC and ddtPhiCorr
This commit is contained in:
@ -1,8 +1,5 @@
|
|||||||
bool closedVolume = pd.needReference();
|
bool closedVolume = pd.needReference();
|
||||||
|
|
||||||
//pd.boundaryField() ==
|
|
||||||
// p.boundaryField() - rho.boundaryField()*gh.boundaryField() - pRef.value();
|
|
||||||
|
|
||||||
rho = thermo->rho();
|
rho = thermo->rho();
|
||||||
|
|
||||||
volScalarField rUA = 1.0/UEqn.A();
|
volScalarField rUA = 1.0/UEqn.A();
|
||||||
|
|||||||
@ -1,6 +1,3 @@
|
|||||||
pd.boundaryField() ==
|
|
||||||
p.boundaryField() - rho.boundaryField()*gh.boundaryField() - pRef.value();
|
|
||||||
|
|
||||||
volScalarField rUA = 1.0/UEqn().A();
|
volScalarField rUA = 1.0/UEqn().A();
|
||||||
U = rUA*UEqn().H();
|
U = rUA*UEqn().H();
|
||||||
UEqn.clear();
|
UEqn.clear();
|
||||||
|
|||||||
@ -1,6 +1,3 @@
|
|||||||
pd.boundaryField() ==
|
|
||||||
p.boundaryField() - rho.boundaryField()*gh.boundaryField() - pRef.value();
|
|
||||||
|
|
||||||
volScalarField rUA = 1.0/UEqn().A();
|
volScalarField rUA = 1.0/UEqn().A();
|
||||||
U = rUA*UEqn().H();
|
U = rUA*UEqn().H();
|
||||||
UEqn.clear();
|
UEqn.clear();
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
{
|
{
|
||||||
bool closedVolume = false;
|
bool closedVolume = false;
|
||||||
|
|
||||||
//pdf[i].boundaryField() ==
|
|
||||||
// thermof[i].p().boundaryField()
|
|
||||||
// - rhof[i].boundaryField()*ghf[i].boundaryField()
|
|
||||||
// - pRef.value();
|
|
||||||
|
|
||||||
rhof[i] = thermof[i].rho();
|
rhof[i] = thermof[i].rho();
|
||||||
|
|
||||||
volScalarField rUA = 1.0/UEqn().A();
|
volScalarField rUA = 1.0/UEqn().A();
|
||||||
@ -15,7 +10,7 @@
|
|||||||
fvc::interpolate(rhof[i])
|
fvc::interpolate(rhof[i])
|
||||||
*(
|
*(
|
||||||
(fvc::interpolate(Uf[i]) & fluidRegions[i].Sf())
|
(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::interpolate(rhof[i]*rUA*ghf[i])
|
||||||
*fvc::snGrad(rhof[i])
|
*fvc::snGrad(rhof[i])
|
||||||
@ -55,8 +50,7 @@
|
|||||||
initialMassf[i]
|
initialMassf[i]
|
||||||
)
|
)
|
||||||
- fvc::domainIntegrate(thermof[i].psi()*thermof[i].p())
|
- fvc::domainIntegrate(thermof[i].psi()*thermof[i].p())
|
||||||
)
|
)/fvc::domainIntegrate(thermof[i].psi());
|
||||||
/fvc::domainIntegrate(thermof[i].psi());
|
|
||||||
|
|
||||||
rhof[i] = thermof[i].rho();
|
rhof[i] = thermof[i].rho();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user