Abstract class for refinment strategies. More...
#include <RefineStrategy.hpp>
Public Member Functions | |
RefineStrategy (void) | |
Class constructor. | |
virtual vector< int > | CellsToRefine (Tessellation const &tess, vector< ComputationalCell > const &cells, double time, vector< Vector2D > &directions, vector< int > const &Removed)=0 |
Calculates the cells to be refined. More... | |
vector< int > | RemoveDuplicatedLately (vector< int > const &ToRefine, int Npoints, vector< Vector2D > &directions, vector< int > const &Removed, Tessellation const &tess) |
Removes cells that were splitted in the last time step. More... | |
vector< int > | RemoveNearBoundary (vector< int > const &ToRefine, vector< Vector2D > &directions, Tessellation const &tess) |
Removed from the list cells near periodic boundaries. More... | |
virtual | ~RefineStrategy (void) |
Virtual destructor. | |
Public Attributes | |
vector< int > | refined_old |
The cells that were refined in the previous time step. | |
Abstract class for refinment strategies.
Definition at line 16 of file RefineStrategy.hpp.
|
pure virtual |
Calculates the cells to be refined.
tess | The tessellation |
cells | The primitive cells |
time | The simulation time |
directions | The directions to move the splitted points, can be given empty |
Removed | A list of the cells that were removed in the last cell removal |
Implemented in NohRefine.
vector< int > RefineStrategy::RemoveDuplicatedLately | ( | vector< int > const & | ToRefine, |
int | Npoints, | ||
vector< Vector2D > & | directions, | ||
vector< int > const & | Removed, | ||
Tessellation const & | tess | ||
) |
Removes cells that were splitted in the last time step.
ToRefine | The list of candidate cells to split |
Npoints | The number of points in the tessellation |
directions | The directions to move the splitted points, can be given empty |
Removed | A list of the cells that were removed in the last cell removal |
tess | The tessellation |
Definition at line 39 of file RefineStrategy.cpp.
vector< int > RefineStrategy::RemoveNearBoundary | ( | vector< int > const & | ToRefine, |
vector< Vector2D > & | directions, | ||
Tessellation const & | tess | ||
) |
Removed from the list cells near periodic boundaries.
ToRefine | List of candidates |
directions | The split directions, can be given empty |
tess | The tessellation |
Definition at line 6 of file RefineStrategy.cpp.