37 namespace regionModels
39 namespace areaSurfaceFilmModels
88 const auto& massRatio = tmassRatio.
cref();
91 massToInject = massRatio*availableMass;
92 diameterToInject = massRatio*film().
h();
93 availableMass -= massRatio*availableMass;
95 addToInjectedMass(
sum(massToInject));
110 areaSeparated.write();
121 areaMassToInject.write();
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &f1)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const T & cref() const
Return const reference to the object or to the contents of a (non-null) managed pointer.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
filmSeparation(liquidFilmBase &film, const dictionary &dict)
Construct from base film model and dictionary.
bool writeTime() const noexcept
True if this is a write interval.
const Time & time() const
Return the top-level database.
defineTypeNameAndDebug(kinematicThinFilm, 0)
Base class for liquid-film models.
Base class for film injection models, handling mass transfer from the film.
Macros for easy insertion into run-time selection tables.
addToRunTimeSelectionTable(liquidFilmBase, kinematicThinFilm, dictionary)
const areaScalarField & h() const noexcept
Access const reference h.
const faMesh & regionMesh() const
Return the region mesh database.
int debug
Static debugging option.
A base class for filmSeparation models.
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field values.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual ~filmSeparation()
Destructor.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
IOobject newIOobject(const word &name, IOobjectOption ioOpt) const
Create an IOobject at the current time instance (timeName) with the specified options.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)