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();
|
||||
|
||||
//pd.boundaryField() ==
|
||||
// p.boundaryField() - rho.boundaryField()*gh.boundaryField() - pRef.value();
|
||||
|
||||
rho = thermo->rho();
|
||||
|
||||
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();
|
||||
U = rUA*UEqn().H();
|
||||
UEqn.clear();
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user