79#ifndef Foam_PatchFunction1Types_MappedFile_H
80#define Foam_PatchFunction1Types_MappedFile_H
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,
197 void operator=(
const MappedFile<Type>&) =
delete;
206 const word& redirectType,
218 const word& fieldTableName,
225 const MappedFile<Type>&
rhs,
230 explicit MappedFile(
const MappedFile<Type>&
rhs);
254 return sampleTimes_.size() == 1;
258 virtual inline bool uniform()
const
267 virtual tmp<Field<Type>>
value(
const scalar)
const;
280 virtual void autoMap(
const FieldMapper& mapper);
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
Abstract base class to hold the Field mapping addressing and weights.
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An ordered pair of two objects of type <T> with first() and second() elements.
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
Return a clone, setting the patch.
virtual bool constant() const
Value is independent of x if there is only a single sample time.
virtual tmp< PatchFunction1< Type > > clone() const
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
static tmp< PatchFunction1< Type > > Clone(const Derived &fun)
Clone a PatchFunction1.
const polyPatch const word const word const dictionary const bool faceValues
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A class for handling file names.
const polyPatch & patch() const noexcept
Reference to the patch.
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)
Pair< label > labelPair
A pair of labels.
List< label > labelList
A List of labels.
List< instant > instantList
List of instants.
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.