36 #ifndef GeometricFieldSources_H
37 #define GeometricFieldSources_H
54 template<
class Type,
class GeoMesh>
57 private HashPtrTable<typename GeoMesh::template FieldSource<Type>>
67 typedef typename GeoMesh::template FieldSource<Type>
Source;
142 template<
class Type,
class GeoMesh>
154 template<
class Type,
class GeoMesh>
195 const word& fieldSourceType,
226 return internalField_;
231 template<
class Type,
class GeoMesh>
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Part of a geometric field used for setting the values associated with optional sources.
DimensionedField< Type, GeoMesh > Internal
Type of the internal field from which this GeometricField is derived.
GeometricFieldSources()
Construct null.
void readField(const Internal &field, const dictionary &dict)
Read the sources.
void writeEntry(const word &keyword, Ostream &os) const
Write sources as dictionary entry.
GeoMesh::template FieldSource< Type > Source
Type of the field source of which this field sources is composed.
HashTable< word > types() const
Return a map from the source name to the field source type.
const HashPtrTable< Source > & table() const
Access the underlying field table.
void reset(const GeometricFieldSources &)
Reset the boundary field contents to the given field.
~GeometricFieldSources()
Destructor.
const Source & operator[](const word &sourceName) const
Find and return a field source.
A HashTable specialisation for hashing pointers.
An STL-conforming hash table.
NoFieldSource(const DimensionedField< Type, GeoMesh > &iF)
Construct from internal field.
autoPtr< NoFieldSource< Type, GeoMesh > > clone(const DimensionedField< Type, GeoMesh > &iF) const
Dummy clone.
const DimensionedField< Type, GeoMesh > & internalField() const
Return the internal field reference.
static autoPtr< NoFieldSource< Type, GeoMesh > > New(const word &fieldSourceType, const DimensionedField< Type, GeoMesh > &iF)
Dummy selector.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for handling words, derived from string.
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)