43 temperaturePhaseChangeTwoPhaseMixture,
54 const thermoIncompressibleTwoPhaseMixture&
mixture,
58 temperaturePhaseChangeTwoPhaseMixture(
mixture,
mesh),
63 optionalSubDict(
type() +
"Coeffs")
69 optionalSubDict(
type() +
"Coeffs")
81 const twoPhaseMixtureEThermo&
thermo =
91 return Pair<tmp<volScalarField>>
99Foam::Pair<Foam::tmp<Foam::volScalarField>>
104 const twoPhaseMixtureEThermo&
thermo =
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>>
141Foam::Pair<Foam::tmp<Foam::volScalarField>>
146 const twoPhaseMixtureEThermo&
thermo =
154 return Pair<tmp<volScalarField>>
157 coeffC_*mixture_.rho2()*
clamp(mixture_.alpha2(), zero_one{})
161 coeffE_*mixture_.rho1()*
clamp(mixture_.alpha1(), zero_one{})
168Foam::tmp<Foam::fvScalarMatrix>
175 auto& TSource = tTSource.ref();
177 const twoPhaseMixtureEThermo&
thermo =
189 coeffE_*mixture_.rho1()*
clamp(mixture_.alpha1(), zero_one{})
194 coeffC_*mixture_.rho2()*
clamp(mixture_.alpha2(), zero_one{})
215 subDict(
type() +
"Coeffs").readEntry(
"coeffC", coeffC_);
216 subDict(
type() +
"Coeffs").readEntry(
"coeffE", coeffE_);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
An ordered pair of two objects of type <T> with first() and second() elements.
static const word dictName
The dictionary name ("thermophysicalProperties").
const fvMesh & mesh_
Reference to fvMesh.
const thermoIncompressibleTwoPhaseMixture & mixture_
Reference to the thermoIncompressibleTwoPhaseMixture.
virtual bool read()
Read the transportProperties dictionary and update.
virtual Pair< tmp< volScalarField > > mDotAlphal() const
Return the mass condensation and vaporisation rates as a.
virtual Pair< tmp< volScalarField > > mDotDeltaT() const
Return the mass condensation and vaporisation rates as a.
virtual tmp< fvScalarMatrix > TSource() const
Source for T equarion.
virtual void correct()
Correct the constant phaseChange model.
virtual bool read()
Read the transportProperties dictionary and update.
virtual Pair< tmp< volScalarField > > mDot() const
Return the mass condensation and vaporisation rates as coefficients.
constant(const thermoIncompressibleTwoPhaseMixture &mixture, const fvMesh &mesh)
Construct from components.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Calculate the gradient of the given field.
Calculate the finiteVolume matrix for implicit and explicit sources.
zeroField Sp(const Foam::zero, const GeometricField< Type, fvPatchField, volMesh > &)
A no-op source.
dimensionedScalar pos(const dimensionedScalar &ds)
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
const dimensionSet dimless
Dimensionless.
const dimensionSet dimEnergy
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionSet clamp(const dimensionSet &a, const dimensionSet &range)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
static constexpr const zero Zero
Global zero (0).
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
psiReactionThermo & thermo
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\n"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture
const vector L(dict.get< vector >("L"))