Base class for amr.
More...
#include <amr.hpp>
|
virtual void | operator() (hdsim &sim)=0 |
| Runs the AMR. More...
|
|
virtual void | UpdateCellsRefine (Tessellation &tess, OuterBoundary const &obc, vector< ComputationalCell > &cells, EquationOfState const &eos, vector< Extensive > &extensives, double time, Tessellation const &proctess, TracerStickerNames const &tracerstickernames, CacheData const &cd, PhysicalGeometry const &pg) const =0 |
| Runs the refine. More...
|
|
virtual void | UpdateCellsRemove (Tessellation &tess, OuterBoundary const &obc, vector< ComputationalCell > &cells, vector< Extensive > &extensives, EquationOfState const &eos, double time, Tessellation const &proctess, TracerStickerNames const &tracerstickernames, CacheData const &cd, PhysicalGeometry const &pg) const =0 |
| Runs the removal. More...
|
|
virtual | ~AMR (void) |
| Virtual destructor.
|
|
|
void | GetNewPoints (vector< size_t > const &ToRefine, Tessellation const &tess, vector< std::pair< size_t, Vector2D > > &NewPoints, vector< Vector2D > &Moved, OuterBoundary const &obc, vector< Vector2D > const &proc_chull) const |
| Calculates the positions of the new points. More...
|
|
vector< size_t > | RemoveNearBoundaryPoints (vector< size_t > const &ToRemove, Tessellation const &tess, vector< double > &merits) const |
| Removes points because they are near the edge of a cpu domain. More...
|
|
void | GetNewPoints2 (vector< size_t > const &ToRefine, Tessellation const &tess, vector< std::pair< size_t, Vector2D > > &NewPoints, vector< Vector2D > &Moved, OuterBoundary const &obc) const |
| Calculates the positions of the new points like AREPO. More...
|
|
Base class for amr.
Definition at line 150 of file amr.hpp.
◆ GetNewPoints()
Calculates the positions of the new points.
- Parameters
-
ToRefine | points to refine |
tess | Tessellation |
NewPoints | output |
Moved | displacement for periodic grid |
obc | Outer boundary conditions |
proc_chull | Cells' convex hull |
Definition at line 714 of file amr.cpp.
◆ GetNewPoints2()
Calculates the positions of the new points like AREPO.
- Parameters
-
ToRefine | points to refine |
tess | Tessellation |
NewPoints | output |
Moved | displacement for periodic grid |
obc | Outer boundary conditions |
Definition at line 674 of file amr.cpp.
◆ operator()()
virtual void AMR::operator() |
( |
hdsim & |
sim | ) |
|
|
pure virtual |
◆ RemoveNearBoundaryPoints()
vector< size_t > AMR::RemoveNearBoundaryPoints |
( |
vector< size_t > const & |
ToRemove, |
|
|
Tessellation const & |
tess, |
|
|
vector< double > & |
merits |
|
) |
| const |
|
protected |
Removes points because they are near the edge of a cpu domain.
- Parameters
-
ToRemove | Candidates for AMR |
merits | The merits for points to be removed. given as input and output. should be empty vector for refinement |
tess | Tessellation |
- Returns
- The new indices and merits of points
Definition at line 1154 of file amr.cpp.
◆ UpdateCellsRefine()
Runs the refine.
- Parameters
-
tess | The tessellation |
cells | The computational cells |
eos | The equation of state |
extensives | The extensive variables |
time | The sim time |
obc | Outer boundary conditions |
tracerstickernames | The names of the tracers and stickers |
cd | The cache data of the tessellation |
pg | The physical geometry |
proctess | Tessellation of the processes (for parallel runs) |
Implemented in NonConservativeAMR, and ConservativeAMR.
◆ UpdateCellsRemove()
Runs the removal.
- Parameters
-
tess | The tessellation |
cells | The computational cells |
eos | The equation of state |
extensives | The extensive variables |
time | The sim time |
obc | The outer boundary conditions |
tracerstickernames | The names of the tracers and stickers |
cd | The cache data of the tessellation |
pg | The physical geometry |
proctess | Tessellation of the processes (for parallel runs) |
Implemented in NonConservativeAMR, and ConservativeAMR.
The documentation for this class was generated from the following files:
- source/newtonian/two_dimensional/amr.hpp
- source/newtonian/two_dimensional/amr.cpp