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();
154 MapGeometricFields<scalar, faPatchField, faMeshMapper, areaMesh>(mapper);
155 MapGeometricFields<vector, faPatchField, faMeshMapper, areaMesh>(mapper);
156 MapGeometricFields<sphericalTensor, faPatchField, faMeshMapper, areaMesh>
158 MapGeometricFields<symmTensor, faPatchField, faMeshMapper, areaMesh>
160 MapGeometricFields<tensor, faPatchField, faMeshMapper, areaMesh>(mapper);
163 MapGeometricFields<scalar, faePatchField, faMeshMapper, edgeMesh>(mapper);
164 MapGeometricFields<vector, faePatchField, faMeshMapper, edgeMesh>(mapper);
165 MapGeometricFields<sphericalTensor, faePatchField, faMeshMapper, edgeMesh>
167 MapGeometricFields<symmTensor, faePatchField, faMeshMapper, edgeMesh>
169 MapGeometricFields<tensor, faePatchField, faMeshMapper, edgeMesh>(mapper);
191 S0[faceI] = savedS0[
faceMap[faceI]];
216 S00[faceI] = savedS00[
faceMap[faceI]];
Finite area field mapping.
bool found(const Key &key) const
Return true if hashed entry is found in table.
void setSize(const label n)
Alias for resize()
void resize(const label len)
Adjust allocated size of list.
A list of faces which address into the list of points.
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() noexcept
Test if this a parallel run.
label size() const noexcept
The number of elements in the list.
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.
void calcGeometry()
Calculate the geometry for the patches.
void updateMesh()
Correct faBoundaryMesh after topology update.
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.
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.
Maps input fields from local mesh to secondary mesh at runtime.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
void updateMesh()
Update for new mesh topology.
const labelList nFaces(UPstream::listGatherValues< label >(aMesh.nFaces()))
#define DebugInFunction
Report an information message using Foam::Info.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.