35 #ifndef Foam_FieldMapper_H 36 #define Foam_FieldMapper_H 67 virtual label
size()
const = 0;
70 virtual bool direct()
const = 0;
86 <<
"attempt to access null direct addressing" 96 <<
"attempt to access null distributeMap" 99 return NullObjectRef<mapDistributeBase>();
106 <<
"attempt to access null interpolation addressing" 116 <<
"attempt to access null interpolation weights" error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual ~FieldMapper()=default
Destructor.
FieldMapper()=default
Default construct.
virtual const labelListList & addressing() const
Return the interpolation addressing.
virtual bool direct() const =0
Is it a direct (non-interpolating) mapper?
virtual const scalarListList & weights() const
Return the interpolation weights.
static const List< labelList > & null()
Return a null List.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
virtual const labelUList & directAddressing() const
Return the direct addressing values.
virtual label size() const =0
The size of the mapper.
Abstract base class to hold the Field mapping addressing and weights.
Generic templated field type.
errorManip< error > abort(error &err)
virtual bool hasUnmapped() const =0
Any unmapped values?
virtual const mapDistributeBase & distributeMap() const
Return the distribution map.
Class containing processor-to-processor mapping information.
virtual bool distributed() const
Does the mapper have remote contributions?
static const UList< label > & null()
Return a UList reference to a nullObject.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
tmp< Field< Type > > operator()(const Field< Type > &fld) const
Perform mapping on the given field.
A class for managing temporary objects.