32 namespace regionModels
34 namespace surfaceFilmModels
63 Info<<
" Selecting film transfer" <<
endl;
65 if (dict.
isDict(
"transfer"))
68 this->
setSize(transferDict.size());
79 transferDict.
isDict(iter().keyword())
80 ? transferDict.subDict(iter().keyword())
87 else if (dict.
found(
"transferModels"))
134 massTransferred_[i] =
170 massTransferred_[i] =
180 scalar transferredMass = 0;
194 os <<
indent <<
"transferred mass = " << transferredMass <<
nl;
198 if (
mag(patchTransferredMasses[
patchi]) > vSmall)
201 <<
" = " << patchTransferredMasses[
patchi] <<
nl;
224 massTransferred_ = 0.0;
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
#define forAll(list, i)
Loop across all elements in list.
const labelList & processorPatches() const
Return list of processor patch labels.
const word & name() const
Return name.
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...
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
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)
bool isDict(const word &) const
Check if entry is a sub-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.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
virtual scalar transferredMassTotal() const
Return the total mass transferred.
virtual void correct(scalarField &availableMass, volScalarField &massToTransfer, volVectorField &momentumToTransfer)
Correct kinematic transfers.
transferModelList(surfaceFilmRegionModel &film)
Construct null.
static const dictionary null
Null dictionary.
const fvMesh & regionMesh() const
Return the region mesh database.
const globalMeshData & globalData() const
Return parallel info.
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.
static autoPtr< transferModel > New(surfaceFilmRegionModel &film, const dictionary &dict, const word &modelType)
Return a reference to the selected ejection model.
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 ~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.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.