2 word alphaScheme(
"div(phi,alpha)");
7 Pair<tmp<volScalarField>> vDotAlphal =
19 fv::EulerDdtScheme<scalar>(
mesh).fvmDdt(
alpha1)
20 + fv::gaussConvectionScheme<scalar>
34 Info<<
"Phase-1 volume fraction = " 40 talphaPhi = alpha1Eqn.flux();
47 tmp<surfaceScalarField> talphaPhiCorr
78 divU*(alpha10 - alpha100)
88 talphaPhi.ref() += talphaPhiCorr();
93 talphaPhi.ref() += 0.5*talphaPhiCorr();
110 talphaPhi = talphaPhiCorr;
118 Info<<
"Liquid phase volume fraction = " tmp< surfaceScalarField > talphaPhi
fvMatrix< scalar > fvScalarMatrix
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
interfaceProperties interface(alpha1, U, mixture())
word alpharScheme("div(phirb,alpha)")
Ostream & endl(Ostream &os)
Add newline and flush stream.
const volScalarField & vDotcAlphal
GeometricField< scalar, fvPatchField, volMesh > volScalarField
volScalarField alpha10("alpha10", alpha1)
const volScalarField & alpha1
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(psi *p+alphal *rhol0+((alphav *psiv+alphal *psil) - psi) *pSat, rhoMin);# 1 "/home/ubuntu/OpenFOAM-6/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()
Info<< "Reading field p_rgh\"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Creating phaseChangeTwoPhaseMixture\"<< endl;autoPtr< phaseChangeTwoPhaseMixture > mixture
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
const volScalarField vDotvmcAlphal(vDotvAlphal - vDotcAlphal)
surfaceScalarField phic(mixture.cAlpha() *mag(phi/mesh.magSf()))
surfaceScalarField phir(IOobject("phir", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mixture.cAlpha() *mag(phi/mesh.magSf()) *mixture.nHatf())
const dimensionedScalar & rho2
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const dimensionedScalar & rho1
void explicitSolve(const RdeltaTType &rDeltaT, const RhoType &rho, volScalarField &psi, const surfaceScalarField &phiPsi, const SpType &Sp, const SuType &Su)