Public Member Functions | List of all members
NohRefine Class Reference

Noh problem Refinement strategy class. More...

#include <noh_amr.hpp>

Inheritance diagram for NohRefine:
Inheritance graph
[legend]
Collaboration diagram for NohRefine:
Collaboration graph
[legend]

Public Member Functions

 NohRefine (double Vmax)
 Class constructor. More...
 
 ~NohRefine ()
 Class destructor.
 
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. More...
 
- Public Member Functions inherited from RefineStrategy
 RefineStrategy (void)
 Class constructor.
 
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.
 

Additional Inherited Members

- Public Attributes inherited from RefineStrategy
vector< int > refined_old
 The cells that were refined in the previous time step.
 

Detailed Description

Noh problem Refinement strategy class.

Definition at line 12 of file noh_amr.hpp.

Constructor & Destructor Documentation

◆ NohRefine()

NohRefine::NohRefine ( double  Vmax)
explicit

Class constructor.

Parameters
VmaxThe volume above to refine the cell

Definition at line 3 of file noh_amr.cpp.

Member Function Documentation

◆ CellsToRefine()

vector< int > NohRefine::CellsToRefine ( Tessellation const &  tess,
vector< ComputationalCell > const &  cells,
double  time,
vector< Vector2D > &  directions,
vector< int > const &  Removed 
)
virtual

Calculates the cells to be refined.

Parameters
tessThe tessellation
cellsThe primitive cells
timeThe simulation time
directionsThe directions to move the splitted points, can be given empty
RemovedA list of the cells that were removed in the last cell removal
Returns
A list of the cells to refine

Implements RefineStrategy.

Definition at line 10 of file noh_amr.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: