Go to the documentation of this file.
35 namespace regionModels
37 namespace areaSurfaceFilmModels
49 injectionModelList::injectionModelList
70 Info<<
" Selecting film injection models" <<
endl;
76 for (
const word& model : models)
126 scalar injectedMass = 0;
127 scalar patchInjectedMasses = 0;
131 const injectionModel& im = operator[](i);
132 injectedMass += im.injectedMassTotal();
133 im.patchInjectedMassTotals(patchInjectedMasses);
136 os <<
indent <<
"injected mass = " << injectedMass <<
nl;
140 if (
mag(patchInjectedMasses) > VSMALL)
143 <<
" = " << patchInjectedMasses <<
nl;
149 scalar mass(massInjected_);
points setSize(newPointi)
void set(List< bool > &bools, const labelRange &range)
A class for handling words, derived from Foam::string.
virtual ~injectionModelList()
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
const fvMesh & primaryMesh() const
static constexpr const zero Zero
Type getBaseProperty(const word &entryName, const Type &defaultValue=Type(Zero)) const
virtual void info(Ostream &os)
const polyBoundaryMesh & boundaryMesh() const
Ostream & endl(Ostream &os)
const T * set(const label i) const
Type gSum(const FieldField< Field, Type > &f)
virtual void patchInjectedMassTotals(scalar &patchMasses) const
A HashTable with keys but without contents that is similar to std::unordered_set.
virtual bool writeTime() const
virtual void correct(scalarField &availableMass, volScalarField &massToInject, volScalarField &diameterToInject)
Base class for film injection models, handling mass transfer from the film.
Generic templated field type.
const dictionary & dict() const
const liquidFilmBase & film() const
void setSize(const label newLen)
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
ITstream & lookup(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Ostream & indent(Ostream &os)
const word & name() const noexcept
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void setBaseProperty(const word &entryName, const Type &value)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
virtual scalar injectedMassTotal() const
static autoPtr< injectionModel > New(liquidFilmBase &film, const dictionary &dict, const word &mdoelType)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Generic GeometricField class.
const Boundary & boundaryField() const