Go to the documentation of this file.
35 namespace regionModels
37 namespace areaSurfaceFilmModels
49 injectionModelList::injectionModelList
66 const wordList activeModels(
dict.lookup(
"injectionModels"));
70 Info<<
" Selecting film injection models" <<
endl;
76 for (
const word& model : models)
104 const label patchi = film().
patchID();
126 scalar injectedMass = 0;
127 scalar patchInjectedMasses = 0;
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)
Set the specified range 'on' in a boolList.
A class for handling words, derived from Foam::string.
virtual ~injectionModelList()
Destructor.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
const fvMesh & primaryMesh() const
Return the reference to the primary mesh database.
static constexpr const zero Zero
Global zero (0)
Type getBaseProperty(const word &entryName, const Type &defaultValue=Type(Zero)) const
Retrieve generic property from the base model.
virtual void info(Ostream &os)
Provide some info.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Type gSum(const FieldField< Field, Type > &f)
virtual void patchInjectedMassTotals(scalar &patchMasses) const
virtual bool writeTime() const
Flag to indicate when to write a property.
#define forAll(list, i)
Loop across all elements in list.
virtual void correct(scalarField &availableMass, volScalarField &massToInject, volScalarField &diameterToInject)
Correct.
Base class for film injection models, handling mass transfer from the film.
messageStream Info
Information stream (stdout output on master, null elsewhere)
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
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)
Indent stream.
const word & name() const noexcept
Return name.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
void setBaseProperty(const word &entryName, const Type &value)
Add generic property to the base model.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
virtual scalar injectedMassTotal() const
Return the total mass injected.
label patchID() const
Return patch ID.
static autoPtr< injectionModel > New(liquidFilmBase &film, const dictionary &dict, const word &mdoelType)
Return a reference to the selected injection model.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const liquidFilmBase & film() const
Return const access to the film surface film model.
const Boundary & boundaryField() const
Return const-reference to the boundary field.