Extension: Geometries
#include "dg/geometries/geometries.h"
|
Flux surface integral of the form \( \int dR dZ f(R,Z) \delta(\psi_p(R,Z)-\psi_0) g(R,Z) \). More...
Public Member Functions | |
FluxSurfaceIntegral (const dg::Grid2d &g2d, const TokamakMagneticField &mag, double width_factor=1.) | |
Construct from a grid and a magnetic field f and g are default initialized to 1. More... | |
double | get_deltapsi () const |
void | set_left (const container &f) |
Set the left function to integrate. More... | |
void | set_right (const container &g) |
Set the right function to integrate. More... | |
double | operator() (double psip0) |
Calculate the Flux Surface Integral. More... | |
Flux surface integral of the form \( \int dR dZ f(R,Z) \delta(\psi_p(R,Z)-\psi_0) g(R,Z) \).
where for the width of the Gaussian shaped delta function we use the maximum of 0.5*h*GradPsip
where h
is the cell size in the grid
|
inline |
Construct from a grid and a magnetic field f and g are default initialized to 1.
g2d | grid |
mag | contains psip, psipR and psipZ |
width_factor | can be used to tune the width of the numerical delta function (width = 0.5*h*GradPsi*width_factor ) |
|
inline |
|
inline |
Calculate the Flux Surface Integral.
psip0 | the actual psi value of the flux surface |
|
inline |
Set the left function to integrate.
f | the container containing the discretized function |
|
inline |
Set the right function to integrate.
g | the container containing the discretized function |