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()),
172 IOobject::groupName(
"phiHbyA",
phase2.name()),
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()),
246 pEqnComp1.ref().relax();
261 pEqnComp2.ref().relax();
283 while (
pimple.correctNonOrthogonal())
293 pEqnComp1() + pEqnComp2() + pEqnIncomp,
294 mesh.solver(p_rgh.select(
pimple.finalInnerIter()))
297 if (
pimple.finalNonOrthogonalIter())
301 phi = phiHbyA + pEqnIncomp.flux();
306 + alpharAUf1*mSfGradp
313 + alpharAUf2*mSfGradp
327 U1.correctBoundaryConditions();
331 U2.correctBoundaryConditions();
339 -
alpha2*(pEqnComp1 & p_rgh)
357 p_rgh.correctBoundaryConditions();
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
Return the correction form of the given matrix.
surfaceScalarField Vmf("Vmf", fluid.Vmf())
fvMatrix< scalar > fvScalarMatrix
const surfaceScalarField & alphaPhi2
pimpleNoLoopControl & pimple
surfaceScalarField & phi2
const surfaceScalarField alpharAUf2(fvc::interpolate(max(alpha2, phase2.residualAlpha()) *rAU2))
surfaceScalarField Df1(fvc::interpolate(rAU1 *(D+phase1.turbulence().pPrime())))
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
const surfaceScalarField & rAUf2
const surfaceScalarField & alphaPhi1
surfaceScalarField & phi1
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
const surfaceScalarField alphaf2("alphaf2", scalar(1) - alphaf1)
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
surfaceScalarField phir(fvc::flux(UdmModel.Udm()))
const volScalarField & alpha1
surfaceScalarField alphaRhof10("alphaRhof10", fvc::interpolate(max(alpha1.oldTime(), phase1.residualAlpha()) *rho1.oldTime()))
dimensioned< scalar > magSqr(const dimensioned< Type > &)
tmp< surfaceScalarField > Ff1
const surfaceScalarField & ghf
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.
mixture thermo2().correctRho(psi2 *(p_rgh - p_rgh_0))
surfaceScalarField alphaRhof20("alphaRhof20", fvc::interpolate(max(alpha2.oldTime(), phase2.residualAlpha()) *rho2.oldTime()))
surfaceScalarField rAUf("rAUf", fvc::interpolate(rAU))
surfaceScalarField Df2(fvc::interpolate(rAU2 *(D+phase2.turbulence().pPrime())))
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> reconstruct(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
surfaceScalarField ghSnGradRho(ghf *fvc::snGrad(rho) *mesh.magSf())
surfaceScalarField snGradAlpha1(fvc::snGrad(alpha1) *mesh.magSf())
setSnGrad< fixedFluxPressureFvPatchScalarField >(p_rgh.boundaryFieldRef(),(phiHbyA.boundaryField() - MRF.relative(phib))/(mesh.magSf().boundaryField() *rAUf.boundaryField()))
tmp< surfaceScalarField > Ff2
volScalarField p_rgh_0(p_rgh)
const surfaceScalarField Kdf("Kdf", fluid.Kdf())
const volScalarField & gh
dimensioned< scalar > mag(const dimensioned< Type > &)
const dimensionedScalar & rho2
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
surfaceScalarField Ff(fluid.Ff())
const dimensionedVector & g
const dimensionedScalar & rho1
const surfaceScalarField & rAUf1
const surfaceScalarField alphaf1("alphaf1", fvc::interpolate(alpha1))
const surfaceScalarField alpharAUf1(fvc::interpolate(max(alpha1, phase1.residualAlpha()) *rAU1))
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
mixture thermo1().correctRho(psi1 *(p_rgh - p_rgh_0))