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;
146 os <<
indent <<
"injected mass = " << injectedMass <<
nl;
150 if (
mag(patchInjectedMasses[
patchi]) > vSmall)
153 <<
" = " << patchInjectedMasses[
patchi] <<
nl;
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
A HashTable with keys but without contents.
#define forAll(list, i)
Loop across all elements in list.
const labelList & processorPatches() const
Return list of processor patch labels.
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 word & name() const
Return name.
virtual void correct(scalarField &availableMass, volScalarField &massToInject, volScalarField &diameterToInject)
Correct.
Ostream & indent(Ostream &os)
Indent stream.
Base class for surface film models.
Base class for surface film sub-models.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const Boundary & boundaryField() const
Return const-reference to the boundary field.
void size(const label)
Override size to be inconsistent with allocated storage.
const T & operator[](const label) const
Return element const reference.
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 dictionary & dict() const
Return const access to the cloud dictionary.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
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.
virtual void patchInjectedMassTotals(scalarField &patchMasses) const
Accumulate the total mass injected for the patches into the.
static autoPtr< injectionModel > New(surfaceFilmRegionModel &film, const dictionary &dict, const word &mdoelType)
Return a reference to the selected injection model.
A class for handling words, derived from string.
const fvMesh & regionMesh() const
Return the region mesh database.
const globalMeshData & globalData() const
Return parallel info.
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.
label size() const
Return the number of elements in the UPtrList.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
void setBaseProperty(const word &entryName, const Type &value)
Add generic property to the base model.
virtual scalar injectedMassTotal() const
Return the total mass injected.
void correctBoundaryConditions()
Correct boundary field.
dimensioned< scalar > mag(const dimensioned< Type > &)
Type getBaseProperty(const word &entryName, const Type &defaultValue=pTraits< Type >::zero) const
Retrieve generic property from the base model.
virtual ~injectionModelList()
Destructor.
const labelList & intCoupledPatchIDs() const
Return the list of patch IDs internally coupled with the.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.