DPMDyMFoam, DPMDyMFoam: Corrected support for closed-domain simulations
Also added support for extrapolated pressure boundary conditions.
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
{
|
||||
volVectorField HbyA("HbyA", Uc);
|
||||
HbyA = rAUc*UcEqn.H();
|
||||
volVectorField HbyA(constrainHbyA(rAUc*UcEqn.H(), Uc, p));
|
||||
|
||||
surfaceScalarField phiHbyA
|
||||
(
|
||||
@ -8,7 +7,6 @@
|
||||
(
|
||||
fvc::flux(HbyA)
|
||||
+ alphacf*rAUcf*fvc::ddtCorr(Uc, Ucf)
|
||||
+ phicForces
|
||||
)
|
||||
);
|
||||
|
||||
@ -19,6 +17,8 @@
|
||||
fvc::makeAbsolute(phiHbyA, Uc);
|
||||
}
|
||||
|
||||
phiHbyA += phicForces;
|
||||
|
||||
// Update the pressure BCs to ensure flux consistency
|
||||
constrainPressure(p, Uc, phiHbyA, rAUcf);
|
||||
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
{
|
||||
volVectorField HbyA("HbyA", Uc);
|
||||
HbyA = rAUc*UcEqn.H();
|
||||
volVectorField HbyA(constrainHbyA(rAUc*UcEqn.H(), Uc, p));
|
||||
|
||||
surfaceScalarField phiHbyA
|
||||
(
|
||||
@ -8,10 +7,16 @@
|
||||
(
|
||||
fvc::flux(HbyA)
|
||||
+ alphacf*rAUcf*fvc::ddtCorr(Uc, phic)
|
||||
+ phicForces
|
||||
)
|
||||
);
|
||||
|
||||
if (p.needReference())
|
||||
{
|
||||
adjustPhi(phiHbyA, Uc, p);
|
||||
}
|
||||
|
||||
phiHbyA += phicForces;
|
||||
|
||||
// Update the pressure BCs to ensure flux consistency
|
||||
constrainPressure(p, Uc, phiHbyA, rAUcf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user