36 namespace regionModels
38 namespace surfaceFilmModels
48 patchInjection::patchInjection
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] +=
const polyBoundaryMesh & pbm
void size(const label n)
Older name for setAddressableSize.
Base class for surface film models.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
scalarField patchInjectedMasses_
Injected mass for each patch at which the film is removed.
virtual void patchInjectedMassTotals(scalarField &patchMasses) const
Accumulate the total mass injected for the patches into the.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
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.
Remove and inject the mass in the film as it passes over the selected patches.
virtual ~patchInjection()
Destructor.
Smooth ATC in cells next to a set of patches supplied by type.
const dictionary coeffDict_
Coefficients dictionary.
virtual const volScalarField & rho() const =0
Return the film density [kg/m3].
addToRunTimeSelectionTable(surfaceFilmRegionModel, kinematicSingleLayer, mesh)
Macros for easy insertion into run-time selection tables.
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.
labelList patchIDs_
List of patch IDs at which the film is removed.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
void setSize(const label n)
Alias for resize()
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
wordList patchNames(nPatches)
virtual const volScalarField & delta() const =0
Return the film thickness [m].
scalar deltaStable_
Stable film thickness - mass only removed if thickness exceeds.
const fvMesh & regionMesh() const
Return the region mesh database.
A List of wordRe with additional matching capabilities.
const globalMeshData & globalData() const
Return parallel info.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO...
void addToInjectedMass(const scalar dMass)
Add to injected mass.
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry if present, and assign to T val. FatalIOError if it is found and the number of tokens i...
Base class for film injection models, handling mass transfer from the film.
virtual const volScalarField & magSf() const
Return the face area magnitudes / [m2].
messageStream Info
Information stream (stdout output on master, null elsewhere)
static void listCombineGather(const List< commsStruct > &comms, List< T > &values, const CombineOp &cop, const int tag, const label comm)
A patch is a list of labels that address the faces in the global face list.
defineTypeNameAndDebug(kinematicSingleLayer, 0)
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
static constexpr const zero Zero
Global zero (0)