Discontinuous Galerkin Library
#include "dg/algorithm.h"
|
Abstract base class for 2d grid refinement that increases the number of grid cells of a fixed basis grid. More...
Public Member Functions | |
void | generate (const RealGridX2d< real_type > &g_old, thrust::host_vector< real_type > &weightsX, thrust::host_vector< real_type > &weightsY, thrust::host_vector< real_type > &abscissasX, thrust::host_vector< real_type > &abscissasY) const |
Generate the grid transformation. More... | |
unsigned | nx_new (unsigned Nx_old, real_type fx_old) const |
the new number of cells More... | |
unsigned | ny_new (unsigned Ny_old, real_type fy_old) const |
real_type | fx_new (unsigned Nx_old, real_type fx_old) const |
real_type | fy_new (unsigned Ny_old, real_type fy_old) const |
virtual aRealRefinementX2d * | clone () const =0 |
virtual | ~aRealRefinementX2d ()=default |
Protected Member Functions | |
aRealRefinementX2d ()=default | |
aRealRefinementX2d (const aRealRefinementX2d &src)=default | |
aRealRefinementX2d & | operator= (const aRealRefinementX2d &src)=default |
Abstract base class for 2d grid refinement that increases the number of grid cells of a fixed basis grid.
|
virtualdefault |
|
protecteddefault |
|
protecteddefault |
|
pure virtual |
|
inline |
|
inline |
|
inline |
Generate the grid transformation.
g_old | The 1d grid to refine |
weightsX | A 2d vector of size nx_new()*ny_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 |
weightsY | A 2d vector of size nx_new()*ny_new(). These represent the Jacobian of the transformation \[\frac{\partial \eta}{\partial y} \] . The new metric element has thus to be multiplied by weights^2 and the volume by 1/weights |
abscissasX | A 2d vector of size nx_new()*ny_new(). These are the new abscissas \( x(\zeta) \) of the grid. |
abscissasY | A 2d vector of size nx_new()*ny_new(). These are the new abscissas \( y(\eta) \) of the grid. |
|
inline |
the new number of cells
Nx_old | the old number of cells |
fx_old | Factor to partition x-axis |
|
inline |
|
protecteddefault |