44 fieldMap.
insert(namePair.first(), namePair.second());
52 const VolFieldType&
fld = *iter();
57 word& sName = fieldMap[
fld.name()];
61 Log <<
" updating field " << sName <<
endl;
65 Log <<
" interpolating " <<
fld.name() <<
" to create "
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Generic GeometricField class.
A HashTable similar to std::unordered_map.
bool found(const Key &key) const
Return true if hashed entry is found in table.
bool insert(const Key &key, const T &obj)
Copy insert a new entry, not overwriting existing entries.
const objectRegistry & obr_
Reference to the region objectRegistry.
bool store(word &fieldName, const tmp< ObjectType > &tfield, bool cacheable=false)
Store the field in the (sub) objectRegistry under the given name.
void interpolateFields()
Linearly interpolate volume fields to generate surface fields.
List< Tuple2< word, word > > fieldSet_
Fields to process.
HashTable< const Type * > lookupClass(const bool strict=false) const
Return all objects with a class satisfying isA<Type>
bool found(const word &name, const bool recursive=false) const
Can the regIOobject object be found (by name).
A class for handling words, derived from Foam::string.
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > linearInterpolate(const GeometricField< Type, fvPatchField, volMesh > &vf)
#define forAllConstIters(container, iter)
Iterate across all elements of the container object with const access.