18 IOobject::groupName(
"rAU", phase.name()),
22 +
max(phase.residualAlpha() -
alpha, scalar(0))
23 *phase.rho()/runTime.deltaT()
40 autoPtr<PtrList<volVectorField> > Fs =
fluid.Fs();
53 IOobject::groupName(
"phiF", phase.name()),
61 autoPtr<PtrList<surfaceScalarField> > phiDs =
fluid.phiDs(
rAUs);
80 IOobject::groupName(
"phiF", phase.name()),
108 MRF.correctBoundaryFlux(phase.U(), phase.phi());
115 IOobject::groupName(
"HbyA", phase.name()),
124 +
max(phase.residualAlpha() -
alpha, scalar(0))
125 *phase.rho()*phase.U().oldTime()/runTime.deltaT()
135 PtrList<surfaceScalarField> phigFs(
phases.size());
148 -
fluid.surfaceTension(phase)*
mesh.magSf()
193 || isA<cyclicAMIFvPatch>(
mesh.boundary()[
patchi])
196 phiCorrCoeff.boundaryField()[
patchi] = 0;
205 IOobject::groupName(
"phiHbyA", phase.name()),
213 MRF.absolute(phase.phi().oldTime())
222 phaseSystem::KdTable,
229 const phasePair& pair(
fluid.phasePairs()[KdIter.key()]);
231 const phaseModel*
phase1 = &pair.phase1();
232 const phaseModel*
phase2 = &pair.phase2();
236 if (phase1 == &phase)
240 *
MRF.absolute(phase2->phi());
245 Swap(phase1, phase2);
276 surfaceScalarField::GeometricBoundaryField
phib(
phi.boundaryField());
281 phib +=
alphafs[
phasei].boundaryField()*phase.phi().boundaryField();
286 p_rgh.boundaryField(),
289 )/(
mesh.magSf().boundaryField()*rAUf.boundaryField())
293 PtrList<fvScalarMatrix> pEqnComps(
phases.size());
298 if (phase.compressible())
307 IOobject::groupName(
"phid", phase.name()),
316 phase.continuityError()
325 phase.thermo().psi()*
fvm::ddt(p_rgh)
334 pEqnComps[
phasei].faceFluxCorrectionPtr()
336 pEqnComps[
phasei].relax();
345 phase.continuityError()
352 + (alpha*phase.thermo().psi()/
rho)
358 if (
fluid.transfersMass(phase))
360 if (pEqnComps.set(
phasei))
380 while (
pimple.correctNonOrthogonal())
394 if (pEqnComps.set(
phasei))
396 pEqn += pEqnComps[
phasei];
403 mesh.solver(p_rgh.select(
pimple.finalInnerIter()))
408 if (
pimple.finalNonOrthogonalIter())
421 if (phase.compressible())
423 phase.divU(-pEqnComps[
phasei] & p_rgh);
430 mSfGradp = pEqnIncomp.flux()/
rAUf;
443 phase.U().correctBoundaryConditions();
459 phase.rho()() += phase.thermo().psi()*(p_rgh -
p_rgh_0);
465 p_rgh.correctBoundaryConditions();
PtrList< fvVectorMatrix > UEqns(fluid.phases().size())
PtrList< surfaceScalarField > phiHbyAs(fluid.phases().size())
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
Return the correction form of the given matrix.
dimensioned< scalar > mag(const dimensioned< Type > &)
word name(const complex &)
Return a string representation of a complex.
setSnGrad< fixedFluxPressureFvPatchScalarField >(p_rgh.boundaryField(),( phiHbyA.boundaryField() -MRF.relative(mesh.Sf().boundaryField()&U.boundaryField()) *rho.boundaryField() )/(mesh.magSf().boundaryField()*rhorAUf.boundaryField()))
surfaceScalarField rAUf("rAUf", fvc::interpolate(rAU))
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> reconstruct(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
void deleteDemandDrivenData(DataPtr &dataPtr)
const dimensionSet dimArea(sqr(dimLength))
tmp< GeometricField< Type, fvPatchField, volMesh > > Sp(const volScalarField &sp, const GeometricField< Type, fvPatchField, volMesh > &vf)
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
tmp< surfaceScalarField > interpolate(const RhoType &rho)
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
const dictionary & pimple
tmp< GeometricField< Type, fvPatchField, volMesh > > Su(const GeometricField< Type, fvPatchField, volMesh > &su, const GeometricField< Type, fvPatchField, volMesh > &vf)
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
fv::IOoptionList & fvOptions
fvMatrix< scalar > fvScalarMatrix
surfaceScalarField ghSnGradRho(ghf *fvc::snGrad(rho)*mesh.magSf())
surfaceScalarField phid("phid", fvc::interpolate(psi)*( (mesh.Sf()&fvc::interpolate(HbyA)) +rhorAUf *fvc::ddtCorr(rho, U, phi)/fvc::interpolate(rho) ))
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
PtrList< surfaceScalarField > alpharAUfs(phases.size())
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
PtrList< volVectorField > HbyAs(fluid.phases().size())
volScalarField p_rgh_0(p_rgh)
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
PtrList< surfaceScalarField > phiFs(phases.size())
GeometricField< vector, fvPatchField, volMesh > volVectorField
const dimensionedVector & g
tmp< GeometricField< Type, fvPatchField, volMesh > > average(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Area-weighted average a surfaceField creating a volField.
PtrList< volScalarField > rAUs(fluid.phases().size())
multiphaseSystem::phaseModelList & phases
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
dimensionedScalar pos(const dimensionedScalar &ds)
const dimensionSet dimVelocity
dimensionedScalar pMin("pMin", dimPressure, fluid)
PtrList< surfaceScalarField > alphafs(phases.size())
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const surfaceScalarField & ghf
const volScalarField & gh