|
|
|
hexRef8 Class ReferenceRefinement of (split) hexes using polyTopoChange. More...
Collaboration diagram for hexRef8:
![]()
Detailed DescriptionRefinement of (split) hexes using polyTopoChange.Definition at line 58 of file hexRef8.H. Constructor & Destructor Documentation
Construct from mesh and un/refinement data.
Definition at line 1829 of file hexRef8.C. References hexRef8::checkMesh().
Here is the call graph for this function:
![]() Construct from mesh and refinement data.
Definition at line 1926 of file hexRef8.C. References hexRef8::checkMesh().
Here is the call graph for this function:
![]()
Member Function Documentation
Runtime type information.
Given valid mesh and current cell level and proposed. cells to refine calculate any clashes (due to 2:1) and return ok list of cells to refine. Either adds cells to refine to set (maxSet = true) or removes cells to refine (maxSet = false) Definition at line 2011 of file hexRef8.C. References hexRef8::checkMesh().
Here is the call graph for this function:
![]()
Like consistentRefinement but slower:.
Definition at line 2086 of file hexRef8.C. References Foam::abort(), polyMesh::boundaryMesh(), primitiveMesh::cells(), refinementData::count(), Foam::endl(), Foam::exit(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), Foam::FatalError, FatalErrorIn, Foam::findIndices(), forAll, forAllConstIter, polyMesh::globalData(), primitiveMesh::isInternalFace(), refinementData::isRefined(), FaceCellWave< Type >::iterate(), Foam::mag(), Foam::max(), IOobject::name(), primitiveMesh::nCells(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), Foam::nl, primitiveMesh::nPoints(), globalMeshData::nTotalFaces(), primitiveMesh::pointCells(), Foam::Pout, Foam::reduce(), refinementData::refinementCount(), FaceCellWave< Type >::setFaceInfo(), syncTools::swapBoundaryFaceList(), syncTools::syncPointList(), refinementData::updateFace(), and polyBoundaryMesh::whichPatch().
Here is the call graph for this function:
![]()
Insert refinement. All selected cells will be split into 8. Returns per element in cells the 8 cells they were split into. Guarantees that the 0th element is the original cell label. Mapping: -split cells: 7 new ones get added from original -split faces: original gets modified; 3 new ones get added from original -added internal faces: added from original cell face(if that was internal) or created out-of-nothing (so will not get mapped!). Note: could make this inflate from point but that will allocate interpolation. -points added to split edge: added from edge start() -midpoints added: added from cellPoints[0].
Debug: Check coupled mesh for correctness.
Definition at line 4367 of file hexRef8.C. References refinementHistory::distribute(). Referenced by hexRef8::consistentRefinement(), and hexRef8::hexRef8().
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() Debug: Check 2:1 consistency across faces. maxPointDiff==-1 : only check 2:1 across faces maxPointDiff!=-1 : check point-connected cells. Gives problems after first splitting off inside mesher. Hanging points { Any patches with points having only two edges. boolList isHangingPoint(mesh_.nPoints(), false); const polyBoundaryMesh& patches = mesh_.boundaryMesh(); forAll(patches, patchI) { const polyPatch& pp = patches[patchI]; const labelList& meshPoints = pp.meshPoints(); forAll(meshPoints, i) { label pointI = meshPoints[i]; const labelList& pEdges = mesh_.pointEdges()[pointI]; if (pEdges.size() == 2) { isHangingPoint[pointI] = true; } } } syncTools::syncPointList ( mesh_, isHangingPoint, andEqOp<bool>(), // only if all decide it is hanging point true, // null false // no separation ); OFstream str(mesh_.time().path()/"hangingPoints.obj"); label nHanging = 0; forAll(isHangingPoint, pointI) { if (isHangingPoint[pointI]) { nHanging++; Pout<< "Hanging boundary point " << pointI << " at " << mesh_.points()[pointI] << endl; meshTools::writeOBJ(str, mesh_.points()[pointI]); } } if (returnReduce(nHanging, sumOp<label>()) > 0) { FatalErrorIn ( "hexRef8::checkRefinementLevels(const label)" ) << "Detected a point used by two edges only (hanging point)" << nl << "This is not allowed" << abort(FatalError); } } Definition at line 4577 of file hexRef8.C. References Foam::endl(), and Foam::Pout. Referenced by hexRef8::getSplitPoints().
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]()
Return the points at the centre of top-level split cells. that can be unsplit. Definition at line 4850 of file hexRef8.C. References Foam::abort(), refinementHistory::active(), primitiveMesh::cellPoints(), hexRef8::checkRefinementLevels(), Foam::endl(), polyMesh::faces(), Foam::FatalError, FatalErrorIn, forAll, primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), primitiveMesh::nPoints(), refinementHistory::parentIndex(), primitiveMesh::pointCells(), Foam::Pout, and refinementHistory::visibleCells().
Here is the call graph for this function:
![]()
Given proposed. splitPoints to unrefine according to calculate any clashes (due to 2:1) and return ok list of points to unrefine. Either adds points to refine to set (maxSet = true) or removes points to refine (maxSet = false) Definition at line 5054 of file hexRef8.C. References Foam::abort(), Foam::endl(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), Foam::FatalError, FatalErrorIn, forAll, primitiveMesh::nCells(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), primitiveMesh::nPoints(), primitiveMesh::pointCells(), Foam::Pout, Foam::reduce(), and syncTools::swapBoundaryFaceList().
Here is the call graph for this function:
![]()
The documentation for this class was generated from the following files: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||