Go to the documentation of this file.
6 IOobject::groupName(
"rAU",
phase1.name()),
11 *
rho1/runTime.deltaT()
16 IOobject::groupName(
"rAU",
phase2.name()),
21 *
rho2/runTime.deltaT()
44 tmp<surfaceScalarField>
DbyA1
53 tmp<surfaceScalarField>
DbyA2
83 if (implicitPhasePressure)
103 IOobject::groupName(
"HbyA",
phase1.name()),
111 *
rho1*
U1.oldTime()/runTime.deltaT()
116 IOobject::groupName(
"HbyA",
phase2.name()),
124 *
rho2*
U2.oldTime()/runTime.deltaT()
166 || isA<cyclicAMIFvPatch>(
mesh.boundary()[
patchi])
169 phiCorrCoeff1.boundaryField()[
patchi] = 0;
170 phiCorrCoeff2.boundaryField()[
patchi] = 0;
177 IOobject::groupName(
"phiHbyA",
phase1.name()),
191 IOobject::groupName(
"phiHbyA",
phase2.name()),
226 p_rgh.boundaryField(),
233 )/(
mesh.magSf().boundaryField()*
rAUf.boundaryField())
236 tmp<fvScalarMatrix> pEqnComp1;
237 tmp<fvScalarMatrix> pEqnComp2;
242 if (
phase1.compressible())
246 IOobject::groupName(
"phid",
phase1.name()),
265 if (
phase2.compressible())
269 IOobject::groupName(
"phid",
phase2.name()),
289 if (
phase1.compressible())
299 if (
phase2.compressible())
310 if (
fluid.transfersMass())
312 if (pEqnComp1.valid())
321 if (pEqnComp2.valid())
335 while (
pimple.correctNonOrthogonal())
347 if (pEqnComp1.valid())
352 if (pEqnComp2.valid())
365 if (
pimple.finalNonOrthogonalIter())
385 ((phi1s + rAUKd1*phi2s) - (phi2s + rAUKd2*phi1s))
394 if (
phase1.compressible())
398 if (
phase2.compressible())
406 mSfGradp = pEqnIncomp.flux()/
rAUf;
429 U1.correctBoundaryConditions();
433 U2.correctBoundaryConditions();
452 p_rgh.correctBoundaryConditions();
surfaceScalarField alpharAUf2(fvc::interpolate(max(alpha2, phase2.residualAlpha()) *rAU2))
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> reconstruct(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
const surfaceScalarField & ghf
surfaceScalarField & phi1
surfaceScalarField snGradAlpha1(fvc::snGrad(alpha1) *mesh.magSf())
dimensionedScalar pMin("pMin", dimPressure, fluid)
tmp< surfaceScalarField > interpolate(const RhoType &rho)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
const dimensionedVector & g
setSnGrad< fixedFluxPressureFvPatchScalarField >(p_rgh.boundaryField(),(phiHbyA.boundaryField() - MRF.relative(mesh.Sf().boundaryField() &U.boundaryField()))/(mesh.magSf().boundaryField() *rAUf.boundaryField()))
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
Return the correction form of the given matrix.
surfaceScalarField & alphaPhi1
volScalarField Kd(fluid.Kd())
surfaceScalarField phir(phic *interface.nHatf())
dimensioned< scalar > mag(const dimensioned< Type > &)
tmp< GeometricField< Type, fvPatchField, volMesh > > average(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Area-weighted average a surfaceField creating a volField.
surfaceScalarField & phi2
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
void deleteDemandDrivenData(DataPtr &dataPtr)
fvMatrix< scalar > fvScalarMatrix
tmp< GeometricField< Type, fvPatchField, volMesh > > Su(const GeometricField< Type, fvPatchField, volMesh > &su, const GeometricField< Type, fvPatchField, volMesh > &vf)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const volScalarField & gh
volVectorField F(fluid.F())
volScalarField p_rgh_0(p_rgh)
surfaceScalarField alphaf1("alphaf1", fvc::interpolate(alpha1))
surfaceScalarField alpharAUf1(fvc::interpolate(max(alpha1, phase1.residualAlpha()) *rAU1))
GeometricField< vector, fvPatchField, volMesh > volVectorField
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
tmp< surfaceScalarField > DbyA1(fvc::interpolate(rAU1 *(D+phase1.turbulence().pPrime())))
volScalarField rAU2(IOobject::groupName("rAU", phase2.name()), 1.0/(U2Eqn.A()+max(phase2.residualAlpha() - alpha2, scalar(0)) *rho2/runTime.deltaT()))
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
surfaceScalarField ghSnGradRho(ghf *fvc::snGrad(rho) *mesh.magSf())
surfaceScalarField alphaf2("alphaf2", scalar(1) - alphaf1)
surfaceScalarField & alphaPhi2
const dictionary & pimple
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
tmp< GeometricField< Type, fvPatchField, volMesh > > Sp(const volScalarField &sp, const GeometricField< Type, fvPatchField, volMesh > &vf)
tmp< surfaceScalarField > phiF2
tmp< surfaceScalarField > DbyA2(fvc::interpolate(rAU2 *(D+phase2.turbulence().pPrime())))
volScalarField rAU1(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1/runTime.deltaT()))
tmp< surfaceScalarField > phiF1
dimensionedScalar pos(const dimensionedScalar &ds)
surfaceScalarField rAUf("rAUf", fvc::interpolate(rAU))