38namespace surfaceFilmModels
55 deltaStable_(coeffDict_.getOrDefault<scalar>(
"deltaStable", 0))
68 Info<<
" applying to patches:" <<
nl;
71 for (
const label patchi : patchSet)
81 Info<<
" applying to all patches" <<
endl;
94 <<
"No patches selected"
131 scalar dMassPatch = 0;
138 scalar dMass = ddelta*
rho[celli]*magSf[celli];
139 massToInject[celli] += dMass;
140 availableMass[celli] -= dMass;
154 getModelProperty<scalarField>
156 "patchInjectedMasses",
165 setModelProperty<scalarField>
167 "patchInjectedMasses",
183 getModelProperty<scalarField>
185 "patchInjectedMasses",
196 patchMasses[patchi] +=
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
const word & name() const noexcept
Return the object name.
void setSize(const label n)
Alias for resize()
static void listCombineGather(const List< commsStruct > &comms, List< T > &values, const CombineOp &cop, const int tag, const label comm)
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
void size(const label n)
Older name for setAddressableSize.
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,...
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Smooth ATC in cells next to a set of patches supplied by type.
const labelList & processorPatches() const noexcept
Return list of processor patch labels.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
labelHashSet patchSet(const UList< wordRe > &patchNames, const bool warnNotFound=true, const bool useGroups=true) const
Return the set of patch IDs corresponding to the given names.
const globalMeshData & globalData() const
Return parallel info.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
A patch is a list of labels that address the faces in the global face list.
const labelUList & faceCells() const
Return face-cell addressing.
const fvMesh & regionMesh() const
Return the region mesh database.
virtual const volScalarField & magSf() const
Return the face area magnitudes / [m2].
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 film injection models, handling mass transfer from the film.
void addToInjectedMass(const scalar dMass)
Add to injected mass.
Remove and inject the mass in the film as it passes over the selected patches.
scalarField patchInjectedMasses_
Injected mass for each patch at which the film is removed.
scalar deltaStable_
Stable film thickness - mass only removed if thickness exceeds.
virtual void patchInjectedMassTotals(scalarField &patchMasses) const
Accumulate the total mass injected for the patches into the.
virtual ~patchInjection()
Destructor.
labelList patchIDs_
List of patch IDs at which the film is removed.
Base class for surface film models.
virtual const volScalarField & rho() const =0
Return the film density [kg/m3].
virtual const volScalarField & delta() const =0
Return the film thickness [m].
const dictionary coeffDict_
Coefficients dictionary.
A List of wordRe with additional matching capabilities.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
messageStream Info
Information stream (stdout output on master, null elsewhere)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static constexpr const zero Zero
Global zero (0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
wordList patchNames(nPatches)
#define forAll(list, i)
Loop across all elements in list.