32 IOobject::groupName(
"rAUf",
phase1.name()),
43 IOobject::groupName(
"rAUf",
phase2.name()),
54 tmp<surfaceScalarField>
Ff1;
55 tmp<surfaceScalarField>
Ff2;
74 if (implicitPhasePressure)
112 IOobject::groupName(
"alpharAUf",
phase1.name()),
118 IOobject::groupName(
"alpharAUf",
phase2.name()),
131 IOobject::groupName(
"phig",
phase1.name()),
142 IOobject::groupName(
"phig",
phase2.name()),
154 IOobject::groupName(
"phiHbyA",
phase1.name()),
162 *
MRF.absolute(
phi1.oldTime())/runTime.deltaT()
172 IOobject::groupName(
"phiHbyA",
phase2.name()),
180 *
MRF.absolute(
phi2.oldTime())/runTime.deltaT()
193 MRF.makeRelative(phiHbyA);
207 p_rgh.boundaryFieldRef(),
209 phiHbyA.boundaryField()
214 )/(
mesh.magSf().boundaryField()*rAUf.boundaryField())
217 tmp<fvScalarMatrix> pEqnComp1;
218 tmp<fvScalarMatrix> pEqnComp2;
224 IOobject::groupName(
"phid",
phase1.name()),
229 IOobject::groupName(
"phid",
phase2.name()),
247 pEqnComp1.ref().relax();
263 pEqnComp2.ref().relax();
285 while (
pimple.correctNonOrthogonal())
295 pEqnComp1() + pEqnComp2() + pEqnIncomp,
296 mesh.solver(p_rgh.select(
pimple.finalInnerIter()))
299 if (
pimple.finalNonOrthogonalIter())
303 phi = phiHbyA + pEqnIncomp.flux();
308 + alpharAUf1*mSfGradp
315 + alpharAUf2*mSfGradp
329 U1.correctBoundaryConditions();
333 U2.correctBoundaryConditions();
341 -
alpha2*(pEqnComp1 & p_rgh)
359 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 & 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
surfaceScalarField alphaRhof10("alphaRhof10", fvc::interpolate(max(alpha1.oldTime(), phase1.residualAlpha())*rho1.oldTime()))
const dictionary & pimple
tmp< GeometricField< Type, fvPatchField, volMesh > > Sp(const volScalarField &sp, const GeometricField< Type, fvPatchField, volMesh > &vf)
surfaceScalarField Df1(fvc::interpolate(D+phase1.turbulence().pPrime()))
surfaceScalarField & phi1
tmp< surfaceScalarField > interpolate(const RhoType &rho)
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
surfaceScalarField phir(phic *interface.nHatf())
const surfaceScalarField & ghf
surfaceScalarField Ff(fluid.Ff())
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
surfaceScalarField snGradAlpha1(fvc::snGrad(alpha1)*mesh.magSf())
GeometricField< scalar, fvPatchField, volMesh > volScalarField
surfaceScalarField Kdf("Kdf", fluid.Kdf())
surfaceScalarField ghSnGradRho(ghf *fvc::snGrad(rho)*mesh.magSf())
surfaceScalarField alpharAUf1(fvc::interpolate(max(alpha1, phase1.residualAlpha())*rAU1))
surfaceScalarField alpharAUf2(fvc::interpolate(max(alpha2, phase2.residualAlpha())*rAU2))
surfaceScalarField rAUf1(IOobject::groupName("rAUf", phase1.name()), 1.0/((alphaRhof10+Vmf)/runTime.deltaT()+fvc::interpolate(U1Eqn.A())+Kdf))
dimensioned< scalar > magSqr(const dimensioned< Type > &)
const dimensionedVector & g
setSnGrad< fixedFluxPressureFvPatchScalarField >(p_rgh.boundaryFieldRef(),(phiHbyA.boundaryField()-MRF.relative(phib))/(mesh.magSf().boundaryField()*rAUf.boundaryField()))
dimensionedScalar pMin("pMin", dimPressure, fluid)
surfaceScalarField rAUf("rAUf", fvc::interpolate(rAU))
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> reconstruct(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
surfaceScalarField rAUf2(IOobject::groupName("rAUf", phase2.name()), 1.0/((alphaRhof20+Vmf)/runTime.deltaT()+fvc::interpolate(U2Eqn.A())+Kdf))
tmp< surfaceScalarField > Ff2
const volScalarField & gh
volScalarField p_rgh_0(p_rgh)
dimensioned< scalar > mag(const dimensioned< Type > &)
surfaceScalarField Vmf("Vmf", fluid.Vmf())
surfaceScalarField alphaf2("alphaf2", scalar(1)-alphaf1)
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
surfaceScalarField alphaRhof20("alphaRhof20", fvc::interpolate(max(alpha2.oldTime(), phase2.residualAlpha())*rho2.oldTime()))
void deleteDemandDrivenData(DataPtr &dataPtr)
surfaceScalarField & alphaPhi1
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
tmp< surfaceScalarField > Ff1