37 namespace regionModels
39 namespace surfaceFilmModels
61 <<
"Thermo model requires a " << thermoSingleLayer::typeName
62 <<
" film to supply the pressure and temperature, but " 63 <<
filmModel_.type() <<
" film model selected. " 64 <<
"Use the 'useReferenceValues' flag to employ reference " 68 return refCast<const thermoSingleLayer>(
filmModel_);
111 name_(
"unknown_liquid"),
255 extrapolatedCalculatedFvPatchScalarField::typeName
277 rho[celli] = this->
rho(p[celli], T[celli]);
281 trho.
ref().correctBoundaryConditions();
303 extrapolatedCalculatedFvPatchScalarField::typeName
325 mu[celli] = this->
mu(p[celli], T[celli]);
329 tmu.
ref().correctBoundaryConditions();
351 extrapolatedCalculatedFvPatchScalarField::typeName
373 sigma[celli] = this->
sigma(p[celli], T[celli]);
377 tsigma.
ref().correctBoundaryConditions();
399 extrapolatedCalculatedFvPatchScalarField::typeName
421 Cp[celli] = this->
Cp(p[celli], T[celli]);
425 tCp.
ref().correctBoundaryConditions();
447 extrapolatedCalculatedFvPatchScalarField::typeName
469 kappa[celli] = this->
kappa(p[celli], T[celli]);
473 tkappa.
ref().correctBoundaryConditions();
virtual scalar D(const scalar p, const scalar T) const
Return diffusivity [m2/s].
virtual ~liquidFilmThermo()
Destructor.
#define forAll(list, i)
Loop across all elements in list.
virtual tmp< volScalarField > kappa() const
Return thermal conductivity [W/m/K].
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual scalar rho(scalar p, scalar T) const =0
Liquid density [kg/m^3].
Base class for surface film models.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Base class for film thermo models.
T & ref() const
Return non-const reference or generate a fatal error.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
virtual scalar pvInvert(scalar p) const
Invert the vapour pressure relationship to retrieve the.
tmp< volScalarField > trho
bool foundObject(const word &name) const
Is the named Type found?
virtual scalar hl(scalar p, scalar T) const =0
Heat of vapourisation [J/kg].
rhoReactionThermo & thermo
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
const dictionary coeffDict_
Coefficients dictionary.
liquidFilmThermo(const liquidFilmThermo &)
Disallow default bitwise copy construct.
addToRunTimeSelectionTable(surfaceFilmRegionModel, kinematicSingleLayer, mesh)
Macros for easy insertion into run-time selection tables.
virtual tmp< volScalarField > mu() const
Return dynamic viscosity [Pa.s].
virtual scalar kappa(scalar p, scalar T) const =0
Liquid thermal conductivity [W/(m K)].
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
virtual scalar sigma(scalar p, scalar T) const =0
Surface tension [N/m].
const liquidProperties * liquidPtr_
Pointer to the liquid properties.
virtual scalar W() const
Return molecular weight [kg/kmol].
bool useReferenceValues_
Flag to indicate that reference values of p and T should be used.
scalar pRef_
Reference pressure [pa].
const fvMesh & primaryMesh() const
Return the reference to the primary mesh database.
void initLiquid(const dictionary &dict)
Initialise the liquid pointer.
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
A class for handling words, derived from string.
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
scalar W() const
Molecular weight [kg/kmol].
const liquidMixtureProperties & liquids() const
Return reference to the global (additional) liquids.
const thermoSingleLayer & thermoFilm() const
Return a reference to a thermo film.
virtual tmp< volScalarField > rho() const
Return density [kg/m3].
virtual scalar Cp(const scalar p, const scalar T) const =0
Heat capacity at constant pressure [J/(kg K)].
virtual scalar pv(const scalar p, const scalar T) const
Return vapour pressure [Pa].
virtual scalar pv(scalar p, scalar T) const =0
Vapour pressure [Pa].
Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package, and provides:
const dimensionSet dimPressure
virtual tmp< volScalarField > sigma() const
Return surface tension [kg/s2].
const volScalarField & pPrimary() const
Pressure [Pa].
const dimensionSet dimPower
virtual scalar Tb(const scalar p) const
Return boiling temperature [K].
virtual scalar hl(const scalar p, const scalar T) const
Return latent heat [J/kg].
static autoPtr< liquidProperties > New(const word &name)
Return a pointer to a new liquidProperties created from name.
virtual tmp< volScalarField > Cp() const
Return specific heat capacity [J/kg/K].
virtual scalar D(scalar p, scalar T) const =0
Vapour diffussivity [m2/s].
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
const dimensionSet dimEnergy
const dimensionSet dimDensity
label liquidId(const word &cmptName, bool allowNotFound=false) const
Index of liquid component.
virtual const word & name() const
Return the specie name.
Template functions to aid in the implementation of demand driven data.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
surfaceFilmRegionModel & filmModel_
Reference to the film surface film model.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
A class for managing temporary objects.
const PtrList< liquidProperties > & properties() const
Return the liquid properties.
virtual scalar mu(scalar p, scalar T) const =0
Liquid viscosity [Pa s].
void deleteDemandDrivenData(DataPtr &dataPtr)
scalar TRef_
Reference temperature [K].
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
defineTypeNameAndDebug(kinematicSingleLayer, 0)
Thermodynamic form of single-cell layer surface film model.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual const volScalarField & T() const
Return the film mean temperature [K].
bool ownLiquid_
Flag to indicate that model owns the liquid object.