alphaEqn.H
Go to the documentation of this file.
1 {
2  word alphaScheme("div(phi,alpha)");
3 
5  (
6  phi.name() + alpha1.name(),
8  (
9  phi,
10  alpha1,
11  alphaScheme
12  )
13  );
14 
16 
18 
19  Info<< "Phase-1 volume fraction = "
20  << alpha1.weightedAverage(mesh.Vsc()).value()
21  << " Min(" << alpha1.name() << ") = " << min(alpha1).value()
22  << " Max(" << alpha1.name() << ") = " << max(alpha1).value()
23  << endl;
24 }
surfaceScalarField & phi
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:253
rho1
Definition: pEqn.H:114
dynamicFvMesh & mesh
rhoPhi
Definition: alphaEqn.H:116
void explicitSolve(const RdeltaTType &rDeltaT, const RhoType &rho, volScalarField &psi, const surfaceScalarField &phiPsi, const SpType &Sp, const SuType &Su)
rho2
Definition: pEqn.H:115
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
volScalarField & alpha1
messageStream Info
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
Definition: fvcFlux.C:32
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
surfaceScalarField alphaPhi(phi.name()+alpha1.name(), fvc::flux(phi, alpha1, alphaScheme))