32 namespace regionModels
34 namespace surfaceFilmModels
46 injectionModelList::injectionModelList
68 models.insert(activeModels[i]);
71 Info<<
" Selecting film injection models" <<
endl;
72 if (models.size() > 0)
79 const word& model = iter.key();
110 im.
correct(availableMass, massToInject, diameterToInject);
132 scalar injectedMass = 0;
142 os <<
indent <<
"injected mass = " << injectedMass <<
nl;
146 if (
mag(patchInjectedMasses[
patchi]) > VSMALL)
149 <<
" = " << patchInjectedMasses[
patchi] <<
nl;
A HashTable with keys but without contents.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dictionary & dict() const
Return const access to the cloud dictionary.
virtual void correct(scalarField &availableMass, volScalarField &massToInject, volScalarField &diameterToInject)
Correct.
Ostream & indent(Ostream &os)
Indent stream.
virtual scalar injectedMassTotal() const
Return the total mass injected.
A list of keyword definitions, which are a keyword followed by any number of values (e...
void size(const label)
Override size to be inconsistent with allocated storage.
static autoPtr< injectionModel > New(surfaceFilmModel &owner, const dictionary &dict, const word &mdoelType)
Return a reference to the selected injection model.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void info(Ostream &os)
Provide some info.
static void listCombineGather(const List< commsStruct > &comms, List< T > &Value, const CombineOp &cop, const int tag, const label comm)
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
const fvMesh & regionMesh() const
Return the region mesh database.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
A class for handling words, derived from string.
Type getBaseProperty(const word &entryName, const Type &defaultValue=pTraits< Type >::zero) const
Retrieve generic property from the base model.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Base class for film injection models, handling mass transfer from the film.
const T & operator[](const label) const
Return element const reference.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
const surfaceFilmModel & owner() const
Return const access to the owner surface film model.
Base class for surface film models.
void setBaseProperty(const word &entryName, const Type &value)
Add generic property to the base model.
void correctBoundaryConditions()
Correct boundary field.
const labelList & intCoupledPatchIDs() const
Return the list of patch IDs internally coupled with the.
dimensioned< scalar > mag(const dimensioned< Type > &)
virtual bool writeTime() const
Flag to indicate when to write a property.
virtual ~injectionModelList()
Destructor.
virtual void patchInjectedMassTotals(scalarField &patchMasses) const
Accumulate the total mass injected for the patches into the.
const word & name() const
Return name.
label size() const
Return the number of elements in the UPtrList.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.