32 IOobject::groupName(
"rAUf",
phase1.name()),
43 IOobject::groupName(
"rAUf",
phase2.name()),
54 tmp<surfaceScalarField>
Ff1;
55 tmp<surfaceScalarField>
Ff2;
74 if (implicitPhasePressure)
110 IOobject::groupName(
"alpharAUf",
phase1.name()),
116 IOobject::groupName(
"alpharAUf",
phase2.name()),
129 IOobject::groupName(
"phig",
phase1.name()),
140 IOobject::groupName(
"phig",
phase2.name()),
152 IOobject::groupName(
"phiHbyA",
phase1.name()),
160 *byDt(
MRF.absolute(
phi1.oldTime()))
170 IOobject::groupName(
"phiHbyA",
phase2.name()),
178 *byDt(
MRF.absolute(
phi2.oldTime()))
191 MRF.makeRelative(phiHbyA);
205 p_rgh.boundaryFieldRef(),
207 phiHbyA.boundaryField()
212 )/(
mesh.magSf().boundaryField()*rAUf.boundaryField())
215 tmp<fvScalarMatrix> pEqnComp1;
216 tmp<fvScalarMatrix> pEqnComp2;
220 if (
phase1.compressible())
226 IOobject::groupName(
"phid",
phase1.name()),
245 pEqnComp1.ref().relax();
262 if (
phase2.compressible())
268 IOobject::groupName(
"phid",
phase2.name()),
287 pEqnComp2.ref().relax();
304 if (
fluid.transfersMass())
306 if (pEqnComp1.valid())
315 if (pEqnComp2.valid())
328 while (
pimple.correctNonOrthogonal())
339 if (pEqnComp1.valid())
344 if (pEqnComp2.valid())
352 mesh.solver(p_rgh.select(
pimple.finalInnerIter()))
356 if (
pimple.finalNonOrthogonalIter())
360 phi = phiHbyA + pEqnIncomp.flux();
365 + alpharAUf1*mSfGradp
372 + alpharAUf2*mSfGradp
386 U1.correctBoundaryConditions();
390 U2.correctBoundaryConditions();
394 if (pEqnComp1.valid())
396 phase1.divU(-pEqnComp1 & p_rgh);
398 if (pEqnComp2.valid())
400 phase2.divU(-pEqnComp2 & p_rgh);
418 p_rgh.correctBoundaryConditions();
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
Return the correction form of the given matrix.
fvMatrix< scalar > fvScalarMatrix
surfaceScalarField alphaf1("alphaf1", fvc::interpolate(alpha1))
surfaceScalarField alpharAUf2(fvc::interpolate(max(alpha2, phase2.residualAlpha()) *rAU2))
surfaceScalarField & phi2
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
surfaceScalarField Df2(fvc::interpolate(D+phase2.turbulence().pPrime()))
dimensionedSymmTensor sqr(const dimensionedVector &dv)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
surfaceScalarField & alphaPhi2
const dictionary & pimple
surfaceScalarField Df1(fvc::interpolate(D+phase1.turbulence().pPrime()))
const surfaceScalarField & alphaPhi1
surfaceScalarField & phi1
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
const surfaceScalarField & ghf
surfaceScalarField Ff(fluid.Ff())
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
surfaceScalarField Kdf("Kdf", fluid.Kdf())
surfaceScalarField snGradAlpha1(fvc::snGrad(alpha1) *mesh.magSf())
surfaceScalarField phir(fvc::flux(UdmModel.Udm()))
surfaceScalarField alphaRhof10("alphaRhof10", fvc::interpolate(max(alpha1.oldTime(), phase1.residualAlpha()) *rho1.oldTime()))
tmp< surfaceScalarField > tddtPhi2
const dimensionedVector & g
dimensionedScalar pMin("pMin", dimPressure, fluid)
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
surfaceScalarField alphaRhof20("alphaRhof20", fvc::interpolate(max(alpha2.oldTime(), phase2.residualAlpha()) *rho2.oldTime()))
surfaceScalarField rAUf("rAUf", fvc::interpolate(rAU))
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> reconstruct(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
tmp< surfaceScalarField > tddtPhi1
surfaceScalarField ghSnGradRho(ghf *fvc::snGrad(rho) *mesh.magSf())
surfaceScalarField alpharAUf1(fvc::interpolate(max(alpha1, phase1.residualAlpha()) *rAU1))
tmp< surfaceScalarField > Ff2
setSnGrad< fixedFluxPressureFvPatchScalarField >(p_rgh.boundaryFieldRef(),(phiHbyA.boundaryField() - MRF.relative(phib))/(mesh.magSf().boundaryField() *rAUf.boundaryField()))
const volScalarField & gh
volScalarField p_rgh_0(p_rgh)
dimensioned< scalar > mag(const dimensioned< Type > &)
surfaceScalarField rAUf1(IOobject::groupName("rAUf", phase1.name()), 1.0/(byDt(alphaRhof10+Vmf)+fvc::interpolate(U1Eqn.A())+Kdf))
const dimensionedScalar & rho2
surfaceScalarField Vmf("Vmf", fluid.Vmf())
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
surfaceScalarField alphaf2("alphaf2", scalar(1) - alphaf1)
const dimensionedScalar & rho1
void deleteDemandDrivenData(DataPtr &dataPtr)
surfaceScalarField rAUf2(IOobject::groupName("rAUf", phase2.name()), 1.0/(byDt(alphaRhof20+Vmf)+fvc::interpolate(U2Eqn.A())+Kdf))
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
tmp< surfaceScalarField > Ff1