26 #ifndef MapVolFields_H 27 #define MapVolFields_H 41 typename GeometricField<Type, fvPatchField, volMesh>::
42 Boundary& fldBf = fld.boundaryFieldRef();
54 fvPatchField<Type>& tgtField = fldBf[
patchi];
58 tgtField.type() == tgtField.patch().patch().type()
78 fvPatchField<Type>& tgtField = fldBf[
patchi];
82 tgtField.type() == tgtField.patch().patch().type()
93 fld.mesh().globalData().patchSchedule();
95 forAll(patchSchedule, patchEvali)
97 label patchi = patchSchedule[patchEvali].patch;
98 fvPatchField<Type>& tgtField = fldBf[
patchi];
102 tgtField.type() == tgtField.patch().patch().type()
106 if (patchSchedule[patchEvali].init)
137 const word& fieldName = fieldIter()->name();
139 if (selectedFields.
empty() || selectedFields.
found(fieldName))
141 const fieldType fieldSource(*fieldIter(), meshSource);
151 if (targetIO.headerOk())
153 Info<<
" interpolating onto existing field " 154 << fieldName <<
endl;
155 fieldType fieldTarget(targetIO, meshTarget);
165 Info<<
" creating new field " 166 << fieldName <<
endl;
172 fieldType fieldTarget(targetIO, tfieldTarget);
void MapVolFields(const IOobjectList &objects, const meshToMesh0 &meshToMesh0Interp, const meshToMesh0::order &mapOrder)
A HashTable with keys but without contents.
#define forAll(list, i)
Loop across all elements in list.
FvWallInfoData< WallInfo, label > 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.
Templated form of IOobject providing type information for file reading and header type checking...
#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.
static label nRequests()
Get number of outstanding requests.
List< lduScheduleEntry > lduSchedule
Generic GeometricField class.
Class to calculate the cell-addressing between two overlapping meshes.
void mapSrcToTgt(const UList< Type > &srcFld, List< Type > &result) const
Map field from src to tgt mesh with defined operation.
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.
bool found(const Key &) const
Return true if hashedEntry is found in table.
static word timeName(const scalar, const int precision=curPrecision_)
Return time name of given scalar time.
A class for handling words, derived from string.
static void waitRequests(const label start=0)
Wait until all requests (from start onwards) have finished.
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?
Info<< "Reading field p_rgh\"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);pressureReference pressureReference(p, p_rgh, pimple.dict(), thermo.incompressible());mesh.schemes().setFluxRequired(p_rgh.name());hydrostaticInitialisation(p_rgh, p, rho, U, gh, ghf, pRef, thermo, pimple.dict());Info<< "Creating field dpdt\"<< endl;volScalarField dpdt(IOobject("dpdt", runTime.timeName(), mesh), mesh, dimensionedScalar(p.dimensions()/dimTime, 0));Info<< "Creating field kinetic energy K\"<< endl;volScalarField K("K", 0.5 *magSqr(U));dimensionedScalar initialMass=fvc::domainIntegrate(rho);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Mesh data needed to do the Finite Volume discretisation.
A class for managing temporary objects.
const polyMesh & tgtRegion() const
Return const access to the target mesh.