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
104 fvMeshAdder::MapVolFields<scalar>(mapPtr, mesh0, mesh1);
105 fvMeshAdder::MapVolFields<vector>(mapPtr, mesh0, mesh1);
106 fvMeshAdder::MapVolFields<sphericalTensor>(mapPtr, mesh0, mesh1);
107 fvMeshAdder::MapVolFields<symmTensor>(mapPtr, mesh0, mesh1);
108 fvMeshAdder::MapVolFields<tensor>(mapPtr, mesh0, mesh1);
110 fvMeshAdder::MapSurfaceFields<scalar>(mapPtr, mesh0, mesh1);
111 fvMeshAdder::MapSurfaceFields<vector>(mapPtr, mesh0, mesh1);
112 fvMeshAdder::MapSurfaceFields<sphericalTensor>(mapPtr, mesh0, mesh1);
113 fvMeshAdder::MapSurfaceFields<symmTensor>(mapPtr, mesh0, mesh1);
114 fvMeshAdder::MapSurfaceFields<tensor>(mapPtr, mesh0, mesh1);
116 fvMeshAdder::MapDimFields<scalar>(mapPtr, mesh0, mesh1);
117 fvMeshAdder::MapDimFields<vector>(mapPtr, mesh0, mesh1);
118 fvMeshAdder::MapDimFields<sphericalTensor>(mapPtr, mesh0, mesh1);
119 fvMeshAdder::MapDimFields<symmTensor>(mapPtr, mesh0, mesh1);
120 fvMeshAdder::MapDimFields<tensor>(mapPtr, mesh0, mesh1);
void clearOut()
Clear all geometry and addressing.
#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.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Container for information needed to couple to meshes. When constructed from two meshes and a geometri...
bool set(const label) const
Is element set.
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)
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.
label size() const
Return the number of elements in the UPtrList.