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)
104 const twoPhaseMixtureEThermo&
thermo =
105 refCast<const twoPhaseMixtureEThermo>
117 coeffE_*mixture_.rho1()*
clamp(mixture_.alpha1(), zero_one{})
123 coeffC_*mixture_.rho2()*
clamp(mixture_.alpha2(), zero_one{})
127 if (mesh_.time().writeTime())
133 return Pair<tmp<volScalarField>>
146 const twoPhaseMixtureEThermo&
thermo =
147 refCast<const twoPhaseMixtureEThermo>
154 return Pair<tmp<volScalarField>>
157 coeffC_*mixture_.rho2()*
clamp(mixture_.alpha2(), zero_one{})
161 coeffE_*mixture_.rho1()*
clamp(mixture_.alpha1(), zero_one{})
174 tmp<fvScalarMatrix> tTSource
185 const twoPhaseMixtureEThermo&
thermo =
186 refCast<const twoPhaseMixtureEThermo>
197 coeffE_*mixture_.rho1()*
clamp(mixture_.alpha1(), zero_one{})
202 coeffC_*mixture_.rho2()*
clamp(mixture_.alpha2(), zero_one{})
223 subDict(
type() +
"Coeffs").readEntry(
"coeffC", coeffC_);
224 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 write(const bool writeOnProc=true) const
Write using setting from DB.
virtual bool read()
Read the transportProperties dictionary and update.
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
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.
Calculate the finiteVolume matrix for implicit and explicit sources.
constant(const thermoIncompressibleTwoPhaseMixture &mixture, const fvMesh &mesh)
Construct from components.
dimensionSet clamp(const dimensionSet &a, const dimensionSet &range)
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
static constexpr const zero Zero
Global zero (0)