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_);
word dictName() const
The local dictionary name (final part of scoped name)
virtual bool read()
Read the transportProperties dictionary and update.
virtual void correct()
Correct the constant phaseChange model.
fvMatrix< scalar > fvScalarMatrix
const vector L(dict.get< vector >("L"))
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture
const dimensionSet dimless
Dimensionless.
Macros for easy insertion into run-time selection tables.
virtual Pair< tmp< volScalarField > > mDot() const
Return the mass condensation and vaporisation rates as coefficients.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
psiReactionThermo & thermo
dimensionedScalar pos(const dimensionedScalar &ds)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
An ordered pair of two objects of type <T> with first() and second() elements.
virtual Pair< tmp< volScalarField > > mDotDeltaT() const
Return the mass condensation and vaporisation rates as a.
Calculate the gradient of the given field.
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
virtual bool read()
Read the transportProperties dictionary and update.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
zeroField Sp(const Foam::zero, const GeometricField< Type, fvPatchField, volMesh > &)
A no-op source.
virtual tmp< fvScalarMatrix > TSource() const
Source for T equarion.
defineTypeNameAndDebug(combustionModel, 0)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const dimensionSet dimEnergy
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
virtual Pair< tmp< volScalarField > > mDotAlphal() const
Return the mass condensation and vaporisation rates as a.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
A class for managing temporary objects.
virtual bool write(const bool valid=true) const
Write using setting from DB.
Calculate the finiteVolume matrix for implicit and explicit sources.
constant(const thermoIncompressibleTwoPhaseMixture &mixture, const fvMesh &mesh)
Construct from components.
static constexpr const zero Zero
Global zero (0)