Loading...
Searching...
No Matches
polyTopoChange Class Reference

Direct mesh changes based on v1.3 polyTopoChange syntax. More...

#include <polyTopoChange.H>

Public Member Functions

 ClassName ("polyTopoChange")
 Runtime type information.
 polyTopoChange (const label nPatches, const bool strict=true)
 Construct without mesh. Either specify nPatches or use setNumPatches before trying to make a mesh (makeMesh, changeMesh).
 polyTopoChange (const polyMesh &mesh, const bool strict=true)
 Construct from mesh. Adds all points/face/cells from mesh.
const DynamicList< point > & points () const
 Points. Shrunk after constructing mesh (or calling of compact()).
const DynamicList< face > & faces () const
const DynamicList< label > & region () const
const DynamicList< label > & faceOwner () const
const DynamicList< label > & faceNeighbour () const
bool pointRemoved (const label pointi) const
 Is point removed? Considered removed if point is GREAT.
bool faceRemoved (const label facei) const
 Is face removed? Considered removed if face is empty.
bool cellRemoved (const label celli) const
 Is cell removed? Considered removed if the cellMap is -2.
void clear ()
 Clear all storage.
void addMesh (const polyMesh &mesh, const labelUList &patchMap, const labelUList &pointZoneMap, const labelUList &faceZoneMap, const labelUList &cellZoneMap)
 Add all points/faces/cells of mesh. Additional offset for patch or zone ids.
void setCapacity (const label nPoints, const label nFaces, const label nCells)
 Explicitly pre-size the dynamic storage for expected mesh size for if construct-without-mesh.
