7 tmp<fv::ddtScheme<scalar>> tddtAlpha
12 mesh.ddtScheme(
"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() -
alphaPhi10);
153 talphaPhi1Corr.ref(),
167 talphaPhi1Corr.ref(),
224 talphaPhi1Corr0.ref().rename(
"alphaPhi1Corr0");
235 word(
mesh.ddtScheme(
"ddt(rho,U)"))
236 == fv::EulerDdtScheme<vector>::typeName
237 || word(
mesh.ddtScheme(
"ddt(rho,U)"))
238 == fv::localEulerDdtScheme<vector>::typeName
256 Info<<
"Phase-1 volume fraction = " ITstream compressionScheme(compressionSchemes.found(alphaScheme) ? mesh.divScheme(divAlphaName) :ITstream(divAlphaName, tokenList { word("Gauss"), word("interfaceCompression"), alphaScheme, alphaControls.lookup< scalar >("cAlpha") }))
fvMatrix< scalar > fvScalarMatrix
errorManipArg< error, int > exit(error &err, const int errNo=1)
surfaceScalarField rho1f(fvc::interpolate(rho1))
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
const bool alphaApplyPrevCorr(alphaControls.lookupOrDefault< Switch >("alphaApplyPrevCorr", false))
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
volScalarField & alpha1(mixture.alpha1())
surfaceScalarField alphaPhi10(alphaPhi10Header, phi *fvc::interpolate(alpha1))
GeometricField< scalar, fvPatchField, volMesh > volScalarField
surfaceScalarField rho2f(fvc::interpolate(rho2))
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
const fv::ddtScheme< scalar > & ddtAlpha
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(rho0+psi *p, rhoMin);# 1 "/home/ubuntu/OpenFOAM-9/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()
bool isType(const Type &t)
Check the typeid.
tmp< surfaceScalarField > phiCN(phi)
const label nAlphaSubCycles(alphaControls.lookup< label >("nAlphaSubCycles"))
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
tmp< volScalarField > divU
const tmp< volScalarField::Internal > & Sp
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