44 fieldMap.
insert(namePair.first(), namePair.second());
52 const VolFieldType&
fld = *iter();
54 if (fieldMap.found(
fld.name()))
57 word& sName = fieldMap[
fld.name()];
61 Log <<
" updating field " << sName <<
endl;
65 Log <<
" interpolating " <<
fld.name() <<
" to create " void interpolateFields()
Linearly interpolate volume fields to generate surface fields.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > linearInterpolate(const GeometricField< Type, fvPatchField, volMesh > &vf)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Generic GeometricField class.
List< Tuple2< word, word > > fieldSet_
Fields to process.
bool insert(const Key &key, const T &obj)
Copy insert a new entry, not overwriting existing entries.
A class for handling words, derived from Foam::string.
bool store(word &fieldName, const tmp< ObjectType > &tfield, bool cacheable=false)
Store the field in the (sub) objectRegistry under the given name.
A HashTable similar to std::unordered_map.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
const objectRegistry & obr_
Reference to the region objectRegistry.
bool found(const word &name, bool recursive=false) const
Same as contains()
HashTable< const Type * > lookupClass(const bool strict=false) const
Return all objects with a class satisfying isA<Type>
forAllConstIters(mixture.phases(), phase)