40 const polyPatch& newPatch,
41 const label unmappedValue
44 labelList newToOld(newPatch.size(), unmappedValue);
46 label newStart = newPatch.start();
47 label newSize = newPatch.size();
49 for (
label i = 0; i < oldSize; i++)
51 label newFaceI = oldToNew[oldStart+i];
53 if (newFaceI >= newStart && newFaceI < newStart+newSize)
55 newToOld[newFaceI-newStart] = i;
70 const bool validBoundary
99 fvMeshAdder::MapVolFields<scalar>(mapPtr, mesh0, mesh1);
100 fvMeshAdder::MapVolFields<vector>(mapPtr, mesh0, mesh1);
101 fvMeshAdder::MapVolFields<sphericalTensor>(mapPtr, mesh0, mesh1);
102 fvMeshAdder::MapVolFields<symmTensor>(mapPtr, mesh0, mesh1);
103 fvMeshAdder::MapVolFields<tensor>(mapPtr, mesh0, mesh1);
105 fvMeshAdder::MapSurfaceFields<scalar>(mapPtr, mesh0, mesh1);
106 fvMeshAdder::MapSurfaceFields<vector>(mapPtr, mesh0, mesh1);
107 fvMeshAdder::MapSurfaceFields<sphericalTensor>(mapPtr, mesh0, mesh1);
108 fvMeshAdder::MapSurfaceFields<symmTensor>(mapPtr, mesh0, mesh1);
109 fvMeshAdder::MapSurfaceFields<tensor>(mapPtr, mesh0, mesh1);
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
static autoPtr< fvPatch > New(const polyPatch &, const fvBoundaryMesh &)
Return a pointer to a new patch created on freestore from polyPatch.
Mesh data needed to do the Finite Volume discretisation.
label size() const
Return the number of elements in the PtrList.
bool set(const label) const
Is element set.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Container for information needed to couple to meshes. When constructed from two meshes and a geometri...
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 polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
List< label > labelList
A List of labels.
void clearOut()
Clear all geometry and addressing.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
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.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.