Extension: Geometries
#include "dg/geometries/geometries.h"
dg::geo::FluxVolumeIntegral< container > Struct Template Reference

Flux volume integral of the form \( \int dR dZ f(R,Z) \Theta(\psi_p(R,Z)-\psi_0) g(R,Z) \). More...

Public Member Functions

template<class Geometry2d >
 FluxVolumeIntegral (const Geometry2d &g2d, const TokamakMagneticField &mag)
 Construct from a grid and a magnetic field f and g are default initialized to 1. More...
 
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 Volume Integral. More...
 

Detailed Description

template<class container>
struct dg::geo::FluxVolumeIntegral< container >

Flux volume integral of the form \( \int dR dZ f(R,Z) \Theta(\psi_p(R,Z)-\psi_0) g(R,Z) \).

where Theta is the Heaviside function

Constructor & Destructor Documentation

◆ FluxVolumeIntegral()

template<class container >
template<class Geometry2d >
dg::geo::FluxVolumeIntegral< container >::FluxVolumeIntegral ( const Geometry2d &  g2d,
const TokamakMagneticField mag 
)
inline

Construct from a grid and a magnetic field f and g are default initialized to 1.

Parameters
g2dgrid
magcontains psip

Member Function Documentation

◆ operator()()

template<class container >
double dg::geo::FluxVolumeIntegral< container >::operator() ( double  psip0)
inline

Calculate the Flux Volume Integral.

Parameters
psip0the actual psi value of the flux surface
Returns
Int_0^psip0 (f,g)

◆ set_left()

template<class container >
void dg::geo::FluxVolumeIntegral< container >::set_left ( const container &  f)
inline

Set the left function to integrate.

Parameters
fthe container containing the discretized function

◆ set_right()

template<class container >
void dg::geo::FluxVolumeIntegral< container >::set_right ( const container &  g)
inline

Set the right function to integrate.

Parameters
gthe container containing the discretized function

The documentation for this struct was generated from the following file: