35 namespace regionModels
37 namespace surfaceFilmModels
49 transferModelList::transferModelList
64 massTransferred_(film.intCoupledPatchIDs().size(),
Zero)
73 Info<<
" Selecting film transfer models" <<
endl;
74 if (models.size() > 0)
79 for (
const word& model : models)
109 operator[](i).correct(availableMass, massToTransfer);
120 massTransferred_[i] =
136 operator[](i).correct(availableMass, massToTransfer, energyToTransfer);
148 massTransferred_[i] =
158 scalar transferredMass = 0;
168 transferredMass += im.transferredMassTotal();
169 im.patchTransferredMassTotals(patchTransferredMasses);
172 os <<
indent <<
"transferred mass = " << transferredMass <<
nl;
174 forAll(patchTransferredMasses, patchi)
176 if (
mag(patchTransferredMasses[patchi]) > VSMALL)
179 <<
" = " << patchTransferredMasses[patchi] <<
nl;
202 massTransferred_ = 0.0;
static void listCombineGather(UList< T > &values, const CombineOp &cop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Combines List elements.
const labelList patchIDs(pbm.indices(polyPatchNames, true))
const polyBoundaryMesh & pbm
const T & operator[](const label i) const
Return const reference to the element at given position. FatalError for bounds problem or nullptr...
void size(const label n)
Older name for setAddressableSize.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &f1)
Ostream & indent(Ostream &os)
Indent stream.
Base class for surface film models.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Base class for surface film sub-models.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Base class for film transfer models, handling mass transfer between the film and the continuous phase...
Type getBaseProperty(const word &entryName, const Type &defaultValue=Type(Zero)) const
Retrieve generic property from the base model.
const labelList & processorPatches() const noexcept
Return list of processor patch labels.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dictionary & dict() const
Return const access to the cloud dictionary.
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.
#define forAll(list, i)
Loop across all elements in list.
const labelList & intCoupledPatchIDs() const noexcept
List of patch IDs internally coupled with the primary region.
virtual void correct(scalarField &availableMass, volScalarField &massToTransfer)
Correct kinematic transfers.
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const fvMesh & regionMesh() const
Return the region mesh database.
const globalMeshData & globalData() const
Return parallel info (demand-driven)
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void info(Ostream &os)
Provide some info.
OBJstream os(runTime.globalPath()/outputName)
void setSize(const label newLen)
Same as resize()
static autoPtr< transferModel > New(surfaceFilmRegionModel &film, const dictionary &dict, const word &modelType)
Return a reference to the selected injection model.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
void setBaseProperty(const word &entryName, const Type &value)
Add generic property to the base model.
virtual ~transferModelList()
Destructor.
void correctBoundaryConditions()
Correct boundary field.
messageStream Info
Information stream (stdout output on master, null elsewhere)
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T, or return the given default value. FatalIOError if it is found and the number of...
List< label > labelList
A List of labels.
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
static constexpr const zero Zero
Global zero (0)