6 IOobject::groupName(
"rAU",
phase1.name()),
16 IOobject::groupName(
"rAU",
phase2.name()),
61 if (implicitPhasePressure)
97 IOobject::groupName(
"HbyA",
phase1.name()),
110 IOobject::groupName(
"HbyA",
phase2.name()),
152 surfaceScalarField::Boundary& phiCorrCoeff1Bf =
153 phiCorrCoeff1.boundaryFieldRef();
155 surfaceScalarField::Boundary& phiCorrCoeff2Bf =
156 phiCorrCoeff2.boundaryFieldRef();
164 || isA<cyclicAMIFvPatch>(
mesh.boundary()[
patchi])
167 phiCorrCoeff1Bf[
patchi] = 0;
168 phiCorrCoeff2Bf[
patchi] = 0;
176 IOobject::groupName(
"phiHbyA",
phase1.name()),
190 IOobject::groupName(
"phiHbyA",
phase2.name()),
213 MRF.makeRelative(phiHbyA);
225 p_rgh.boundaryFieldRef(),
227 phiHbyA.boundaryField()
232 )/(
mesh.magSf().boundaryField()*rAUf.boundaryField())
235 tmp<fvScalarMatrix> pEqnComp1;
236 tmp<fvScalarMatrix> pEqnComp2;
243 IOobject::groupName(
"phid",
phase1.name()),
248 IOobject::groupName(
"phid",
phase2.name()),
265 pEqnComp1.ref().relax();
280 pEqnComp2.ref().relax();
303 while (
pimple.correctNonOrthogonal())
314 pEqnComp1() + pEqnComp2() + pEqnIncomp,
315 mesh.solver(p_rgh.select(
pimple.finalInnerIter()))
319 if (
pimple.finalNonOrthogonalIter())
321 phi = phiHbyA + pEqnIncomp.flux();
334 phiHbyA2 + alpharAUf2*mSfGradp
339 ((phi1s + rAUKd1*phi2s) - (phi2s + rAUKd2*phi1s))
351 -
alpha2*(pEqnComp1 & p_rgh)
357 mSfGradp = pEqnIncomp.flux()/
rAUf;
380 U1.correctBoundaryConditions();
384 U2.correctBoundaryConditions();
405 p_rgh.correctBoundaryConditions();
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
Return the correction form of the given matrix.
fvMatrix< scalar > fvScalarMatrix
const surfaceScalarField & alphaPhi2
pimpleNoLoopControl & pimple
surfaceScalarField & phi2
const volScalarField rAUKd2(rAU2 *Kd)
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 > &)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
const surfaceScalarField & alphaPhi1
surfaceScalarField & phi1
GeometricField< vector, fvPatchField, volMesh > volVectorField
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
const volScalarField Kd(fluid.Kd())
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
volVectorField F(fluid.F())
dimensioned< scalar > magSqr(const dimensioned< Type > &)
dimensionedScalar pos0(const dimensionedScalar &ds)
const surfaceScalarField & ghf
dimensionedScalar pMin("pMin", dimPressure, fluid)
const volScalarField & rAU2
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 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()))
const volScalarField & rAU1
volScalarField p_rgh_0(p_rgh)
const surfaceScalarField & phiF1
const volScalarField & gh
tmp< GeometricField< Type, fvPatchField, volMesh > > average(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Area-weighted average a surfaceField creating a volField.
dimensioned< scalar > mag(const dimensioned< Type > &)
const dimensionedScalar & rho2
const volScalarField rAUKd1(rAU1 *Kd)
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const dimensionedVector & g
const dimensionedScalar & rho1
const surfaceScalarField & phiF2
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))