38 #ifndef LagrangianInjection_H
39 #define LagrangianInjection_H
48 class timeIOdictionary;
78 template<
class ... OtherFields>
85 OtherFields& ... otherFields
Pre-declare SubField and related Field type.
Base class for Lagrangian injections. Minimal wrapper over LagrangianSource. Implements some utility ...
LagrangianInjection(const word &name, const LagrangianMesh &mesh)
Construct from components.
TypeName("LagrangianInjection")
Runtime type information.
void checkLocation(const LagrangianMesh::location, const point &) const
Check the location and error or warn as appropriate.
virtual ~LagrangianInjection()
Destructor.
virtual bool addsSupToField(const word &fieldName) const
Return true if the LagrangianModel adds a source term to the.
static void filter(barycentricField &coordinates, labelField &celli, labelField &facei, labelField &faceTrii, OtherFields &... otherFields)
Filter out injected elements that are on other processes. These.
Class containing Lagrangian geometry and topology.
location
Enumeration for the locations of searched positions.
Base class for Lagrangian models.
const LagrangianMesh & mesh() const
The mesh.
static word fieldName(const AlphaRhoFieldType &alphaRhoField, const AlphaRhoFieldTypes &... alphaRhoFields)
Return the name of the field associated with a source term.
const word & name() const
The source name.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A class for handling words, derived from string.
barycentric coordinates(const polyMesh &mesh, const point &position, const label celli, const label facei, const label faceTrii, const scalar stepFraction)
Return the coordinates given the position and tet topology.