31#include "surfaceInterpolate.H"
38namespace functionObjects
47Foam::functionObjects::filmFlux::filmModel()
49 return time_.objectRegistry::lookupObject<filmType>(filmName_);
63 filmName_(
"surfaceFilmProperties"),
64 resultName_(scopedName(
"filmFlux"))
76 dict.readIfPresent<
word>(
"film", filmName_);
77 dict.readIfPresent<
word>(
"result", resultName_);
88 const auto& model = filmModel();
90 const fvMesh& filmMesh = model.regionMesh();
110 filmMesh.objectRegistry::store(resultPtr);
113 auto& result = *resultPtr;
132 zeroGradientFvPatchScalarField::typeName
135 auto& heightc = height.
ref();
148 const auto& filmMesh = filmModel().regionMesh();
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Internal & ref(const bool updateAccessTime=true)
Return a reference to the dimensioned internal field.
void correctBoundaryConditions()
Correct boundary field.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
virtual bool read()
Re-read model coefficients if they have changed.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base-class for Time/database function objects.
Calculates the mass flux for surface film models.
virtual bool execute()
Execute.
virtual bool write()
Write the field.
virtual bool read(const dictionary &)
Read the field data.
Base class for function objects, adding functionality to read/write state information (data required ...
const Time & time_
Reference to the time database.
Mesh data needed to do the Finite Volume discretisation.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
Type * getObjectPtr(const word &name, const bool recursive=false) const
Kinematic form of single-cell layer surface film model.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
static constexpr const zero Zero
Global zero (0)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)