7 tmp<fv::ddtScheme<scalar>> tddtAlpha
12 mesh.schemes().ddt(
"ddt(alpha)")
15 const fv::ddtScheme<scalar>& ddtAlpha = tddtAlpha();
19 isType<fv::EulerDdtScheme<scalar>>(ddtAlpha)
20 ||
isType<fv::localEulerDdtScheme<scalar>>(ddtAlpha)
25 else if (
isType<fv::CrankNicolsonDdtScheme<scalar>>(ddtAlpha))
30 <<
"Sub-cycling is not supported " 31 "with the CrankNicolson ddt scheme" 38 ||
mesh.time().timeIndex() >
mesh.time().startTimeIndex() + 1
42 refCast<const fv::CrankNicolsonDdtScheme<scalar>>(
ddtAlpha)
49 <<
"Only Euler and CrankNicolson ddt schemes are supported" 65 cnCoeff*
phi + (1.0 - cnCoeff)*
phi.oldTime()
69 #include "alphaSuSp.H" 77 ? fv::localEulerDdtScheme<scalar>(
mesh).fvmDdt(
alpha1)
78 : fv::EulerDdtScheme<scalar>(
mesh).fvmDdt(
alpha1)
80 + fv::gaussConvectionScheme<scalar>
95 Info<<
"Phase-1 volume fraction = " 101 tmp<surfaceScalarField> talphaPhi1UD(alpha1Eqn.flux());
106 Info<<
"Applying the previous iteration compression flux" <<
endl;
131 tmp<surfaceScalarField> talphaPhi1Un
143 tmp<surfaceScalarField> talphaPhi1Corr(talphaPhi1Un() -
alphaPhi1);
153 talphaPhi1Corr.ref(),
167 talphaPhi1Corr.ref(),
224 talphaPhi1Corr0.ref().rename(
"alphaPhi1Corr0");
235 word(
mesh.schemes().ddt(
"ddt(rho,U)"))
236 == fv::EulerDdtScheme<vector>::typeName
237 || word(
mesh.schemes().ddt(
"ddt(rho,U)"))
238 == fv::localEulerDdtScheme<vector>::typeName
256 Info<<
"Phase-1 volume fraction = " surfaceScalarField alphaPhi1(alphaPhi1Header, phi *fvc::interpolate(alpha1))
fvMatrix< scalar > fvScalarMatrix
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
errorManipArg< error, int > exit(error &err, const int errNo=1)
surfaceScalarField rho1f(fvc::interpolate(rho1))
const bool alphaApplyPrevCorr(alphaControls.lookupOrDefault< Switch >("alphaApplyPrevCorr", false))
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(rho0+psi *p, rhoMin);# 1 "/home/ubuntu/OpenFOAM-10/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()
Ostream & endl(Ostream &os)
Add newline and flush stream.
volScalarField & alpha1(mixture.alpha1())
GeometricField< scalar, fvPatchField, volMesh > volScalarField
surfaceScalarField rho2f(fvc::interpolate(rho2))
const fv::ddtScheme< scalar > & ddtAlpha
bool isType(const Type &t)
Check the typeid.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
tmp< surfaceScalarField > phiCN(phi)
const label nAlphaSubCycles(alphaControls.lookup< label >("nAlphaSubCycles"))
tmp< volScalarField > divU
const tmp< volScalarField::Internal > & Sp
ITstream compressionScheme(compressionSchemes.found(alphaScheme) ? mesh.schemes().div(divAlphaName) :ITstream(divAlphaName, tokenList { word("Gauss"), word("interfaceCompression"), alphaScheme, alphaControls.lookup< scalar >("cAlpha") }))
const label nAlphaCorr(alphaControls.lookup< label >("nAlphaCorr"))
const tmp< volScalarField::Internal > & Su
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
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))
tmp< surfaceScalarField > talphaPhi1Corr0