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.
tmp< GeometricField< Type, fvPatchField, volMesh > > Sp(const volScalarField &sp, const GeometricField< Type, fvPatchField, volMesh > &vf)
const volScalarField & vDotcAlphal
GeometricField< scalar, fvPatchField, volMesh > volScalarField
void explicitSolve(const RdeltaTType &rDeltaT, const RhoType &rho, volScalarField &psi, const surfaceScalarField &phiPsi, const SpType &Sp, const SuType &Su)
volScalarField alpha10("alpha10", alpha1)
surfaceScalarField phir("phir", phic *interface.nHatf())
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-4.1/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\n"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field U\n"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Creating phaseChangeTwoPhaseMixture\n"<< endl;autoPtr< phaseChangeTwoPhaseMixture > mixture
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
const volScalarField vDotvmcAlphal(vDotvAlphal-vDotcAlphal)
volScalarField divU(fvc::div(fvc::absolute(phi, U)))
surfaceScalarField phic(mixture.cAlpha()*mag(phi/mesh.magSf()))
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField