26 #ifndef MapVolFields_H 27 #define MapVolFields_H 58 tgtField.type() == tgtField.
patch().
patch().type()
82 tgtField.type() == tgtField.
patch().
patch().type()
93 fld.
mesh().globalData().patchSchedule();
95 forAll(patchSchedule, patchEvali)
102 tgtField.type() == tgtField.
patch().
patch().type()
106 if (patchSchedule[patchEvali].init)
120 template<
class Type,
class CombineOp>
138 const word& fieldName = fieldIter()->name();
140 if (selectedFields.
empty() || selectedFields.
found(fieldName))
142 const fieldType fieldSource(*fieldIter(), meshSource);
152 if (targetIO.typeHeaderOk<fieldType>(
true))
154 Info<<
" interpolating onto existing field " 155 << fieldName <<
endl;
156 fieldType fieldTarget(targetIO, meshTarget);
166 Info<<
" creating new field " 167 << fieldName <<
endl;
172 tfieldTarget(interp.
mapSrcToTgt(fieldSource, cop));
174 fieldType fieldTarget(targetIO, tfieldTarget);
A HashTable with keys but without contents.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
List of IOobjects with searching and retrieving facilities.
const polyMesh & srcRegion() const
Return const access to the source mesh.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
bool empty() const
Return true if the hash table is empty.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void initEvaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Initialise the evaluation of the patch field.
static label nRequests()
Get number of outstanding requests.
Generic GeometricField class.
Class to calculate the cell-addressing between two overlapping meshes.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
Info<< "Calculating turbulent flame speed field St\"<< endl;volScalarField St(IOobject("St", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), flameWrinkling->Xi() *Su);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
const Time & time() const
Return the top-level database.
void evaluateConstraintTypes(GeometricField< Type, fvPatchField, volMesh > &fld)
static bool constraintType(const word &pt)
Return true if the given type is a constraint type.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< ' ';}gmvFile<< nl;forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
bool found(const Key &) const
Return true if hashedEntry is found in table.
A class for handling words, derived from string.
const polyPatch & patch() const
Return the polyPatch.
const fvPatch & patch() const
Return patch.
const Mesh & mesh() const
Return mesh.
static void waitRequests(const label start=0)
Wait until all requests (from start onwards) have finished.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets Updated to false.
IOobjectList lookupClass(const word &className) const
Return the list for all IOobjects of a given class.
static commsTypes defaultCommsType
Default commsType.
static bool & parRun()
Is this a parallel run?
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
Mesh data needed to do the Finite Volume discretisation.
void MapVolFields(const IOobjectList &objects, const meshToMesh0 &meshToMesh0Interp, const meshToMesh0::order &mapOrder, const CombineOp &cop)
A class for managing temporary objects.
void mapSrcToTgt(const UList< Type > &srcFld, const CombineOp &cop, List< Type > &result) const
Map field from src to tgt mesh with defined operation.
const polyMesh & tgtRegion() const
Return const access to the target mesh.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...