33 namespace wallBoilingModels
35 namespace partitioningModels
51 template<
class ScalarFieldType>
53 Foam::wallBoilingModels::partitioningModels::linear::calculate
55 const ScalarFieldType& alphaLiquid
63 (alphaLiquid - alphaLiquid0_)/(alphaLiquid1_ - alphaLiquid0_),
79 alphaLiquid0_(
dict.lookup<scalar>(
"alphaLiquid0")),
80 alphaLiquid1_(
dict.lookup<scalar>(
"alphaLiquid1"))
90 alphaLiquid0_(model.alphaLiquid0_),
91 alphaLiquid1_(model.alphaLiquid1_)
129 writeEntry(os,
"alphaLiquid0", alphaLiquid0_);
130 writeEntry(os,
"alphaLiquid1", alphaLiquid1_);
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for managing temporary objects.
Base class for wall heat flux partitioning models.
virtual void write(Ostream &os) const
Write to stream.
Linear wall heat flux partitioning model.
virtual tmp< scalarField > wetFraction(const scalarField &alphaLiquid) const
Return the wet fraction.
virtual void write(Ostream &os) const
Write to stream.
virtual ~linear()
Destructor.
linear(const dictionary &dict)
Construct from a dictionary.
label calculate(const fvMesh &mesh, const labelHashSet &patchIDs, const scalar minFaceFraction, GeometricField< scalar, PatchField, GeoMesh > &distance)
Calculate distance data from patches.
defineTypeNameAndDebug(cosine, 0)
addToRunTimeSelectionTable(partitioningModel, cosine, dictionary)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)