Discontinuous Galerkin Library
#include "dg/algorithm.h"

\( \sqrt{g} \) More...

Collaboration diagram for create volume:

Functions

template<class Geometry >
get_host_vector< Geometry > dg::create::volume (const Geometry &g)
 Create the volume element on the grid (including weights!!) More...
 
template<class Geometry >
get_host_vector< Geometry > dg::create::inv_volume (const Geometry &g)
 Create the inverse volume element on the grid (including weights!!) More...
 

Detailed Description

\( \sqrt{g} \)

Function Documentation

◆ inv_volume()

template<class Geometry >
get_host_vector< Geometry > dg::create::inv_volume ( const Geometry &  g)

Create the inverse volume element on the grid (including weights!!)

This is the same as the inv_weights divided by the volume form \( \sqrt{g}\)

Template Parameters
GeometryA type that is or derives from one of the abstract geometry base classes ( aGeometry2d, aGeometry3d, aMPIGeometry2d, ...).
Parameters
gGeometry object
Returns
The inverse volume form

◆ volume()

template<class Geometry >
get_host_vector< Geometry > dg::create::volume ( const Geometry &  g)

Create the volume element on the grid (including weights!!)

This is the same as the weights multiplied by the volume form \( \sqrt{g}\)

Template Parameters
GeometryA type that is or derives from one of the abstract geometry base classes ( aGeometry2d, aGeometry3d, aMPIGeometry2d, ...).
Parameters
gGeometry object
Returns
The volume form