Go to the documentation of this file.
34 namespace regionModels
36 namespace surfaceFilmModels
48 transferModelList::transferModelList
72 Info<<
" Selecting film transfer models" <<
endl;
73 if (models.size() > 0)
78 for (
const word& model : models)
108 operator[](i).correct(availableMass, massToTransfer);
118 label patchi = patchIDs[i];
119 massTransferred_[i] =
135 operator[](i).correct(availableMass, massToTransfer, energyToTransfer);
146 label patchi = patchIDs[i];
147 massTransferred_[i] =
157 scalar transferredMass = 0;
171 os <<
indent <<
"transferred mass = " << transferredMass <<
nl;
173 forAll(patchTransferredMasses, patchi)
175 if (
mag(patchTransferredMasses[patchi]) > VSMALL)
178 <<
" = " << patchTransferredMasses[patchi] <<
nl;
193 label patchi = patchIDs[i];
201 massTransferred_ = 0.0;
points setSize(newPointi)
const word & name() const
Return name.
A class for handling words, derived from Foam::string.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
virtual void correct(scalarField &availableMass, volScalarField &massToTransfer)
Correct kinematic transfers.
virtual void info(Ostream &os)
Provide some info.
static constexpr const zero Zero
Global zero.
const labelList & processorPatches() const
Return list of processor patch labels.
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.
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.
#define forAll(list, i)
Loop across all elements in list.
virtual scalar transferredMassTotal() const
Return the total mass transferred.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Base class for surface film models.
messageStream Info
Information stream (uses stdout - output is on the master only)
const fvMesh & regionMesh() const
Return the region mesh database.
virtual void patchTransferredMassTotals(scalarField &patchMasses) const
Accumulate the total mass transferred for the patches into the.
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,...
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)
Base class for film transfer models, handling mass transfer between the film and the continuous phase...
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)
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
virtual ~transferModelList()
Destructor.
static autoPtr< transferModel > New(surfaceFilmRegionModel &film, const dictionary &dict, const word &modelType)
Return a reference to the selected injection model.
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.
const Boundary & boundaryField() const
Return const-reference to the boundary field.