49injectionModelList::injectionModelList
64 massInjected_(film.intCoupledPatchIDs().size(),
Zero)
66 const wordList activeModels(
dict.lookup(
"injectionModels"));
70 Info<<
" Selecting film injection models" <<
endl;
76 for (
const word& model : models)
108 im.
correct(availableMass, massToInject, diameterToInject);
130 scalar injectedMass = 0;
133 pbm.size() -
film().regionMesh().globalData().processorPatches().
size(),
140 injectedMass += im.injectedMassTotal();
141 im.patchInjectedMassTotals(patchInjectedMasses);
144 os <<
indent <<
"injected mass = " << injectedMass <<
nl;
146 forAll(patchInjectedMasses, patchi)
148 if (
mag(patchInjectedMasses[patchi]) > VSMALL)
151 <<
" = " << patchInjectedMasses[patchi] <<
nl;
const polyBoundaryMesh & pbm
void correctBoundaryConditions()
Correct boundary field.
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
label size() const noexcept
The number of elements in table.
virtual const fileName & name() const
The name of the stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static void listCombineGather(UList< T > &values, CombineOp cop, const int tag=UPstream::msgType(), const int communicator=UPstream::worldComm)
Forwards to Pstream::listGather with an in-place cop.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
const injectionModel * set(const label i) const
void setSize(const label n)
constexpr PtrList() noexcept
const injectionModel & operator[](const label i) const
label size() const noexcept
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A polyBoundaryMesh is a polyPatch list with registered IO, a reference to the associated polyMesh,...
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
const fvMesh & regionMesh() const
Return the region mesh database.
const labelList & intCoupledPatchIDs() const noexcept
List of patch IDs internally coupled with the primary region.
Base class for surface film sub-models.
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
virtual bool writeTime() const
Flag to indicate when to write a property.
filmSubModelBase(surfaceFilmRegionModel &film)
Construct null.
virtual void info(Ostream &os)
Provide some info.
virtual ~injectionModelList()
Destructor.
virtual void correct(scalarField &availableMass, volScalarField &massToInject, volScalarField &diameterToInject)
Correct.
Base class for film injection models, handling mass transfer from the film.
virtual scalar injectedMassTotal() const
Return the total mass injected.
static autoPtr< injectionModel > New(surfaceFilmRegionModel &film, const dictionary &dict, const word &mdoelType)
Return a reference to the selected injection model.
virtual void patchInjectedMassTotals(scalarField &patchMasses) const
Accumulate the total mass injected for the patches into the.
Base class for surface film models.
Type getBaseProperty(const word &entryName, const Type &defaultValue=Type(Zero)) const
Retrieve generic property from the base model.
const dictionary & dict() const
Return const access to the cloud dictionary.
void setBaseProperty(const word &entryName, const Type &value)
Add generic property to the base model.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
List< word > wordList
List of word.
HashSet< word, Hash< word > > wordHashSet
A HashSet of words, uses string hasher.
List< label > labelList
A List of labels.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
messageStream Info
Information stream (stdout output on master, null elsewhere).
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & indent(Ostream &os)
Indent stream.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &f1, const label comm)
static constexpr const zero Zero
Global zero (0).
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.