2 word alphaScheme(
"div(phi,alpha)");
8 tmp<fv::ddtScheme<scalar>> tddtAlpha
13 mesh.ddtScheme(
"ddt(alpha)")
16 const fv::ddtScheme<scalar>&
ddtAlpha = tddtAlpha();
31 <<
"Sub-cycling is not supported " 32 "with the CrankNicolson ddt scheme" 39 ||
mesh.time().timeIndex() >
mesh.time().startTimeIndex() + 1
43 refCast<const fv::CrankNicolsonDdtScheme<scalar>>(
ddtAlpha)
50 <<
"Only Euler and CrankNicolson ddt schemes are supported" 75 surfaceScalarField::Boundary&
phicBf =
phic.boundaryFieldRef();
89 tmp<surfaceScalarField>
phiCN(alphaPhic);
99 #include "alphaSuSp.H" 105 ? fv::localEulerDdtScheme<scalar>(
mesh).fvmDdt(alphac,
alpha1)
106 : fv::EulerDdtScheme<scalar>(
mesh).fvmDdt(
alpha1)
108 + fv::gaussConvectionScheme<scalar>
121 Info<<
"Phase-1 volume fraction = " 127 tmp<surfaceScalarField> talphaPhi1UD(alpha1Eqn.flux());
132 Info<<
"Applying the previous iteration compression flux" <<
endl;
158 #include "alphaSuSp.H" 162 tmp<surfaceScalarField> talphaPhi1Un
180 tmp<surfaceScalarField> talphaPhi1Corr(talphaPhi1Un() -
alphaPhi10);
188 talphaPhi1Corr.ref(),
240 word(
mesh.ddtScheme(
"ddt(rho,U)"))
241 == fv::EulerDdtScheme<vector>::typeName
261 Info<<
"Phase-1 volume fraction = " fvsPatchField< scalar > fvsPatchScalarField
const fv::ddtScheme< scalar > & ddtAlpha
fvMatrix< scalar > fvScalarMatrix
forAll(phic.boundaryField(), patchi)
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
surfaceScalarField rho1f(fvc::interpolate(rho1))
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
static tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate(const GeometricField< Type, faPatchField, areaMesh > &tvf, const edgeScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
word alpharScheme("div(phirb,alpha)")
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
tmp< GeometricField< Type, faPatchField, areaMesh > > ddt(const dimensioned< Type > dt, const faMesh &mesh)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
surfaceScalarField rho2f(fvc::interpolate(rho2))
volScalarField alpha10("alpha10", alpha1)
bool isType(const U &obj)
Check if typeid of the object and Type are identical.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
surfaceScalarField::Boundary & phicBf
surfaceScalarField phic(mixture.cAlpha() *mag(alphaPhic/mesh.magSf()))
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
surfaceScalarField phir(IOobject("phir", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mixture.cAlpha() *mag(phi/mesh.magSf()) *mixture.nHatf())
messageStream Info
Information stream (stdout output on master, null elsewhere)
tmp< surfaceScalarField > phiCN(alphaPhic)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
void explicitSolve(const RdeltaTType &rDeltaT, const RhoType &rho, volScalarField &psi, const surfaceScalarField &phiPsi, const SpType &Sp, const SuType &Su)
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
tmp< surfaceScalarField > talphaPhi1Corr0
const volScalarField & alpha1