Go to the documentation of this file.
35 namespace regionModels
37 namespace surfaceFilmModels
49 transferModelList::transferModelList
73 Info<<
" Selecting film transfer models" <<
endl;
74 if (models.
size() > 0)
79 for (
const word& model : models)
109 operator[](i).correct(availableMass, massToTransfer);
119 label patchi = patchIDs[i];
120 massTransferred_[i] =
136 operator[](i).correct(availableMass, massToTransfer, energyToTransfer);
147 label patchi = patchIDs[i];
148 massTransferred_[i] =
158 scalar transferredMass = 0;
172 os <<
indent <<
"transferred mass = " << transferredMass <<
nl;
174 forAll(patchTransferredMasses, patchi)
176 if (
mag(patchTransferredMasses[patchi]) > VSMALL)
179 <<
" = " << patchTransferredMasses[patchi] <<
nl;
194 label patchi = patchIDs[i];
202 massTransferred_ = 0.0;
label size() const noexcept
The number of elements in table.
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 (0)
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.
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.