63#ifndef PatchFunction1Types_MappedFile_H
64#define PatchFunction1Types_MappedFile_H
74namespace PatchFunction1Types
84 public PatchFunction1<Type>
89 const bool dictConstructed_;
107 mutable autoPtr<pointToPointPlanarInterpolation> mapperPtr_;
113 mutable label startSampleTime_;
116 mutable Field<Type> startSampledValues_;
119 mutable Type startAverage_;
122 mutable label endSampleTime_;
125 mutable Field<Type> endSampledValues_;
128 mutable Type endAverage_;
136 void checkTable(
const scalar t)
const;
156 const word& redirectType,
168 const word& fieldTableName,
210 return sampleTimes_.size() == 1;
214 virtual inline bool uniform()
const
223 virtual tmp<Field<Type>>
value(
const scalar)
const;
Abstract base class to hold the Field mapping addressing and weights.
Generic templated field type.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Patch value mapping from a set of values stored in a file and a set of unstructured points using the ...
virtual tmp< Field< Type > > integrate(const scalar x1, const scalar x2) const
Integrate between two values.
virtual bool uniform() const
Is value uniform (i.e. independent of coordinate)
void operator=(const MappedFile< Type > &)=delete
No copy assignment.
virtual void rmap(const PatchFunction1< Type > &pf1, const labelList &addr)
Reverse map the given PatchFunction1 onto this PatchFunction1.
virtual void autoMap(const FieldMapper &mapper)
Map (and resize as needed) from self given a mapping object.
virtual ~MappedFile()=default
Destructor.
virtual void writeData(Ostream &os) const
Write in dictionary format.
virtual tmp< PatchFunction1< Type > > clone(const polyPatch &pp) const
Construct and return a clone setting patch.
virtual bool constant() const
Value is independent of x if there is only a single sample time.
virtual tmp< PatchFunction1< Type > > clone() const
Construct and return a clone.
virtual void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
virtual tmp< Field< Type > > value(const scalar) const
Return MappedFile value.
TypeName("mappedFile")
Runtime type information.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
const polyPatch const word const word & entryName
virtual bool uniform() const =0
Is value uniform (i.e. independent of coordinate)
const polyPatch const word const word const dictionary & dict
const polyPatch const word const word const dictionary const bool faceValues
void size(const label n)
Older name for setAddressableSize.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A patch is a list of labels that address the faces in the global face list.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
List< instant > instantList
List of instants.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.