Discontinuous Galerkin Library
#include "dg/algorithm.h"
|
Abstract base class for 1d grid refinement that increases the number of grid cells of a fixed basis grid. More...
Public Member Functions | |
void | generate (const RealGrid1d< real_type > &g_old, thrust::host_vector< real_type > &weights, thrust::host_vector< real_type > &abscissas) const |
Generate the grid transformation. More... | |
unsigned | N_new (unsigned N_old, bc bcx) const |
the new number of cells More... | |
virtual aRealRefinement1d * | clone () const =0 |
virtual | ~aRealRefinement1d ()=default |
Protected Member Functions | |
aRealRefinement1d ()=default | |
aRealRefinement1d (const aRealRefinement1d &src)=default | |
aRealRefinement1d & | operator= (const aRealRefinement1d &src)=default |
Abstract base class for 1d grid refinement that increases the number of grid cells of a fixed basis grid.
|
virtualdefault |
|
protecteddefault |
|
protecteddefault |
|
pure virtual |
|
inline |
Generate the grid transformation.
g_old | The 1d grid to refine |
weights | A 1d vector of size N_new. These represent the Jacobian of the transformation \[\frac{\partial \zeta}{\partial x} \] . The new metric element has thus to be multiplied by weights^2 and the volume by 1/weights |
abscissas | A 1d vector of size N_new. These are the new abscissas \( x(\zeta) \) of the grid. |
|
inline |
the new number of cells
N_old | the old number of cells |
bcx | the boundary condition of the grid |
|
protecteddefault |