noh_amr.hpp
Go to the documentation of this file.
1 
6 #ifndef NOH_AMR_HPP
7 #define NOH_AMR_HPP 1
8 
9 #include "../../../../source/newtonian/two_dimensional/RefineStrategy.hpp"
10 #include "../../../../source/newtonian/two_dimensional/RemovalStrategy.hpp"
12 class NohRefine : public RefineStrategy
13 {
14 private:
15  double Vmax_;
16 public:
21  explicit NohRefine(double Vmax);
23  ~NohRefine();
24 
25  vector<int> CellsToRefine
26  (Tessellation const& tess,
27  vector<ComputationalCell> const& cells,
28  double time,
29  vector<Vector2D> &directions,
30  vector<int> const& Removed);
31 };
32 
34 class NohRemove : public RemovalStrategy
35 {
36 private:
37  double Vmin_;
38 public:
43  explicit NohRemove(double Vmin);
45  ~NohRemove();
46 
47  vector<int> CellsToRemove
48  (Tessellation const& tess,
49  vector<ComputationalCell> const& cells,
50  double time)const;
51 };
52 
53 #endif //NOH_AMR_HPP
NohRefine(double Vmax)
Class constructor.
Definition: noh_amr.cpp:3
Abstract class for tessellation.
Abstract class for derefinment strategies.
~NohRefine()
Class destructor.
Definition: noh_amr.cpp:6
Abstract class for refinment strategies.
Noh problem Removal strategy class.
Definition: noh_amr.hpp:34
Noh problem Refinement strategy class.
Definition: noh_amr.hpp:12
vector< int > CellsToRefine(Tessellation const &tess, vector< ComputationalCell > const &cells, double time, vector< Vector2D > &directions, vector< int > const &Removed)
Calculates the cells to be refined.
Definition: noh_amr.cpp:10
Chooses which cells should be remove.
Definition: amr.hpp:111