88 const auto& massRatio = tmassRatio.
cref();
91 massToInject = massRatio*availableMass;
92 diameterToInject = massRatio*film().h();
93 availableMass -= massRatio*availableMass;
95 addToInjectedMass(
sum(massToInject));
105 mesh.newIOobject(
"separated"),
109 areaSeparated.primitiveFieldRef() = massRatio;
110 areaSeparated.write();
116 mesh.newIOobject(
"massToInject"),
120 areaMassToInject.primitiveFieldRef() = massToInject;
121 areaMassToInject.write();
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field values.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
A base class for filmSeparation models.
virtual bool write(const bool writeOnProc=true) const
Write using setting from DB.
The filmSeparation is a collection of curvature thin-film separation models designed to predict the o...
virtual ~filmSeparation()
Destructor.
filmSeparation(liquidFilmBase &film, const dictionary &dict)
Construct from base film model and dictionary.
const liquidFilmBase & film() const
Return const access to the film surface film model.
Base class for film injection models, handling mass transfer from the film.
void addToInjectedMass(const scalar dMass)
Add to injected mass.
static autoPtr< injectionModel > New(liquidFilmBase &film, const dictionary &dict, const word &mdoelType)
Return a reference to the selected injection model.
Base class for liquid-film models.
const dictionary coeffDict_
Coefficients dictionary.
const dictionary & dict() const
Return const access to the cloud dictionary.
A class for managing temporary objects.
const T & cref() const
Return const reference to the object or to the contents of a (non-null) managed pointer.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Namespace for handling debugging switches.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
GeometricField< scalar, faPatchField, areaMesh > areaScalarField
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &f1, const label comm)
static constexpr const zero Zero
Global zero (0).
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)