Go to the documentation of this file.
48 #ifndef PatchFunction1Types_MappedFile_H
49 #define PatchFunction1Types_MappedFile_H
59 namespace PatchFunction1Types
69 public PatchFunction1<Type>
74 const bool dictConstructed_;
92 mutable autoPtr<pointToPointPlanarInterpolation> mapperPtr_;
98 mutable label startSampleTime_;
104 mutable Type startAverage_;
107 mutable label endSampleTime_;
113 mutable Type endAverage_;
121 void checkTable(
const scalar t)
const;
141 const word& redirectType,
153 const word& fieldTableName,
200 return sampleTimes_.size() == 1;
virtual void autoMap(const FieldMapper &mapper)
Map (and resize as needed) from self given a mapping object.
virtual ~MappedFile()=default
Destructor.
A class for handling words, derived from Foam::string.
virtual tmp< PatchFunction1< Type > > clone(const polyPatch &pp) const
Construct and return a clone setting patch.
A class for managing temporary objects.
virtual void writeData(Ostream &os) const
Write in dictionary format.
TypeName("mappedFile")
Runtime type information.
Abstract base class to hold the Field mapping addressing and weights.
List< instant > instantList
List of instants.
const polyPatch const word const word & entryName
Generic templated field type.
A patch is a list of labels that address the faces in the global face list.
virtual bool constant() const
Is value constant (i.e. independent of x)
virtual bool uniform() const =0
Is value uniform (i.e. independent of coordinate)
virtual tmp< Field< Type > > integrate(const scalar x1, const scalar x2) const
Integrate between two values.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
void operator=(const MappedFile< Type > &)=delete
No copy assignment.
Patch value mapping from file.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual bool uniform() const
Is value uniform (i.e. independent of coordinate)
const polyPatch const word const word const dictionary & dict
virtual void rmap(const PatchFunction1< Type > &pf1, const labelList &addr)
Reverse map the given PatchFunction1 onto this PatchFunction1.
const polyPatch const word const word const dictionary const bool faceValues
MappedFile(const polyPatch &pp, const word &redirectType, const word &entryName, const dictionary &dict, const bool faceValues=true)
Construct from entry name and dictionary.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual tmp< PatchFunction1< Type > > clone() const
Construct and return a clone.
virtual tmp< Field< Type > > value(const scalar) const
Return MappedFile value.