Go to the documentation of this file.
32 namespace regionModels
34 namespace surfaceFilmModels
63 const wordList activeModels(
dict.lookup(
"injectionModels"));
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;
points setSize(newPointi)
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
static autoPtr< injectionModel > New(surfaceFilmModel &owner, const dictionary &dict, const word &mdoelType)
Return a reference to the selected injection model.
virtual void info(Ostream &os)
Provide some info.
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
const surfaceFilmModel & owner() const
Return const access to the owner surface film model.
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< scalar > mag(const dimensioned< Type > &)
A HashTable with keys but without contents.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
virtual bool outputTime() 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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
const T & operator[](const label) const
Return element const reference.
const word & name() const
Return name.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
scalarField massInjected_
List of mass injected per patch.
A list of keyword definitions, which are a keyword followed by any number of values (e....
label size() const
Return number of elements in table.
Base class for film injection models, handling mass transfer from the film.
Ostream & indent(Ostream &os)
Indent stream.
void correctBoundaryConditions()
Correct boundary field.
static void listCombineGather(const List< commsStruct > &comms, List< T > &Value, const CombineOp &cop, const int tag, const label comm)
Type getBaseProperty(const word &entryName, const Type &defaultValue=pTraits< Type >::zero) const
Retrieve generic property from the base model.
virtual void correct(scalarField &availableMass, volScalarField &massToInject, volScalarField &diameterToInject)
Correct.
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)
Add generic property to the base model.
virtual scalar injectedMassTotal() const
Return the total mass injected.
label size() const
Return the number of elements in the PtrList.
bool insert(const Key &key)
Insert a new entry.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
Base class for surface film models.
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Generic GeometricField class.
const labelList & intCoupledPatchIDs() const
Return the list of patch IDs internally coupled with the.
virtual ~injectionModelList()
Destructor.
injectionModelList(const injectionModelList &)
Disallow default bitwise copy construct.
const fvMesh & regionMesh() const
Return the region mesh database.