47 const volVectorField&
U,
48 const surfaceScalarField&
phi
51 basicThermo(
U.
mesh(), word::null),
52 thermoIncompressibleTwoPhaseMixture(
U,
phi),
54 TSat_(
"TSat",
dimTemperature, static_cast<const basicThermo&>(*this))
110 const fvMesh&
mesh = this->T_.mesh();
158 min(
max(alpha1_, scalar(0)), scalar(1))
161 return tmp<volScalarField>
166 limitedAlpha1*
Cp1() + (scalar(1) - limitedAlpha1)*
Cp2()
181 min(
max(alpha1_, scalar(0)), scalar(1))
184 const scalarField& alpha1p = limitedAlpha1.boundaryField()[patchi];
188 alpha1p*
Cp1().value() + (scalar(1) - alpha1p)*
Cp2().value()
197 min(
max(alpha1_, scalar(0)), scalar(1))
200 return tmp<volScalarField>
205 limitedAlpha1*
rho1().value()
206 + (scalar(1) - limitedAlpha1)*
rho2().value()
219 min(
max(alpha1_, scalar(0)), scalar(1))
222 const scalarField& alpha1p = limitedAlpha1.boundaryField()[patchi];
226 alpha1p*
rho1().value() + (scalar(1) - alpha1p)*
rho2().value()
235 min(
max(alpha1_, scalar(0)), scalar(1))
238 return tmp<volScalarField>
243 limitedAlpha1*Cv1() + (scalar(1) - limitedAlpha1)*Cv2()
258 min(
max(alpha1_, scalar(0)), scalar(1))
261 const scalarField& alpha1p = limitedAlpha1.boundaryField()[patchi];
265 alpha1p*Cv1().value() + (scalar(1) - alpha1p)*Cv2().value()
272 return tmp<volScalarField>
274 (alpha1_*
Cp1() + alpha2_*
Cp2())/(alpha1_*Cv1() + alpha2_*Cv2())
288 gamma()().boundaryField()[patchi]
308 return Cv(
p,
T, patchi);
342 min(
max(alpha1_, scalar(0)), scalar(1))
345 return tmp<volScalarField>
350 limitedAlpha1*kappa1() + (scalar(1) - limitedAlpha1)*kappa2()
363 min(
max(alpha1_, scalar(0)), scalar(1))
366 const scalarField& alpha1p = limitedAlpha1.boundaryField()[patchi];
368 return (alpha1p*kappa1().value() + (1 - alpha1p)*kappa2().value());
407 min(
max(alpha1_, scalar(0)), scalar(1))
410 const scalarField& alpha1p = limitedAlpha1.boundaryField()[patchi];
413 (alpha1p*kappa1().value() + (1 - alpha1p)*kappa2().value()) + kappat;
425 alpha1_*
rho1() + (1.0 - alpha1_)*
rho2()
440 min(
max(alpha1_, scalar(0)), scalar(1))
443 const scalarField& alpha1p = limitedAlpha1.boundaryField()[patchi];
447 alpha1p*
rho1().value() + (1.0 - alpha1p)*
rho2().value()
452 alpha1p*kappa1().value() + (1.0 - alpha1p)*kappa2().value()
457 alpha1p*
Cp1().value() + (1.0 - alpha1p)*
Cp2().value()
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
static word timeName(const scalar t, const int precision=precision_)
virtual bool read()
Read thermophysical properties dictionary.
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
const Time & time() const
Return the top-level database.
virtual void correct()
Correct the laminar viscosity.
tmp< volScalarField > alphaEff() const
Effective thermal turbulent diffusivity of mixture [kg/m/s].
virtual bool read()
Read base transportProperties dictionary.
A class for managing temporary objects.
virtual word thermoName() const
Return the name of the thermo physics.
virtual tmp< volScalarField > Cv() const
Return Cv of the mixture.
virtual tmp< volScalarField > rho() const
Return rho of the mixture.
virtual tmp< volScalarField > W() const
Molecular weight [kg/kmol].
virtual tmp< volScalarField > gamma() const
Gamma = Cp/Cv [].
virtual tmp< volScalarField > Cpv() const
Heat capacity at constant pressure/volume [J/kg/K].
virtual tmp< scalarField > THE(const scalarField &h, const scalarField &p, const scalarField &T0, const labelList &cells) const
Temperature from enthalpy/internal energy for cell-set.
virtual tmp< volScalarField > kappa() const
Thermal diffusivity for temperature of mixture [J/m/s/K].
virtual tmp< volScalarField > Cp() const
Return Cp of the mixture.
virtual void correct()
Correct the thermo fields.
virtual volScalarField & he()
Return access to the internal energy field [J/Kg].
virtual tmp< volScalarField > hc() const
Chemical enthalpy [J/kg].
virtual bool read()
Read properties.
virtual tmp< volScalarField > alphahe() const
Thermal diffusivity for energy of mixture [kg/m/s].
virtual tmp< volScalarField > CpByCpv() const
Heat capacity ratio [].
A class for handling words, derived from Foam::string.
static const word null
An empty word.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const volScalarField & Cv
const volScalarField & Cp
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
const dimensionedScalar Cp1
const dimensionedScalar Cp2
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
List< label > labelList
A List of labels.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.