Go to the documentation of this file.
26 #ifndef MapConsistentVolFields_H
27 #define MapConsistentVolFields_H
38 template<
class Type,
class CombineOp>
56 const word& fieldName = fieldIter()->name();
58 if (selectedFields.
empty() || selectedFields.
found(fieldName))
60 Info<<
" interpolating " << fieldName <<
endl;
62 const fieldType fieldSource(*fieldIter(), meshSource);
74 fieldType fieldTarget(targetIO, meshTarget);
87 fieldType fieldTarget(targetIO, tfieldTarget);
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
A class for managing temporary objects.
Info<< "Creating field dpdt\n"<< endl;volScalarField dpdt(IOobject("dpdt", runTime.timeName(), mesh), mesh, dimensionedScalar("dpdt", p.dimensions()/dimTime, 0));Info<< "Creating field kinetic energy K\n"<< endl;volScalarField K("K", 0.5 *magSqr(U));volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);p_rgh=p - rho *gh;mesh.setFluxRequired(p_rgh.name());multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Ostream & endl(Ostream &os)
Add newline and flush stream.
A HashTable with keys but without contents.
void mapSrcToTgt(const UList< Type > &srcFld, const CombineOp &cop, List< Type > &result) const
Map field from src to tgt mesh with defined operation.
bool headerOk()
Read and check header info.
Class to calculate the cell-addressing between two overlapping meshes.
readOption readOpt() const
bool empty() const
Return true if the hash table is empty.
const polyMesh & srcRegion() const
Return const access to the source mesh.
bool found(const Key &) const
Return true if hashedEntry is found in table.
Mesh data needed to do the Finite Volume discretisation.
IOobjectList lookupClass(const word &className) const
Return the list for all IOobjects of a given class.
List of IOobjects with searching and retrieving facilities.
void MapVolFields(const IOobjectList &objects, const meshToMesh0 &meshToMesh0Interp, const meshToMesh0::order &mapOrder, const CombineOp &cop)
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
const polyMesh & tgtRegion() const
Return const access to the target mesh.
const Time & time() const
Return the top-level database.
Generic GeometricField class.