79 #ifndef Foam_PatchFunction1Types_MappedFile_H 80 #define Foam_PatchFunction1Types_MappedFile_H 94 namespace PatchFunction1Types
104 public PatchFunction1<Type>
109 const bool dictConstructed_;
118 word fieldTableName_;
127 scalar filterRadius_;
133 mutable autoPtr<FilterField> filterFieldPtr_;
139 fileName readerFile_;
142 mutable autoPtr<surfaceReader> readerPtr_;
145 mutable autoPtr<pointToPointPlanarInterpolation> mapperPtr_;
154 mutable Pair<Type> sampleAverage_;
157 mutable Pair<Field<Type>> sampleValues_;
160 autoPtr<Function1<Type>> offset_;
166 void checkTable(
const scalar t)
const;
170 void updateSampledValues
172 const label sampleIndex,
180 const bool dictConstructed,
184 const word& fieldTableName,
206 const word& redirectType,
218 const word& fieldTableName,
260 return sampleTimes_.
size() == 1;
264 virtual inline bool uniform()
const 273 virtual tmp<Field<Type>>
value(
const scalar)
const;
286 virtual void autoMap(
const FieldMapper& mapper);
291 const PatchFunction1<Type>& pf1,
Patch value mapping from a set of values stored in a file and a set of unstructured points using the ...
virtual tmp< PatchFunction1< Type > > clone() const
Construct and return a clone.
List< instant > instantList
List of instants.
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual bool uniform() const =0
Is value uniform (i.e. independent of coordinate)
virtual ~MappedFile()=default
Destructor.
virtual tmp< Field< Type > > value(const scalar) const
Return MappedFile value.
const polyPatch const word const word const dictionary & dict
virtual tmp< Field< Type > > integrate(const scalar x1, const scalar x2) const
Integrate between two values.
Generic templated field type.
A class for handling words, derived from Foam::string.
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.
const polyPatch const word const word & entryName
bool faceValues() const noexcept
Generate face or point values on patch?
Pair< label > labelPair
A pair of labels.
OBJstream os(runTime.globalPath()/outputName)
virtual bool constant() const
Value is independent of x if there is only a single sample time.
virtual void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
virtual void autoMap(const FieldMapper &mapper)
Map (and resize as needed) from self given a mapping object.
List< label > labelList
A List of labels.
A class for managing temporary objects.
A patch is a list of labels that address the faces in the global face list.
TypeName("mappedFile")
Runtime type information.
virtual bool uniform() const
Is value uniform (i.e. independent of coordinate)
virtual void writeData(Ostream &os) const
Write in dictionary format.