84 distributionPtr_(nullptr)
86 if (U_vs_thetaPtr_ && T_vs_thetaPtr_)
89 <<
"Only one of Utheta or Ttheta should be provided; "
90 <<
"both inputs cannot be used together."
112 distributionPtr_ = distributionModel::New
114 coeffDict_.subDict(
"distribution"),
139 thetai = U_vs_thetaPtr_->value(
mag(
U()));
147 thetai = T_vs_thetaPtr_->value(
T());
150 if (distributionPtr_)
155 thetai[facei] += distributionPtr_->sample();
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
@ READ_IF_PRESENT
Reading is optional [identical to LAZY_READ].
@ AUTO_WRITE
Automatically write from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
static word timeName(const scalar t, const int precision=precision_)
Return a time name for the given scalar time value formatted with the given precision.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const entry * findEntry(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry (const access) with the given keyword.
virtual const objectRegistry & thisDb() const
Reference to the mesh database.
const Time & time() const
Return reference to time.
const liquidFilmBase & film() const
Return const access to the film surface film model.
Base class for film (stress-based) force models.
virtual const areaScalarField & Tf() const =0
Access const reference Tf.
const areaVectorField & Uf() const noexcept
Access const reference Uf.
const faMesh & regionMesh() const
Return the region mesh database.
const dictionary coeffDict_
Coefficients dictionary.
const dictionary & dict() const
Return const access to the cloud dictionary.
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.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
const dimensionSet dimless
Dimensionless.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
GeometricField< vector, faPatchField, areaMesh > areaVectorField
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
GeometricField< scalar, faPatchField, areaMesh > areaScalarField
errorManip< error > abort(error &err)
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
static constexpr const zero Zero
Global zero (0).
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
#define forAll(list, i)
Loop across all elements in list.