64 <<
"Thermo model requires a " << thermoSingleLayer::typeName
65 <<
" film to supply the pressure and temperature, but "
66 <<
filmModel_.type() <<
" film model selected. "
67 <<
"Use the 'useReferenceValues' flag to employ reference "
113 surfaceFilmRegionModel& film,
118 name_(
"unknown_liquid"),
121 useReferenceValues_(coeffDict_.get<bool>(
"useReferenceValues")),
271 rho[celli] = this->
rho(p[celli],
T[celli]);
275 trho.ref().correctBoundaryConditions();
289 extrapolatedCalculatedFvPatchScalarField::typeName
306 mu[celli] = this->
mu(p[celli],
T[celli]);
310 tmu.ref().correctBoundaryConditions();
324 extrapolatedCalculatedFvPatchScalarField::typeName
345 tsigma.ref().correctBoundaryConditions();
359 extrapolatedCalculatedFvPatchScalarField::typeName
376 Cp[celli] = this->
Cp(p[celli],
T[celli]);
380 tCp.ref().correctBoundaryConditions();
394 extrapolatedCalculatedFvPatchScalarField::typeName
415 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.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=fvPatchField< scalar >::calculatedType())
@ NO_REGISTER
Do not request registration (bool: false).
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, IOobjectOption::readOption readOpt=IOobjectOption::MUST_READ) const
Find entry and assign to T val. FatalIOError if it is found and the number of tokens is incorrect,...
static const word & extrapolatedCalculatedType() noexcept
The type name for extrapolatedCalculated patch fields combines zero-gradient and calculated.
static autoPtr< liquidProperties > New(const word &name)
Return a pointer to a new liquidProperties created from name.
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 noexcept
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].
virtual scalar sigma(const scalar p, const scalar T) const
Return surface tension [kg/s2].
virtual scalar Tb(const scalar p) const
Return boiling temperature [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.
liquidFilmThermo(const liquidFilmThermo &)=delete
No copy construct.
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 scalar mu(const scalar p, const scalar T) const
Return dynamic viscosity [Pa.s].
virtual tmp< volScalarField > mu() const
Return dynamic viscosity [Pa.s].
bool ownLiquid_
Flag to indicate that model owns the liquid object.
virtual scalar kappa(const scalar p, const scalar T) const
Return thermal conductivity [W/m/K].
virtual tmp< volScalarField > rho() const
Return density [kg/m3].
virtual scalar rho(const scalar p, const scalar T) const
Return density [kg/m3].
virtual scalar Cp(const scalar p, const scalar T) const
Return specific heat capacity [J/kg/K].
const liquidProperties * liquidPtr_
Pointer to the liquid properties.
scalar pRef_
Reference pressure [pa].
scalar TRef_
Reference temperature [K].
virtual scalar D(const scalar p, const scalar T) const
Return diffusivity [m2/s].
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...
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
const volScalarField & Cp
Template functions to aid in the implementation of demand driven data.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const dimensionSet dimPressure
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
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)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
const Type * isA(const U &obj)
Attempt dynamic_cast to Type.
static constexpr const zero Zero
Global zero (0).
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimDensity
errorManipArg< error, int > exit(error &err, const int errNo=1)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void deleteDemandDrivenData(DataPtr &dataPtr)
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
tmp< volScalarField > trho
dimensionedScalar sigma("sigma", dimMass/sqr(dimTime), transportProperties)
#define forAll(list, i)
Loop across all elements in list.