46 const polyPatch& newPatch,
47 const label unmappedValue
50 labelList newToOld(newPatch.size(), unmappedValue);
52 label newStart = newPatch.start();
53 label newSize = newPatch.size();
55 for (
label i = 0; i < oldSize; i++)
57 label newFacei = oldToNew[oldStart+i];
59 if (newFacei >= newStart && newFacei < newStart+newSize)
61 newToOld[newFacei-newStart] = i;
75 const bool validBoundary
80 const bool havePointMesh =
116 MapVolFields<scalar>(mapPtr, mesh0, mesh1);
117 MapVolFields<vector>(mapPtr, mesh0, mesh1);
118 MapVolFields<sphericalTensor>(mapPtr, mesh0, mesh1);
119 MapVolFields<symmTensor>(mapPtr, mesh0, mesh1);
120 MapVolFields<tensor>(mapPtr, mesh0, mesh1);
122 MapSurfaceFields<scalar>(mapPtr, mesh0, mesh1);
123 MapSurfaceFields<vector>(mapPtr, mesh0, mesh1);
124 MapSurfaceFields<sphericalTensor>(mapPtr, mesh0, mesh1);
125 MapSurfaceFields<symmTensor>(mapPtr, mesh0, mesh1);
126 MapSurfaceFields<tensor>(mapPtr, mesh0, mesh1);
133 MapPointFields<scalar>(mapPtr, pointMesh0, oldMeshPoints0, mesh1);
134 MapPointFields<vector>(mapPtr, pointMesh0, oldMeshPoints0, mesh1);
135 MapPointFields<sphericalTensor>
142 MapPointFields<symmTensor>(mapPtr, pointMesh0, oldMeshPoints0, mesh1);
143 MapPointFields<tensor>(mapPtr, pointMesh0, oldMeshPoints0, mesh1);
146 MapDimFields<scalar>(mapPtr, mesh0, mesh1);
147 MapDimFields<vector>(mapPtr, mesh0, mesh1);
148 MapDimFields<sphericalTensor>(mapPtr, mesh0, mesh1);
149 MapDimFields<symmTensor>(mapPtr, mesh0, mesh1);
150 MapDimFields<tensor>(mapPtr, mesh0, mesh1);
const fvPatchList & patches
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#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.
bool set(const label) const
Is element set.
bool foundObject(const word &name) const
Is the named Type found?
Container for information needed to couple to meshes. When constructed from two meshes and a list of ...
Mesh representing a set of points created from polyMesh.
List< label > labelList
A List of labels.
static autoPtr< mapAddedPolyMesh > add(fvMesh &mesh0, const fvMesh &mesh1, const faceCoupleInfo &coupleInfo, const bool validBoundary=true)
Inplace add mesh to fvMesh. Maps all stored fields. Returns map.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
defineTypeNameAndDebug(combustionModel, 0)
static pointMesh & New(polyMesh &mesh)
label size() const
Return the number of elements in the UPtrList.
void setSize(const label)
Reset size of List.
Mesh data needed to do the Finite Volume discretisation.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static autoPtr< fvPatch > New(const polyPatch &, const fvBoundaryMesh &)
Return a pointer to a new patch created on freestore from polyPatch.
static autoPtr< polyMesh > add(const IOobject &io, const polyMesh &mesh0, const polyMesh &mesh1, const faceCoupleInfo &coupleInfo, autoPtr< mapAddedPolyMesh > &mapPtr)
Add two polyMeshes. Returns new polyMesh and map construct.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.