44 fieldMap.
insert(namePair.first(), namePair.second());
50 if (fieldMap.found(
fld.name()))
53 word& sName = fieldMap[
fld.name()];
57 Log <<
" updating field " << sName <<
endl;
61 Log <<
" interpolating " 62 <<
fld.name() <<
" to create " << sName <<
endl;
void interpolateFields()
Linearly interpolate volume fields to generate surface fields.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > linearInterpolate(const GeometricField< Type, fvPatchField, volMesh > &vf)
UPtrList< const Type > csorted() const
Return sorted list of objects with a class satisfying isA<Type> or isType<Type> (with Strict) ...
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()