Go to the documentation of this file.
38 namespace temperaturePhaseChangeTwoPhaseMixtures
43 temperaturePhaseChangeTwoPhaseMixture,
54 const thermoIncompressibleTwoPhaseMixture&
mixture,
58 temperaturePhaseChangeTwoPhaseMixture(
mixture,
mesh),
63 optionalSubDict(
type() +
"Coeffs")
69 optionalSubDict(
type() +
"Coeffs")
81 const twoPhaseMixtureEThermo&
thermo =
82 refCast<const twoPhaseMixtureEThermo>
91 return Pair<tmp<volScalarField>>
93 coeffC_*mixture_.rho2()*
max(TSat -
T,
T0),
94 -coeffE_*mixture_.rho1()*
max(
T - TSat,
T0)
105 min(
max(mixture_.alpha1(), scalar(0)), scalar(1))
110 min(
max(mixture_.alpha2(), scalar(0)), scalar(1))
115 const twoPhaseMixtureEThermo&
thermo =
116 refCast<const twoPhaseMixtureEThermo>
127 "mDotE", coeffE_*mixture_.rho1()*limitedAlpha1*
max(
T - TSat,
T0)
131 "mDotC", coeffC_*mixture_.rho2()*limitedAlpha2*
max(TSat -
T,
T0)
134 if (mesh_.time().outputTime())
140 return Pair<tmp<volScalarField>>
153 min(
max(mixture_.alpha1(), scalar(0)), scalar(1))
158 min(
max(mixture_.alpha2(), scalar(0)), scalar(1))
163 const twoPhaseMixtureEThermo&
thermo =
164 refCast<const twoPhaseMixtureEThermo>
171 return Pair<tmp<volScalarField>>
173 coeffC_*mixture_.rho2()*limitedAlpha2*
pos(TSat -
T),
174 coeffE_*mixture_.rho1()*limitedAlpha1*
pos(
T - TSat)
185 tmp<fvScalarMatrix> tTSource
196 const twoPhaseMixtureEThermo&
thermo =
197 refCast<const twoPhaseMixtureEThermo>
208 min(
max(mixture_.alpha1(), scalar(0)), scalar(1))
213 min(
max(mixture_.alpha2(), scalar(0)), scalar(1))
218 coeffE_*mixture_.rho1()*limitedAlpha1*
L*
pos(
T - TSat)
222 coeffC_*mixture_.rho2()*limitedAlpha2*
L*
pos(TSat -
T)
242 subDict(
type() +
"Coeffs").readEntry(
"coeffC", coeffC_);
243 subDict(
type() +
"Coeffs").readEntry(
"coeffE", coeffE_);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
const vector L(dict.get< vector >("L"))
A class for managing temporary objects.
static constexpr const zero Zero
const dimensionSet dimEnergy
static const word dictName
virtual Pair< tmp< volScalarField > > mDotDeltaT() const
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
label min(const labelHashSet &set, label minValue=labelMax)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
fvMatrix< scalar > fvScalarMatrix
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
virtual Pair< tmp< volScalarField > > mDotAlphal() const
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
label max(const labelHashSet &set, label maxValue=labelMin)
Macros for easy insertion into run-time selection tables.
Calculate the matrix for implicit and explicit sources.
constant(const thermoIncompressibleTwoPhaseMixture &mixture, const fvMesh &mesh)
An ordered pair of two objects of type <T> with first() and second() elements.
virtual Pair< tmp< volScalarField > > mDot() const
Calculate the gradient of the given field.
fileName::Type type(const fileName &name, const bool followLink=true)
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
constant condensation/saturation model.
defineTypeNameAndDebug(combustionModel, 0)
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\n"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture
const dimensionSet dimless
virtual tmp< fvScalarMatrix > TSource() const
dimensionedScalar pos(const dimensionedScalar &ds)