32 namespace regionModels
34 namespace surfaceFilmModels
46 transferModelList::transferModelList
71 models.insert(activeModels[i]);
74 Info<<
" Selecting film transfer models" <<
endl;
75 if (models.size() > 0)
82 const word& model = iter.key();
111 operator[](i).correct(availableMass, massToTransfer);
122 massTransferred_[i] =
138 operator[](i).correct(availableMass, massToTransfer, energyToTransfer);
150 massTransferred_[i] =
160 scalar transferredMass = 0;
174 os <<
indent <<
"transferred mass = " << transferredMass <<
nl;
178 if (
mag(patchTransferredMasses[
patchi]) > VSMALL)
181 <<
" = " << patchTransferredMasses[
patchi] <<
nl;
204 massTransferred_ = 0.0;
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
const surfaceFilmModel & film() const
Return const access to the film surface film model.
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.
Ostream & indent(Ostream &os)
Indent stream.
static autoPtr< transferModel > New(surfaceFilmModel &film, const dictionary &dict, const word &modelType)
Return a reference to the selected injection model.
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.
Base class for film transfer models, handling mass transfer between the film and the continuous phase...
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.
static void listCombineGather(const List< commsStruct > &comms, List< T > &Value, const CombineOp &cop, const int tag, const label comm)
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
virtual bool writeTime() const
Flag to indicate when to write a property.
virtual scalar transferredMassTotal() const
Return the total mass transferred.
virtual void correct(scalarField &availableMass, volScalarField &massToTransfer)
Correct kinematic transfers.
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...
virtual void info(Ostream &os)
Provide some info.
virtual void patchTransferredMassTotals(scalarField &patchMasses) const
Accumulate the total mass transferred for the patches into the.
label size() const
Return the number of elements in the UPtrList.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Base class for surface film models.
void setBaseProperty(const word &entryName, const Type &value)
Add generic property to the base model.
virtual ~transferModelList()
Destructor.
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.
const labelList & intCoupledPatchIDs() const
Return the list of patch IDs internally coupled with the.