|
chombo-discharge
|
Class for generation AMR boxes using a tiling algorithm. More...
#include <CD_TiledMeshRefine.H>
Public Member Functions | |
| TiledMeshRefine ()=delete | |
| Default constructor – deleted because we never need it. | |
| TiledMeshRefine (const ProblemDomain &a_coarsestDomain, const Vector< int > &a_refRatios, const IntVect &a_tileSize) noexcept | |
| Constructor. | |
| virtual | ~TiledMeshRefine () noexcept |
| Destructor (does nothing) | |
| virtual int | regrid (Vector< Vector< Box > > &a_newBoxes, const Vector< IntVectSet > &a_tagsLevel) const noexcept |
| Regrid using the tile clustering algorithm. | |
Protected Types | |
| using | Tile = TileI< int, SpaceDim > |
| Tile representation. | |
| using | TileSet = std::set< Tile > |
| Tile set representation. | |
Protected Member Functions | |
| virtual void | makeLevelTiles (TileSet &a_tiles, const TileSet &a_fineTiles, const IntVectSet &a_coarTags, const ProblemDomain &a_domain, const int a_refToFine, const int a_refToCoar) const noexcept |
| Make tiles on the current level from tags and tile coarsening from finer levels. | |
| virtual void | makeBoxesFromTiles (Vector< Box > &a_boxes, const TileSet &a_tiles, const ProblemDomain &a_domain) const noexcept |
| Turn tiles into boxes. | |
Protected Attributes | |
| Vector< ProblemDomain > | m_amrDomains |
| Computational domains on each level. | |
| Vector< int > | m_refRatios |
| Refinement ratios. | |
| IntVect | m_tileSize |
| Tile size. | |
Class for generation AMR boxes using a tiling algorithm.
This class provides a scalable method for grid generation where the grids are generated in a pre-set tile pattern. This work by decomposing the grid into a tiled pattern, and then flagging tiles rather than cells for refinement.
|
noexcept |
Constructor.
| [in] | a_coarsestDomain | Coarsest grid domain |
| [in] | a_refRatios | Refinement ratios |
| [in] | a_tileSize | Tile size |
|
virtualnoexcept |
Regrid using the tile clustering algorithm.
| [out] | a_newBoxes | The new grid boxes |
| [in] | a_tagsLevel | Grid tags on each level |
|
protected |
Computational domains on each level.