29#ifndef MapConsistentVolFields_H
30#define MapConsistentVolFields_H
44 auto& fldBf =
fld.boundaryFieldRef();
62 tgtField.type() == tgtField.
patch().
patch().type()
86 tgtField.type() == tgtField.
patch().
patch().type()
97 fld.mesh().globalData().patchSchedule();
99 for (
const auto& schedEval : patchSchedule)
101 const label patchi = schedEval.patch;
107 tgtField.type() == tgtField.
patch().
patch().type()
125template<
class Type,
class CombineOp>
142 selectedFields.
empty()
147 for (
const word& fieldName : fieldNames)
149 const fieldType fieldSource(*(objects[fieldName]), meshSource,
false);
161 Info<<
" interpolating onto existing field "
162 << fieldName <<
endl;
164 fieldType fieldTarget(targetIO, meshTarget,
false);
174 Info<<
" creating new field "
175 << fieldName <<
endl;
184 fieldType fieldTarget(targetIO, tfieldTarget);
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.
List of IOobjects with searching and retrieving facilities.
wordList sortedNames() const
The sorted names of the IOobjects.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
readOption readOpt() const noexcept
The read option.
bool typeHeaderOk(const bool checkType=true, const bool search=true, const bool verbose=true)
Read header (uses typeFilePath to find file) and check its info.
static word timeName(const scalar t, const int precision=precision_)
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
commsTypes
Types of communications.
@ nonBlocking
"nonBlocking"
static label nRequests()
Get number of outstanding requests.
static void waitRequests(const label start=0)
Wait until all requests (from start onwards) have finished.
static commsTypes defaultCommsType
Default commsType.
static bool & parRun() noexcept
Test if this a parallel run.
virtual const word & constraintType() const
Return the constraint type this pointPatch implements.
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
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.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets Updated to false.
const fvPatch & patch() const
Return patch.
const polyPatch & patch() const
Return the polyPatch.
Class to calculate the cell-addressing between two overlapping meshes.
const polyMesh & srcRegion() const
Return const access to the source mesh.
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.
A class for managing temporary objects.
A List of wordRe with additional matching capabilities.
A class for handling words, derived from Foam::string.
void MapVolFields(const IOobjectList &objects, const meshToMesh0 &meshToMesh0Interp, const meshToMesh0::order &mapOrder, const CombineOp &cop)
messageStream Info
Information stream (stdout output on master, null elsewhere)
void evaluateConstraintTypes(GeometricField< Type, fvPatchField, volMesh > &fld)
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.