void shrink ()
 Shrink storage (does not remove any elements; just compacts dynamic lists.
void movePoints (const pointField &newPoints)
 Move all points. Incompatible with other topology changes.
label setAction (const topoAction &action)
 For compatibility with polyTopoChange: set topological action.
label addPoint (const point &pt, const label masterPointID, const label zoneID, const bool inCell)
 Add point. Return new point label.
label addPoint (const point &pt, const label masterPointID, const labelUList &zoneIDs, const bool inCell)
 Add point. Return new point label.
void modifyPoint (const label pointi, const point &pt, const label zoneID, const bool inCell, const bool multiZone=false)
 Modify coordinate.
void modifyPoint (const label pointi, const point &pt, const labelUList &zoneIDs, const bool inCell)
 Modify coordinate.
void removePoint (const label pointi, const label mergePointi)
 Remove/merge point.
label pointZones (const label pointi, DynamicList< label > &zones) const
 Get current cellZone(s). Return number of zones.
label addFace (const face &f, const label own, const label nei, const label masterPointID, const label masterEdgeID, const label masterFaceID, const bool flipFaceFlux, const label patchID, const label zoneID, const bool zoneFlip)
 Add face to cells. Return new face label.
label addFace (const face &f, const label own, const label nei, const label masterPointID, const label masterEdgeID, const label masterFaceID, const bool flipFaceFlux, const label patchID, const labelUList &zoneIDs, const UList< bool > &zoneFlips)
 Add face to cells. Return new face label.
void modifyFace (const face &f, const label facei, const label own, const label nei, const bool flipFaceFlux, const label patchID, const label zoneID, const bool zoneFlip, const bool multiZone=false)
 Modify vertices or cell of face.
void modifyFace (const face &f, const label facei, const label own, const label nei, const bool flipFaceFlux, const label patchID, const labelUList &zoneIDs, const UList< bool > &zoneFlips)
 Modify vertices or cell of face.
void removeFace (const label facei, const label mergeFacei)
 Remove/merge face.
label faceZones (const label facei, DynamicList< label > &zones, DynamicList< bool > &flips) const
 Get current faceZone(s). Return number of zones.
label addCell (const label masterPointID, const label masterEdgeID, const label masterFaceID, const label masterCellID, const label zoneID)
 Add cell. Return new cell label.
label addCell (const label masterPointID, const label masterEdgeID, const label masterFaceID, const label masterCellID, const labelUList &zoneIDs)
 Add zoned cell (zones cannot be -1). Return new cell label.
void modifyCell (const label celli, const label zoneID, const bool multiZone=false)
 Modify zone of cell. Optionally add to zone.
void modifyCell (const label celli, const labelUList &zoneIDs)
 Set zones of cell.
void removeCell (const label celli, const label mergeCelli)
 Remove/merge cell.
label cellZones (const label celli, DynamicList< label > &zones) const
 Get current cellZone(s). Return number of zones.
void setNumPatches (const label nPatches)
 Explicitly set the number of patches if construct-without-mesh used.
autoPtr< mapPolyMeshchangeMesh (polyMesh &mesh, const labelUList &patchMap, const bool inflate, const bool syncParallel=true, const bool orderCells=false, const bool orderPoints=false)
 Inplace changes mesh without change of patches.
autoPtr< mapPolyMeshchangeMesh (polyMesh &mesh, const bool inflate, const bool syncParallel=true, const bool orderCells=false, const bool orderPoints=false)
 Without patch mapping.
template<class Type>
autoPtr< mapPolyMeshmakeMesh (autoPtr< Type > &newMesh, const IOobject &io, const polyMesh &mesh, const labelUList &patchMap, const bool syncParallel=true, const bool orderCells=false, const bool orderPoints=false)
 Create new mesh with old mesh patches. Additional dictionaries.
template<class Type>
autoPtr< mapPolyMeshmakeMesh (autoPtr< Type > &newMesh, const IOobject &io, const polyMesh &mesh, const bool syncParallel=true, const bool orderCells=false, const bool orderPoints=false)
 Create new mesh with old mesh patches. Additional dictionaries.
template<class Type>
Foam::autoPtr< Foam::mapPolyMeshmakeMesh (autoPtr< Type > &newMeshPtr, const IOobject &io, const polyMesh &mesh, const labelUList &patchMap, const bool syncParallel, const bool orderCells, const bool orderPoints)
template<class Type>
Foam::autoPtr< Foam::mapPolyMeshmakeMesh (autoPtr< Type > &newMeshPtr, const IOobject &io, const polyMesh &mesh, const bool syncParallel, const bool orderCells, const bool orderPoints)

Detailed Description

Direct mesh changes based on v1.3 polyTopoChange syntax.

Instead of recording changes and executing them all in one go (as did v1.3 polyTopoChange) this class actually holds the current points/faces/cells and does the change immediately. It can be asked to compress out all unused points/faces/cells and renumber everything to be consistent.

Note:

  • polyTopoChange can be copied.
  • adding a face using non-existing cells causes all intermediate cells to be added. So always first add cells/points and then faces. (or set strict checking)
  • strict checking:
    • any added/modified face can only use already existing vertices
    • any added face can only use already existing cells
    • no item can be removed more than once.
  • removed cell: cell set to 0 faces.
  • removed face: face set to 0 vertices.
  • removed point: coordinate set to vector::max (VGREAT,VGREAT,VGREAT). Note that this might give problems if this value is used already. To see if point is equal to above value we don't use == (which might give problems with roundoff error) but instead compare the individual component with >.
  • coupled patches: the reorderCoupledFaces routine (borrowed from the couplePatches utility) reorders coupled patch faces and uses the cyclicPolyPatch,processorPolyPatch functionality.
  • zones are assumed to be non-overlapping by default. If desired to be overlapping either set the multiZone to true when calling modifyCell|Face|Point or use the variants of addCell|Face|Point and modifyCell|Face|Point that take a list of zones.
  • if overlapping zones:
    • 'main' zone is the lowest numbered zone. -1 means no zones.
    • 'additional' zones are stored in incremental ordering (and cannot contain -1)
Source files

Definition at line 103 of file polyTopoChange.H.

Constructor & Destructor Documentation

◆ polyTopoChange() [1/2]

polyTopoChange ( const label nPatches,
const bool strict = true )

Construct without mesh. Either specify nPatches or use setNumPatches before trying to make a mesh (makeMesh, changeMesh).

Definition at line 2278 of file polyTopoChange.C.

References nPatches.

◆ polyTopoChange() [2/2]

polyTopoChange ( const polyMesh & mesh,
const bool strict = true )

Construct from mesh. Adds all points/face/cells from mesh.

Definition at line 2309 of file polyTopoChange.C.

References addMesh(), Foam::identity(), and mesh.

Here is the call graph for this function:

Member Function Documentation

◆ ClassName()

ClassName ( "polyTopoChange" )

Runtime type information.

References mesh, and nPatches.

◆ points()

const DynamicList< point > & points ( ) const
inline

Points. Shrunk after constructing mesh (or calling of compact()).

Definition at line 566 of file polyTopoChange.H.

Referenced by addMesh(), addPatchCellLayer::setRefinement(), duplicatePoints::setRefinement(), cyclicAMIPolyPatch::setTopology(), and meshRefinement::splitFacesUndo().

Here is the caller graph for this function:

◆ faces()

const DynamicList< face > & faces ( ) const
inline

Definition at line 571 of file polyTopoChange.H.

Referenced by addMesh(), and meshRefinement::splitFacesUndo().

Here is the caller graph for this function:

◆ region()

const DynamicList< label > & region ( ) const
inline

Definition at line 576 of file polyTopoChange.H.

◆ faceOwner()

const DynamicList< label > & faceOwner ( ) const
inline

Definition at line 581 of file polyTopoChange.H.

Referenced by addMesh().

Here is the caller graph for this function:

◆ faceNeighbour()

const DynamicList< label > & faceNeighbour ( ) const
inline

Definition at line 586 of file polyTopoChange.H.

Referenced by addMesh().

Here is the caller graph for this function:

◆ pointRemoved()

bool pointRemoved ( const label pointi) const
inline

Is point removed? Considered removed if point is GREAT.

Definition at line 25 of file polyTopoChangeI.H.

References VectorSpace< Form, Cmpt, Ncmpts >::max, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Referenced by modifyPoint(), modifyPoint(), and removePoint().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ faceRemoved()

bool faceRemoved ( const label facei) const
inline

Is face removed? Considered removed if face is empty.

Definition at line 36 of file polyTopoChangeI.H.

Referenced by removeFace().

Here is the caller graph for this function:

◆ cellRemoved()

bool cellRemoved ( const label celli) const
inline

Is cell removed? Considered removed if the cellMap is -2.

Definition at line 42 of file polyTopoChangeI.H.

◆ clear()

void clear ( )

Clear all storage.

Definition at line 2354 of file polyTopoChange.C.

◆ addMesh()

void addMesh ( const polyMesh & mesh,
const labelUList & patchMap,
const labelUList & pointZoneMap,
const labelUList & faceZoneMap,
const labelUList & cellZoneMap )

Add all points/faces/cells of mesh. Additional offset for patch or zone ids.

Definition at line 2387 of file polyTopoChange.C.

References Foam::abort(), addCell(), addFace(), addPoint(), DynamicList< T, SizeMin >::append(), cellZones(), Foam::endl(), faceNeighbour(), faceOwner(), faces(), faceZones(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::max(), mesh, modifyCell(), modifyFace(), modifyPoint(), patches, points(), pointZones(), and pp().

Referenced by polyTopoChange().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCapacity()

void setCapacity ( const label nPoints,
const label nFaces,
const label nCells )

Explicitly pre-size the dynamic storage for expected mesh size for if construct-without-mesh.

Definition at line 2623 of file polyTopoChange.C.

References nPoints.

Referenced by fvMeshAdder::add(), and meshRefinement::splitFacesUndo().

Here is the caller graph for this function:

◆ shrink()

void shrink ( )

Shrink storage (does not remove any elements; just compacts dynamic lists.

Definition at line 939 of file polyTopoChange.C.

Referenced by snappyLayerDriver::addLayers().

Here is the caller graph for this function:

◆ movePoints()

void movePoints ( const pointField & newPoints)

Move all points. Incompatible with other topology changes.

Definition at line 3007 of file polyTopoChange.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, and UList< T >::size().

Referenced by dynamicMotionSolverFvMeshAMI::update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAction()

Foam::label setAction ( const topoAction & action)

For compatibility with polyTopoChange: set topological action.

Definition at line 2656 of file polyTopoChange.C.

References Foam::abort(), addCell(), addFace(), addPoint(), polyModifyCell::cellID(), polyRemoveCell::cellID(), polyModifyFace::faceID(), polyRemoveFace::faceID(), Foam::FatalError, FatalErrorInFunction, polyAddFace::flipFaceFlux(), polyModifyFace::flipFaceFlux(), polyAddPoint::inCell(), polyModifyPoint::inCell(), Foam::isType(), polyAddCell::masterCellID(), polyAddCell::masterEdgeID(), polyAddFace::masterEdgeID(), polyAddCell::masterFaceID(), polyAddFace::masterFaceID(), polyAddCell::masterPointID(), polyAddFace::masterPointID(), polyAddPoint::masterPointID(), polyRemoveCell::mergeCellID(), polyRemoveFace::mergeFaceID(), polyRemovePoint::mergePointID(), modifyCell(), modifyFace(), modifyPoint(), polyAddFace::neighbour(), polyModifyFace::neighbour(), polyAddFace::newFace(), polyModifyFace::newFace(), polyAddPoint::newPoint(), polyModifyPoint::newPoint(), polyAddFace::owner(), polyModifyFace::owner(), polyAddFace::patchID(), polyModifyFace::patchID(), polyModifyPoint::pointID(), polyRemovePoint::pointID(), Foam::refCast(), removeCell(), removeFace(), polyModifyCell::removeFromZone(), removePoint(), polyAddFace::zoneFlip(), polyModifyFace::zoneFlip(), polyAddCell::zoneID(), polyAddFace::zoneID(), polyAddPoint::zoneID(), polyModifyCell::zoneID(), polyModifyFace::zoneID(), and polyModifyPoint::zoneID().

Referenced by meshRefinement::mergeBaffles(), polyMeshAdder::mergePoints(), addPatchCellLayer::setRefinement(), boundaryCutter::setRefinement(), combineFaces::setRefinement(), faceCollapser::setRefinement(), hexRef8::setRefinement(), meshCutAndRemove::setRefinement(), meshCutter::setRefinement(), removeCells::setRefinement(), removeFaces::setRefinement(), removePoints::setRefinement(), combineFaces::setUnrefinement(), and removePoints::setUnrefinement().

Here is the caller graph for this function:

◆ addPoint() [1/2]

Foam::label addPoint ( const point & pt,
const label masterPointID,
const label zoneID,
const bool inCell )

Add point. Return new point label.

Notes:

  • masterPointID can be < 0 (appended points)
  • inCell = false: add retired point (to end of point list)

Definition at line 2784 of file polyTopoChange.C.

Referenced by polyMeshAdder::add(), addMesh(), setAction(), createShellMesh::setRefinement(), duplicatePoints::setRefinement(), and tetDecomposer::setRefinement().

Here is the caller graph for this function:

◆ addPoint() [2/2]

Foam::label addPoint ( const point & pt,
const label masterPointID,
const labelUList & zoneIDs,
const bool inCell )

Add point. Return new point label.

Notes:

  • masterPointID can be < 0 (appended points)
  • inCell = false: add retired point (to end of point list)

Definition at line 2813 of file polyTopoChange.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::findMin(), Foam::flatOutput(), forAll, and zoneIDs.

Here is the call graph for this function:

◆ modifyPoint() [1/2]

void modifyPoint ( const label pointi,
const point & pt,
const label zoneID,
const bool inCell,
const bool multiZone = false )

Modify coordinate.

Notes:

  • zoneID = +ve (add to zoneID), -ve (remove from zones)
  • inCell = false: add retired point (to end of point list)

Definition at line 2863 of file polyTopoChange.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, and pointRemoved().

Referenced by addMesh(), setAction(), addPatchCellLayer::setRefinement(), and edgeCollapser::setRefinement().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ modifyPoint() [2/2]

void modifyPoint ( const label pointi,
const point & pt,
const labelUList & zoneIDs,
const bool inCell )

Modify coordinate.

Notes:

  • zoneIDs = set pointZones
  • inCell = false: add retired point (to end of point list)

Definition at line 2945 of file polyTopoChange.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::flatOutput(), pointRemoved(), and zoneIDs.

Here is the call graph for this function:

◆ removePoint()

void removePoint ( const label pointi,
const label mergePointi )

Remove/merge point.

Definition at line 3025 of file polyTopoChange.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, VectorSpace< Form, Cmpt, Ncmpts >::max, Foam::nl, and pointRemoved().

Referenced by polyMeshAdder::mergePoints(), setAction(), and edgeCollapser::setRefinement().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pointZones()

Foam::label pointZones ( const label pointi,
DynamicList< label > & zones ) const

Get current cellZone(s). Return number of zones.

Definition at line 3675 of file polyTopoChange.C.

References Foam::abort(), DynamicList< T, SizeMin >::clear(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, DynamicList< T, SizeMin >::push_back(), DynamicList< T, SizeMin >::push_uniq(), and UList< T >::size().

Referenced by addMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addFace() [1/2]

Foam::label addFace ( const face & f,
const label own,
const label nei,
const label masterPointID,
const label masterEdgeID,
const label masterFaceID,
const bool flipFaceFlux,
const label patchID,
const label zoneID,
const bool zoneFlip )

Add face to cells. Return new face label.

own,nei<0, zoneID>=0 : add inactive face (to end of face list)

Definition at line 3077 of file polyTopoChange.C.

References f(), and patchID.

Referenced by polyMeshAdder::add(), cyclicAMIPolyPatch::addAMIFaces(), addMesh(), meshRefinement::doSplitFaces(), setAction(), and createShellMesh::setRefinement().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addFace() [2/2]

Foam::label addFace ( const face & f,
const label own,
const label nei,
const label masterPointID,
const label masterEdgeID,
const label masterFaceID,
const bool flipFaceFlux,
const label patchID,
const labelUList & zoneIDs,
const UList< bool > & zoneFlips )

Add face to cells. Return new face label.

own,nei<0, zoneID>=0 : add inactive face (to end of face list)

Definition at line 3142 of file polyTopoChange.C.

References Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, Foam::findMin(), Foam::flatOutput(), forAll, patchID, and zoneIDs.

Here is the call graph for this function:

◆ modifyFace() [1/2]

void modifyFace ( const face & f,
const label facei,
const label own,
const label nei,
const bool flipFaceFlux,
const label patchID,
const label zoneID,
const bool zoneFlip,
const bool multiZone = false )

Modify vertices or cell of face.

Definition at line 3235 of file polyTopoChange.C.

References Foam::abort(), f(), Foam::FatalError, FatalErrorInFunction, and patchID.

Referenced by addMesh(), meshRefinement::doSplitFaces(), setAction(), addPatchCellLayer::setRefinement(), duplicatePoints::setRefinement(), edgeCollapser::setRefinement(), and meshRefinement::splitFacesUndo().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ modifyFace() [2/2]

void modifyFace ( const face & f,
const label facei,
const label own,
const label nei,
const bool flipFaceFlux,
const label patchID,
const labelUList & zoneIDs,
const UList< bool > & zoneFlips )

Modify vertices or cell of face.

Definition at line 3323 of file polyTopoChange.C.

References Foam::abort(), f(), Foam::FatalError, FatalErrorInFunction, Foam::flatOutput(), patchID, and zoneIDs.

Here is the call graph for this function:

◆ removeFace()

void removeFace ( const label facei,
const label mergeFacei )

Remove/merge face.

Definition at line 3391 of file polyTopoChange.C.

References Foam::abort(), Foam::endl(), faceRemoved(), Foam::FatalError, and FatalErrorInFunction.

Referenced by cyclicAMIPolyPatch::removeAMIFaces(), setAction(), edgeCollapser::setRefinement(), and meshRefinement::splitFacesUndo().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ faceZones()

Foam::label faceZones ( const label facei,
DynamicList< label > & zones,
DynamicList< bool > & flips ) const

Get current faceZone(s). Return number of zones.

Definition at line 3706 of file polyTopoChange.C.

References Foam::abort(), DynamicList< T, SizeMin >::clear(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, UList< T >::found(), Foam::mag(), DynamicList< T, SizeMin >::push_back(), and UList< T >::size().

Referenced by addMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addCell() [1/2]

Foam::label addCell ( const label masterPointID,
const label masterEdgeID,
const label masterFaceID,
const label masterCellID,
const label zoneID )

Add cell. Return new cell label.

Definition at line 3442 of file polyTopoChange.C.

Referenced by polyMeshAdder::add(), addMesh(), setAction(), createShellMesh::setRefinement(), and tetDecomposer::setRefinement().

Here is the caller graph for this function:

◆ addCell() [2/2]

Foam::label addCell ( const label masterPointID,
const label masterEdgeID,
const label masterFaceID,
const label masterCellID,
const labelUList & zoneIDs )

Add zoned cell (zones cannot be -1). Return new cell label.

Definition at line 3481 of file polyTopoChange.C.

References zoneIDs.

◆ modifyCell() [1/2]

void modifyCell ( const label celli,
const label zoneID,
const bool multiZone = false )

Modify zone of cell. Optionally add to zone.

Definition at line 3537 of file polyTopoChange.C.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Referenced by addMesh(), and setAction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ modifyCell() [2/2]

void modifyCell ( const label celli,
const labelUList & zoneIDs )

Set zones of cell.

Definition at line 3588 of file polyTopoChange.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::flatOutput(), and zoneIDs.

Here is the call graph for this function:

◆ removeCell()

void removeCell ( const label celli,
const label mergeCelli )

Remove/merge cell.

Definition at line 3633 of file polyTopoChange.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, and FatalErrorInFunction.

Referenced by setAction(), and edgeCollapser::setRefinement().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cellZones()

Foam::label cellZones ( const label celli,
DynamicList< label > & zones ) const

Get current cellZone(s). Return number of zones.

Definition at line 3745 of file polyTopoChange.C.

References Foam::abort(), DynamicList< T, SizeMin >::clear(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, DynamicList< T, SizeMin >::push_back(), DynamicList< T, SizeMin >::push_uniq(), and UList< T >::size().

Referenced by addMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setNumPatches()

void setNumPatches ( const label nPatches)
inline

Explicitly set the number of patches if construct-without-mesh used.

Definition at line 48 of file polyTopoChangeI.H.

References nPatches.

◆ changeMesh() [1/2]

Foam::autoPtr< Foam::mapPolyMesh > changeMesh ( polyMesh & mesh,
const labelUList & patchMap,
const bool inflate,
const bool syncParallel = true,
const bool orderCells = false,
const bool orderPoints = false )

Inplace changes mesh without change of patches.

Adapts patch start/end and by default does parallel matching. Clears all data. Returns map. inflate = true : keep old mesh points. Put new points into the returned map (preMotionPoints) so we can use inflation. Any points out of nothing (appended points) are vector::zero. inflate = false: set mesh points directly. Empty preMotionPoints in the map. orderCells : whether to order the cells (see bandCompression.H) orderPoints : whether to order the points into internal first followed by boundary points. This is not fully consistent with upper-triangular ordering of points and edges so is only done when explicitly asked for.

Definition at line 3774 of file polyTopoChange.C.

References Foam::endl(), forAll, mesh, autoPtr< T >::New(), newPointi, Foam::nl, Foam::Pout, UList< T >::size(), Foam::HashSetOps::used(), and Foam::Zero.

Referenced by fvMeshAdder::add(), snappyLayerDriver::addLayers(), snappyLayerDriver::addLayersSinglePass(), changeMesh(), meshRefinement::createBaffles(), meshRefinement::directionalRefine(), meshRefinement::doRemoveCells(), meshRefinement::doRemovePoints(), meshRefinement::doRestorePoints(), meshRefinement::dupNonManifoldPoints(), meshRefinement::mergeBaffles(), meshRefinement::mergePatchFaces(), meshRefinement::mergePatchFacesUndo(), meshRefinement::mergePoints(), dynamicRefineFvMesh::refine(), meshRefinement::refine(), refinementIterator::setRefinement(), meshRefinement::splitFacesUndo(), dynamicRefineFvMesh::unrefine(), dynamicMotionSolverFvMeshAMI::update(), and meshRefinement::zonify().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ changeMesh() [2/2]

Foam::autoPtr< Foam::mapPolyMesh > changeMesh ( polyMesh & mesh,
const bool inflate,
const bool syncParallel = true,
const bool orderCells = false,
const bool orderPoints = false )

Without patch mapping.

Definition at line 4039 of file polyTopoChange.C.

References changeMesh(), Foam::identity(), and mesh.

Here is the call graph for this function:

◆ makeMesh() [1/4]

template<class Type>
autoPtr< mapPolyMesh > makeMesh ( autoPtr< Type > & newMesh,
const IOobject & io,
const polyMesh & mesh,
const labelUList & patchMap,
const bool syncParallel = true,
const bool orderCells = false,
const bool orderPoints = false )

Create new mesh with old mesh patches. Additional dictionaries.

(fv* etc) read according to IO flags

References io, and mesh.

Referenced by snappyLayerDriver::addLayers(), polyMeshFilter::copyMesh(), and makeMesh().

Here is the caller graph for this function:

◆ makeMesh() [2/4]

template<class Type>
autoPtr< mapPolyMesh > makeMesh ( autoPtr< Type > & newMesh,
const IOobject & io,
const polyMesh & mesh,
const bool syncParallel = true,
const bool orderCells = false,
const bool orderPoints = false )

Create new mesh with old mesh patches. Additional dictionaries.

(fv* etc) read according to IO flags

References io, and mesh.

◆ makeMesh() [3/4]

template<class Type>
Foam::autoPtr< Foam::mapPolyMesh > makeMesh ( autoPtr< Type > & newMeshPtr,
const IOobject & io,
const polyMesh & mesh,
const labelUList & patchMap,
const bool syncParallel,
const bool orderCells,
const bool orderPoints )

◆ makeMesh() [4/4]

template<class Type>
Foam::autoPtr< Foam::mapPolyMesh > makeMesh ( autoPtr< Type > & newMeshPtr,
const IOobject & io,
const polyMesh & mesh,
const bool syncParallel,
const bool orderCells,
const bool orderPoints )

Definition at line 395 of file polyTopoChangeTemplates.C.

References Foam::identity(), io, makeMesh(), and mesh.

Here is the call graph for this function:

The documentation for this class was generated from the following files: