41namespace surfaceFilmModels
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")),
261 extrapolatedCalculatedFvPatchScalarField::typeName
280 rho[celli] = this->
rho(p[celli],
T[celli]);
284 trho.ref().correctBoundaryConditions();
306 extrapolatedCalculatedFvPatchScalarField::typeName
325 mu[celli] = this->
mu(p[celli],
T[celli]);
329 tmu.
ref().correctBoundaryConditions();
351 extrapolatedCalculatedFvPatchScalarField::typeName
374 tsigma.
ref().correctBoundaryConditions();
396 extrapolatedCalculatedFvPatchScalarField::typeName
415 Cp[celli] = this->
Cp(p[celli],
T[celli]);
419 tCp.ref().correctBoundaryConditions();
441 extrapolatedCalculatedFvPatchScalarField::typeName
464 tkappa.
ref().correctBoundaryConditions();
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package,...
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
virtual tmp< volScalarField > Tb() const
Burnt gas temperature [K].
virtual scalar mu(scalar p, scalar T) const =0
Liquid viscosity [Pa s].
virtual scalar D(scalar p, scalar T) const =0
Vapour diffusivity [m2/s].
virtual scalar hl(scalar p, scalar T) const =0
Heat of vapourisation [J/kg].
virtual scalar sigma(scalar p, scalar T) const =0
Surface tension [N/m].
virtual scalar pv(scalar p, scalar T) const =0
Vapour pressure [Pa].
virtual scalar pvInvert(scalar p) const
Invert the vapour pressure relationship to retrieve the.
virtual scalar kappa(scalar p, scalar T) const =0
Liquid thermal conductivity [W/(m K)].
const Type * findObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
const fvMesh & primaryMesh() const
Return the reference to the primary mesh database.
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
surfaceFilmRegionModel & filmModel_
Reference to the film surface film model.
Base class for film thermo models.
virtual scalar W() const
Return molecular weight [kg/kmol].
const thermoSingleLayer & thermoFilm() const
Return a reference to a thermo film.
virtual tmp< volScalarField > Cp() const
Return specific heat capacity [J/kg/K].
virtual tmp< volScalarField > kappa() const
Return thermal conductivity [W/m/K].
bool useReferenceValues_
Flag to indicate that reference values of p and T should be used.
virtual const word & name() const
Return the specie name.
virtual scalar pv(const scalar p, const scalar T) const
Return vapour pressure [Pa].
void initLiquid(const dictionary &dict)
Initialise the liquid pointer.
virtual ~liquidFilmThermo()
Destructor.
virtual tmp< volScalarField > sigma() const
Return surface tension [kg/s2].
virtual scalar hl(const scalar p, const scalar T) const
Return latent heat [J/kg].
virtual tmp< volScalarField > mu() const
Return dynamic viscosity [Pa.s].
bool ownLiquid_
Flag to indicate that model owns the liquid object.
virtual tmp< volScalarField > rho() const
Return density [kg/m3].
const liquidProperties * liquidPtr_
Pointer to the liquid properties.
scalar pRef_
Reference pressure [pa].
scalar TRef_
Reference temperature [K].
Base class for surface film models.
virtual const volScalarField & T() const =0
Return the film mean temperature [K].
Thermodynamic form of single-cell layer surface film model.
const dictionary coeffDict_
Coefficients dictionary.
const dictionary & dict() const
Return const access to the cloud dictionary.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
scalar W() const
Molecular weight [kg/kmol].
virtual scalar rho(scalar p, scalar T) const =0
Liquid density [kg/m^3].
virtual scalar Cp(const scalar p, const scalar T) const =0
Heat capacity at constant pressure [J/(kg K)].
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const tmp< volScalarField > & tCp
Template functions to aid in the implementation of demand driven data.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const dimensionSet dimPressure
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimPower
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionSet dimEnergy
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
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)
const dimensionSet dimDensity
errorManipArg< error, int > exit(error &err, const int errNo=1)
void deleteDemandDrivenData(DataPtr &dataPtr)
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
tmp< volScalarField > trho
const dimensionedScalar & D
#define forAll(list, i)
Loop across all elements in list.
static const char *const typeName
The type name used in ensight case files.