Go to the documentation of this file.
2 word alphaScheme(
"div(phi,alpha)");
10 mesh.ddtScheme(
"ddt(alpha)")
29 <<
"Sub-cycling is not supported "
30 "with the CrankNicolson ddt scheme"
40 <<
"Only Euler and CrankNicolson ddt schemes are supported"
82 ? fv::localEulerDdtScheme<scalar>(
mesh).fvmDdt(
alpha1)
83 : fv::EulerDdtScheme<scalar>(
mesh).fvmDdt(
alpha1)
85 + fv::gaussConvectionScheme<scalar>
95 Info<<
"Phase-1 volume fraction = "
101 tmp<surfaceScalarField> talphaPhiUD(alpha1Eqn.flux());
106 Info<<
"Applying the previous iteration compression flux" <<
endl;
125 tmp<surfaceScalarField> talphaPhiUn
150 tmp<surfaceScalarField> talphaPhiCorr(talphaPhiUn() -
alphaPhi);
185 word(
mesh.ddtScheme(
"ddt(rho,U)"))
186 == fv::EulerDdtScheme<vector>::typeName
203 Info<<
"Phase-1 volume fraction = "
void explicitSolve(const RdeltaTType &rDeltaT, const RhoType &rho, volScalarField &psi, const surfaceScalarField &phiPsi, const SpType &Sp, const SuType &Su)
tmp< fv::ddtScheme< scalar > > ddtAlpha(fv::ddtScheme< scalar >::New(mesh, mesh.ddtScheme("ddt(alpha)")))
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
tmp< surfaceScalarField > talphaPhiCorr0
fvsPatchField< scalar > fvsPatchScalarField
tmp< surfaceScalarField > interpolate(const RhoType &rho)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Type & value() const
Return const reference to value.
dimensioned< scalar > mag(const dimensioned< Type > &)
word alpharScheme("div(phirb,alpha)")
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
forAll(phic.boundaryField(), patchi)
surfaceScalarField phir("phir", phic *interface.nHatf())
fvMatrix< scalar > fvScalarMatrix
surfaceScalarField phic(mixture.cAlpha() *mag(phi/mesh.magSf()))
surfaceScalarField alphaPhi(phi.name()+alpha1.name(), fvc::flux(phi, alpha1, alphaScheme))
GeometricField< scalar, fvPatchField, volMesh > volScalarField
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< surfaceScalarField > phiCN(phi)
bool isType(const Type &t)
Check the typeid.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
volScalarField alpha10("alpha10", alpha1)
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > flux(const surfaceScalarField &phi, const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)