37namespace surfaceFilmModels
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);
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;
161 pbm.
size() -
film().regionMesh().globalData().processorPatches().
size(),
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;
const Boundary & boundaryField() const
Return const-reference to the boundary field.
void correctBoundaryConditions()
Correct boundary field.
label size() const noexcept
The number of elements in table.
const word & name() const noexcept
Return the object name.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static void listCombineGather(const List< commsStruct > &comms, List< T > &values, const CombineOp &cop, const int tag, const label comm)
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
const transferModel * set(const label i) const
void setSize(const label newLen)
Same as resize()
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
void size(const label n)
Older name for setAddressableSize.
const T & operator[](const label i) const
Return const reference to the element.
label size() const noexcept
The number of elements in the list.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
InfoProxy< ensightCells > info() const
Return info proxy.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
const fvMesh & regionMesh() const
Return the region mesh database.
const labelList & intCoupledPatchIDs() const
Return the list of patch IDs internally coupled with the.
Base class for surface film sub-models.
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.
Base class for surface film models.
virtual ~transferModelList()
Destructor.
Base class for film transfer models, handling mass transfer between the film and the continuous phase...
virtual void patchTransferredMassTotals(scalarField &patchMasses) const
Accumulate the total mass transferred for the patches into the.
virtual scalar transferredMassTotal() const
Return the total mass transferred.
Type getBaseProperty(const word &entryName, const Type &defaultValue=Type(Zero)) const
Retrieve generic property from the base model.
const dictionary & dict() const
Return const access to the cloud dictionary.
void setBaseProperty(const word &entryName, const Type &value)
Add generic property to the base model.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & indent(Ostream &os)
Indent stream.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
static constexpr const zero Zero
Global zero (0)
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.