37 namespace functionObjects
180 facei = subMesh.
sub(
c.mesh().facei());
203 auto proci0EqualsProci = [&](
const label subi)
208 prociPtr_->primitiveFieldRef()[subi + subMesh.
start()]
223 if (!proci0EqualsProci(subi) || facei0[subi] != facei[subi])
continue;
233 magSfb[patchis[i]][patchFaceis[i]]
236 phib_[patchis[i]][patchFaceis[i]] +=
237 fraction*q[subi]/time_.deltaTValue();
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricBoundaryField class.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
LagrangianGroup group() const
Return the group.
word sub(const word &fieldName) const
Return the name of a field corresponding to this sub-mesh.
label start() const
Return start.
static const List< word > & null()
Return a null List.
Pre-declare related SubField type.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static bool & parRun()
Is this a parallel run?
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
Foam::calculatedFvsPatchField.
Base class for clouds. Provides a basic evolution algorithm, models, and a database for caching deriv...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Dimension set for the base types.
Generic dimensioned Type class.
Base class for functions which generate a boundary collision flux for a cloud.
virtual wordList fields() const
Return the list of fields required.
virtual void preCrossFaces(const LagrangianInternalScalarDynamicField &fraction)
Hook before all face crossings.
cloudBoundaryCollisionFlux(const word &name, const Time &runTime, const dictionary &dict, const word &phiName, const dimensionSet &phiDims)
Construct from Time and dictionary.
virtual bool executeAtStart() const
Return false so this function does not execute at the start.
virtual void postCrossFaces(const LagrangianSubScalarSubField &fraction)
Hook following face crossings of a specific sub-mesh.
virtual bool clear()
Clear the number flux.
virtual void preSolve()
Hook before solution steps.
virtual ~cloudBoundaryCollisionFlux()
Destructor.
virtual bool execute()
Do nothing. Everything happens in faces crossing hooks.
virtual bool write()
Write the number flux.
Base class for function objects that refer to an fvMesh and a cloud. Used, for example,...
Function object that solves for the evolution of a cloud. Only provides one-way coupling with a finit...
const UCompactListList< label > & polyBFacePatches() const
Return poly-bFace-patch addressing.
const UCompactListList< label > & polyBFacePatchFaces() const
Return poly-bFace-patch-face addressing.
const surfaceScalarField & magSf() const
Return cell face area magnitudes.
label nInternalFaces() const
const scalarField & magFaceAreas() const
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
const dimensionedScalar c
Speed of light in a vacuum.
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
const dimensionSet & dimless
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
SurfaceField< scalar > surfaceScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const dimensionSet & dimTime
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
faceListList boundary(nPatches)