Go to the documentation of this file.
39 namespace regionModels
41 namespace surfaceFilmModels
63 <<
"Thermo model requires a " << thermoSingleLayer::typeName
64 <<
" film to supply the pressure and temperature, but "
65 <<
filmModel_.type() <<
" film model selected. "
66 <<
"Use the 'useReferenceValues' flag to employ reference "
70 return refCast<const thermoSingleLayer>(
filmModel_);
117 name_(
"unknown_liquid"),
120 useReferenceValues_(coeffDict_.get<
bool>(
"useReferenceValues")),
124 initLiquid(coeffDict_);
126 if (useReferenceValues_)
128 coeffDict_.readEntry(
"pRef", pRef_);
129 coeffDict_.readEntry(
"TRef", TRef_);
159 return liquidPtr_->rho(
p,
T);
169 return liquidPtr_->mu(
p,
T);
179 return liquidPtr_->sigma(
p,
T);
189 return liquidPtr_->Cp(
p,
T);
199 return liquidPtr_->kappa(
p,
T);
209 return liquidPtr_->D(
p,
T);
219 return liquidPtr_->hl(
p,
T);
229 return liquidPtr_->pv(
p,
T);
261 extrapolatedCalculatedFvPatchScalarField::typeName
280 rho[celli] = this->
rho(p[celli],
T[celli]);
306 extrapolatedCalculatedFvPatchScalarField::typeName
325 mu[celli] = this->
mu(p[celli],
T[celli]);
351 extrapolatedCalculatedFvPatchScalarField::typeName
396 extrapolatedCalculatedFvPatchScalarField::typeName
415 Cp[celli] = this->
Cp(p[celli],
T[celli]);
441 extrapolatedCalculatedFvPatchScalarField::typeName
const dimensionSet dimPressure
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const thermoSingleLayer & thermoFilm() const
Return a reference to a thermo film.
A class for handling words, derived from Foam::string.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
scalar pRef_
Reference pressure [pa].
Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package,...
static constexpr const zero Zero
Global zero (0)
static autoPtr< liquidProperties > New(const word &name)
Return a pointer to a new liquidProperties created from name.
const dimensionSet dimEnergy
const dimensionSet dimDensity
virtual const word & name() const
Return the specie name.
virtual tmp< volScalarField > kappa() const
Return thermal conductivity [W/m/K].
Template functions to aid in the implementation of demand driven data.
virtual scalar D(const scalar p, const scalar T) const
Return diffusivity [m2/s].
const tmp< volScalarField > & tCp
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
virtual tmp< volScalarField > sigma() const
Return surface tension [kg/s2].
addToRunTimeSelectionTable(surfaceFilmRegionModel, kinematicSingleLayer, mesh)
virtual tmp< volScalarField > rho() const
Return density [kg/m3].
scalar W() const
Molecular weight [kg/kmol].
#define forAll(list, i)
Loop across all elements in list.
bool ownLiquid_
Flag to indicate that model owns the liquid object.
const fvMesh & primaryMesh() const
Return the reference to the primary mesh database.
void deleteDemandDrivenData(DataPtr &dataPtr)
tmp< volScalarField > trho
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Thermodynamic form of single-cell layer surface film model.
void initLiquid(const dictionary &dict)
Initialise the liquid pointer.
virtual tmp< volScalarField > Cp() const
Return specific heat capacity [J/kg/K].
Base class for surface film models.
const dictionary & dict() const
Return const access to the cloud dictionary.
virtual const volScalarField & T() const =0
Return the film mean temperature [K].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual tmp< volScalarField > mu() const
Return dynamic viscosity [Pa.s].
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const liquidProperties * liquidPtr_
Pointer to the liquid properties.
virtual scalar pvInvert(scalar p) const
Invert the vapour pressure relationship to retrieve the.
const dimensionSet dimPower
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
virtual scalar hl(const scalar p, const scalar T) const
Return latent heat [J/kg].
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field.
void correctBoundaryConditions()
Correct boundary field.
virtual scalar Tb(const scalar p) const
Return boiling temperature [K].
defineTypeNameAndDebug(kinematicSingleLayer, 0)
bool useReferenceValues_
Flag to indicate that reference values of p and T should be used.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Base class for film thermo models.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const Type * findObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
scalar TRef_
Reference temperature [K].
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)
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
virtual scalar W() const
Return molecular weight [kg/kmol].
surfaceFilmRegionModel & filmModel_
Reference to the film surface film model.
virtual ~liquidFilmThermo()
Destructor.
virtual scalar pv(const scalar p, const scalar T) const
Return vapour pressure [Pa].
liquidFilmThermo(const liquidFilmThermo &)=delete
No copy construct.