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]];
207 S00.setSize(nFaces());
216 S00[faceI] = savedS00[
faceMap[faceI]];
virtual void updateMesh(const mapPolyMesh &)
Update after topo change.
void resize(const label len)
Adjust allocated size of list.
bool found(const Key &key) const
Same as contains()
void calcGeometry()
Calculate the geometry for the patches.
const labelList & newFaceLabels() const
Return new face labels.
virtual void mapFields(const faMeshMapper &mapper) const
Map all fields in time using given map.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void updateMesh()
Correct faBoundaryMesh after topology update.
static bool & parRun() noexcept
Test if this a parallel run.
label nInternalEdges() const
Number of internal edges.
const labelList & newFaceLabelsMap() const
Return new face labels map.
const faGlobalMeshData & globalData() const
Return parallel info (demand-driven)
bool movePoints() const
Do what is necessary if the mesh has moved.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
#define forAll(list, i)
Loop across all elements in list.
const uindirectPrimitivePatch & patch() const
Return constant reference to primitive patch.
const faAreaMapper & areaMap() const
Return surface mapper.
A list of faces which address into the list of points.
void setSize(const label n)
Alias for resize()
const labelListList & oldPatchEdgeFaces() const
Return old patch edgeFaces.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
#define DebugInFunction
Report an information message using Foam::Info.
label size() const noexcept
The number of entries in the list.
const labelListList & edgeFaces() const
Return edge-face addressing.
label nBoundaryEdges() const
Number of boundary edges == (nEdges() - nInternalEdges())
virtual void mapOldAreas(const faMeshMapper &mapper) const
Map face areas in time using given map.
label nEdges() const
Number of edges in patch.
label nInternalEdges() const noexcept
Number of internal faces.
List< label > labelList
A List of labels.
label nBoundaryEdges() const noexcept
Number of boundary edges (== nEdges - nInternalEdges)
Finite area field mapping.
Class holds all the necessary information for mapping fields associated with faMesh.