Go to the documentation of this file.
63 #ifndef PatchFunction1Types_MappedFile_H
64 #define PatchFunction1Types_MappedFile_H
74 namespace 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;
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
Value is independent of x if there is only a single sample time.
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,...
OBJstream os(runTime.globalPath()/outputName)
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 a set of values stored in a file and a set of unstructured points using the ...
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.
void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
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.