|
|
|
polyMeshAdder Class ReferenceAdds two meshes without using any polyMesh morphing. More...
Inheritance diagram for polyMeshAdder:
![]()
Detailed DescriptionAdds two meshes without using any polyMesh morphing.Gets faces to couple as faceCoupleInfo which is list of faces on both meshes. Returns map from last mesh addition.
Definition at line 55 of file polyMeshAdder.H. Member Function Documentation
Add two polyMeshes. Returns new polyMesh and map construct.
Definition at line 1254 of file polyMeshAdder.C. References polyMesh::boundaryMesh(), faceCoupleInfo::cutFaces(), Foam::identity(), primitiveMesh::nCells(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), primitiveMesh::nPoints(), autoPtr< T >::reset(), and Foam::xferMove().
Here is the call graph for this function:
![]()
Inplace add mesh to polyMesh. Returns map construct.
Definition at line 1473 of file polyMeshAdder.C.
Find topologically&geometrically shared points.
Old: geometric merging. Causes problems for two close shared points. labelList sharedToMerged; pointField mergedPoints; bool hasMerged = Foam::mergePoints ( pointField ( mesh.points(), sharedPointLabels ), mergeDist, false, sharedToMerged, mergedPoints ); Find out which sets of points get merged and create a map from mesh point to unique point. Map<label> pointToMaster(10*sharedToMerged.size()); if (hasMerged) { labelListList mergeSets ( invertOneToMany ( sharedToMerged.size(), sharedToMerged ) ); label nMergeSets = 0; forAll(mergeSets, setI) { const labelList& mergeSet = mergeSets[setI]; if (mergeSet.size() > 1) { Take as master the shared point with the lowest mesh point label. (rather arbitrarily - could use max or any other one of the points) nMergeSets++; label masterI = labelMax; forAll(mergeSet, i) { label sharedI = mergeSet[i]; masterI = min(masterI, sharedPointLabels[sharedI]); } forAll(mergeSet, i) { label sharedI = mergeSet[i]; pointToMaster.insert(sharedPointLabels[sharedI], masterI); } } } if (debug) { Pout<< "polyMeshAdder : merging:" << pointToMaster.size() << " into " << nMergeSets << " sets." << endl; } } Definition at line 1777 of file polyMeshAdder.C.
Helper: Merge points.
Definition at line 1995 of file polyMeshAdder.C.
The documentation for this class was generated from the following files:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||