10 + fv::gaussConvectionScheme<scalar>
20 Info<<
"Phase-1 volume fraction = " 26 tmp<surfaceScalarField> talphaPhiUD(alpha1Eqn.flux());
31 Info<<
"Applying the previous iteration correction flux" <<
endl;
39 UniformField<scalar>(
mixture.alphaMax()),
52 tmp<surfaceScalarField> talphaPhiUn
70 tmp<surfaceScalarField> talphaPhiCorr(talphaPhiUn() -
alphaPhi);
79 UniformField<scalar>(
mixture.alphaMax()),
104 UniformField<scalar>(
mixture.alphaMax()),
117 Info<<
"Phase-1 volume fraction = " fvMatrix< scalar > fvScalarMatrix
volScalarField alpha10("alpha10", alpha1)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
const bool alphaApplyPrevCorr(alphaControls.lookupOrDefault< Switch >("alphaApplyPrevCorr", false))
tmp< surfaceScalarField > talphaPhiCorr0
Ostream & endl(Ostream &os)
Add newline and flush stream.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
volScalarField & alpha1(mixture.alpha1())
surfaceScalarField alphaPhi(phi.name()+alpha1.name(), fvc::flux(phi, alpha1, alphaScheme))
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(rho0+psi *p, rhoMin);# 1 "/home/ubuntu/OpenFOAM-8/applications/solvers/multiphase/cavitatingFoam/alphavPsi.H" 1{ alphav=max(min((rho - rholSat)/(rhovSat - rholSat), scalar(1)), scalar(0));alphal=1.0 - alphav;Info<< "max-min alphav: "<< max(alphav).value()<< " "<< min(alphav).value()<< endl;psiModel-> correct()
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
const word alphaScheme(mesh.divScheme(divAlphaName)[1].wordToken())
word alpharScheme("div(phirb,alpha)")
const label nAlphaCorr(alphaControls.lookup< label >("nAlphaCorr"))
surfaceScalarField phir(IOobject("phir", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mixture.cAlpha() *mag(phi/mesh.magSf()) *mixture.nHatf())
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
phaseChangeTwoPhaseMixture & mixture
void explicitSolve(const RdeltaTType &rDeltaT, const RhoType &rho, volScalarField &psi, const surfaceScalarField &phiPsi, const SpType &Sp, const SuType &Su)
const bool MULESCorr(alphaControls.lookupOrDefault< Switch >("MULESCorr", false))