61 const label nTotalEdges = bp.
nEdges();
76 forAll(oldPatchEdgeFaces, patchI)
78 labelList& curPatchEdges = patchEdges[patchI];
80 label nCurPatchEdges = 0;
97 const label oldFaceIndex = newFaceLabelsMap[edgeFaces[edgeI][0]];
99 if (oldFaceIndex > -1)
102 if (oldFaceLookup.
found(oldFaceIndex))
105 curPatchEdges[nCurPatchEdges] = edgeI;
114 curPatchEdges.
setSize(nCurPatchEdges);
120 boundary_[patchI].resetEdges(patchEdges[patchI]);
123 setPrimitiveMeshData();
132 boundary_.updateMesh();
135 boundary_.calcGeometry();
191 S0[faceI] = savedS0[
faceMap[faceI]];
207 S00.setSize(nFaces());
216 S00[faceI] = savedS00[
faceMap[faceI]];
Finite area field mapping.
bool found(const Key &key) const
Same as contains().
void setSize(label n)
Alias for resize().
void resize(const label len)
Adjust allocated size of list.
label nEdges() const
Number of edges in patch.
label nBoundaryEdges() const
Number of boundary edges == (nEdges() - nInternalEdges()).
label nInternalEdges() const
Number of internal edges.
const labelListList & edgeFaces() const
Return edge-face addressing.
static bool parRun(const bool on) noexcept
Set as parallel run on/off.
bool movePoints() const
Do what is necessary if the mesh has moved.
const labelList & newFaceLabelsMap() const
Return new face labels map.
const labelList & newFaceLabels() const
Return new face labels.
Class holds all the necessary information for mapping fields associated with faMesh.
const faAreaMapper & areaMap() const
Return surface mapper.
const labelListList & oldPatchEdgeFaces() const
Return old patch edgeFaces.
virtual void mapOldAreas(const faMeshMapper &mapper) const
Map face areas in time using given map.
const DimensionedField< scalar, areaMesh > & S00() const
Return old-old-time face areas.
label nBoundaryEdges() const noexcept
Number of boundary edges (== nEdges - nInternalEdges).
virtual void mapFields(const faMeshMapper &mapper) const
Map all fields in time using given map.
const uindirectPrimitivePatch & patch() const
Return constant reference to primitive patch.
label nInternalEdges() const noexcept
Number of internal faces.
const faGlobalMeshData & globalData() const
Return parallel info (demand-driven).
const DimensionedField< scalar, areaMesh > & S0() const
Return old-time face areas.
label nFaces() const noexcept
Number of patch faces.
virtual void updateMesh(const mapPolyMesh &)
Update after topo change.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
#define DebugInFunction
Report an information message using Foam::Info.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void MapGeometricFields(const MeshMapper &mapper)
Generic Geometric field mapper.
PrimitivePatch< UIndirectList< face >, const pointField & > uindirectPrimitivePatch
A PrimitivePatch with UIndirectList for the faces, const reference for the point field.
#define forAll(list, i)
Loop across all elements in list.