Go to the documentation of this file.
35 namespace regionModels
37 namespace surfaceFilmModels
49 injectionModelList::injectionModelList
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);
119 label patchi = patchIDs[i];
130 scalar injectedMass = 0;
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];
points setSize(newPointi)
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
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
Global zero (0)
Type getBaseProperty(const word &entryName, const Type &defaultValue=Type(Zero)) const
Retrieve generic property from the base model.
virtual bool writeTime() const
Flag to indicate when to write a property.
virtual void info(Ostream &os)
Provide some info.
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< injectionModel > New(surfaceFilmRegionModel &film, const dictionary &dict, const word &mdoelType)
Return a reference to the selected injection model.
const labelList & processorPatches() const noexcept
Return list of processor patch labels.
#define forAll(list, i)
Loop across all elements in list.
virtual void patchInjectedMassTotals(scalarField &patchMasses) const
Accumulate the total mass injected for the patches into the.
Base class for surface film models.
messageStream Info
Information stream (stdout output on master, null elsewhere)
const fvMesh & regionMesh() const
Return the region mesh database.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
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)
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)
const word & name() const noexcept
Return name.
virtual void correct(scalarField &availableMass, volScalarField &massToInject, volScalarField &diameterToInject)
Correct.
void setBaseProperty(const word &entryName, const Type &value)
Add generic property to the base model.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
virtual scalar injectedMassTotal() const
Return the total mass injected.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const globalMeshData & globalData() const
Return parallel info.
const labelList & intCoupledPatchIDs() const
Return the list of patch IDs internally coupled with the.
Base class for surface film sub-models.
virtual ~injectionModelList()
Destructor.
const Boundary & boundaryField() const
Return const-reference to the boundary field.