Go to the documentation of this file.
35 namespace regionModels
37 namespace surfaceFilmModels
49 injectionModelList::injectionModelList
64 massInjected_(film.intCoupledPatchIDs().size(),
Zero)
70 Info<<
" Selecting film injection models" <<
endl;
76 for (
const word& model : models)
108 im.
correct(availableMass, massToInject, diameterToInject);
119 label patchi = patchIDs[i];
130 scalar injectedMass = 0;
133 pbm.size() -
film().regionMesh().globalData().processorPatches().size(),
139 const injectionModel& im = operator[](i);
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;
166 label patchi = patchIDs[i];
List< label > labelList
A List of labels.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
points setSize(newPointi)
void set(List< bool > &bools, const labelRange &range)
A class for handling words, derived from Foam::string.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
static constexpr const zero Zero
Type getBaseProperty(const word &entryName, const Type &defaultValue=Type(Zero)) const
virtual bool writeTime() const
virtual void info(Ostream &os)
const polyBoundaryMesh & boundaryMesh() const
Ostream & endl(Ostream &os)
const T * set(const label i) const
A HashTable with keys but without contents that is similar to std::unordered_set.
static autoPtr< injectionModel > New(surfaceFilmRegionModel &film, const dictionary &dict, const word &mdoelType)
virtual void patchInjectedMassTotals(scalarField &patchMasses) const
Generic templated field type.
Base class for surface film models.
const dictionary & dict() const
void setSize(const label newLen)
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
ITstream & lookup(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Base class for film injection models, handling mass transfer from the film.
OBJstream os(runTime.globalPath()/outputName)
Ostream & indent(Ostream &os)
void correctBoundaryConditions()
static void listCombineGather(const List< commsStruct > &comms, List< T > &Value, const CombineOp &cop, const int tag, const label comm)
const word & name() const noexcept
virtual void correct(scalarField &availableMass, volScalarField &massToInject, volScalarField &diameterToInject)
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)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
virtual scalar injectedMassTotal() const
const surfaceFilmRegionModel & film() const
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Generic GeometricField class.
const labelList & intCoupledPatchIDs() const
Base class for surface film sub-models.
virtual ~injectionModelList()
const Boundary & boundaryField() const
const fvMesh & regionMesh() const