33 namespace wallBoilingModels
35 namespace partitioningModels
51 template<
class ScalarFieldType>
53 Foam::wallBoilingModels::partitioningModels::cosine::calculate
55 const ScalarFieldType& alphaLiquid
59 pos0(alphaLiquid1_ - alphaLiquid)
61 neg(alphaLiquid0_ - alphaLiquid)
68 *(alphaLiquid - alphaLiquid0_)
69 /(alphaLiquid1_ - alphaLiquid0_)
74 +
neg(alphaLiquid1_ - alphaLiquid);
86 alphaLiquid0_(
dict.lookup<scalar>(
"alphaLiquid0")),
87 alphaLiquid1_(
dict.lookup<scalar>(
"alphaLiquid1"))
97 alphaLiquid0_(model.alphaLiquid0_),
98 alphaLiquid1_(model.alphaLiquid1_)
136 writeEntry(os,
"alphaLiquid0", alphaLiquid0_);
137 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.
Cosine 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 ~cosine()
Destructor.
cosine(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)
dimensionedScalar pos0(const dimensionedScalar &ds)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensionedScalar neg(const dimensionedScalar &ds)
dimensionedScalar cos(const dimensionedScalar &ds)