11 vector<ComputationalCell>
const& ,
13 vector<Vector2D> &directions,
14 vector<int>
const& Removed)
43 vector<ComputationalCell>
const& ,
46 vector<int> ToRemoveTemp;
53 ToRemoveTemp.push_back(i);
NohRefine(double Vmax)
Class constructor.
Abstract class for tessellation.
virtual int GetPointNo(void) const =0
Get Total number of mesh generating points.
void CheckOutput(Tessellation const &tess, vector< int > &ToRemove) const
Checks if the removed list is good, throws an error if not.
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.
~NohRemove()
Class destructor.
virtual Vector2D GetMeshPoint(int index) const =0
Returns Position of mesh generating point.
double y
Component in the y direction.
~NohRefine()
Class destructor.
virtual double GetVolume(int index) const =0
Returns the volume of a cell.
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.
vector< int > CellsToRemove(Tessellation const &tess, vector< ComputationalCell > const &cells, double time) const
Removal abstract class. Can't remove neighboring cells or cells near peiodic boundary. Use CheckOutput to check correctness.
AMR scheme for the noh problem.
double abs(Vector3D const &v)
Norm of a vector.
vector< int > RemoveNeighbors(vector< double > const &merits, vector< int > const &candidates, Tessellation const &tess) const
Removes neighboring points and cells near the boundary which are not rigid walls. ...
NohRemove(double Vmin)
Class constructor.
double x
Component in the x direction.