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);
#define forAll(list, i)
Loop across all elements in list.
static pointMesh & New(const word &name, const polyMesh &mesh)
Construct and return the named DemandDrivenMeshObject.
void setSize(const label)
Reset size of List.
bool set(const label) const
Is element set.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
label size() const
Return the number of elements in the UPtrList.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Container for information needed to couple to meshes. When constructed from two meshes and a list of ...
Adds two fvMeshes without using any polyMesh morphing. Uses polyMeshAdder.
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.
Mesh data needed to do the Finite Volume discretisation.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
static autoPtr< fvPatch > New(const polyPatch &, const fvBoundaryMesh &)
Return a pointer to a new patch created on freestore from polyPatch.
bool foundObject(const word &name) const
Is the named Type in registry.
Mesh representing a set of points created from polyMesh.
static autoPtr< mapAddedPolyMesh > add(polyMesh &mesh0, const polyMesh &mesh1, const faceCoupleInfo &coupleInfo, const bool validBoundary=true)
Inplace add mesh to polyMesh. Returns map construct.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
const fvPatchList & patches
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
defineTypeNameAndDebug(combustionModel, 0)