Stellarator-Tools
vmec_fourier< GRID_CLASS, PARITY > Class Template Reference

A cosine parity vmec quantity. More...

#include <grid_quantity.hpp>

Public Member Functions

 vmec_fourier (const vmec_quantity< GRID_CLASS > &buffer, const std::vector< double > &m, const std::vector< double > &n)
 Siesta radial quantity. More...
 
double get (const double s, const double u, const double v) const
 Get a value at a radial s position. More...
 
double get_du (const double s, const double u, const double v) const
 Get a poloidal derivative at a radial s position. More...
 
double get_dv (const double s, const double u, const double v) const
 Get a toroidal derivative at a radial s position. More...
 

Public Attributes

const std::vector< double > m
 M modes.
 
const std::vector< double > n
 N modes.
 
const vmec_quantity< GRID_CLASS > quantity
 Mode amplitudes.
 
const PARITY func
 Parity function.
 

Detailed Description

template<class GRID_CLASS, class PARITY>
class vmec_fourier< GRID_CLASS, PARITY >

A cosine parity vmec quantity.

Constructor & Destructor Documentation

◆ vmec_fourier()

template<class GRID_CLASS , class PARITY >
vmec_fourier< GRID_CLASS, PARITY >::vmec_fourier ( const vmec_quantity< GRID_CLASS > &  buffer,
const std::vector< double > &  m,
const std::vector< double > &  n 
)
inline

Siesta radial quantity.

Parameters
[in]bufferBuffer containing the radial quantity.

Member Function Documentation

◆ get()

template<class GRID_CLASS , class PARITY >
double vmec_fourier< GRID_CLASS, PARITY >::get ( const double  s,
const double  u,
const double  v 
) const
inline

Get a value at a radial s position.

s_vmec = s_siesta^2

Parameters
[in]sRadial s position.
[in]uPoloidal u position.
[in]vToroidal v position.
Returns
The interpolated s position.

◆ get_du()

template<class GRID_CLASS , class PARITY >
double vmec_fourier< GRID_CLASS, PARITY >::get_du ( const double  s,
const double  u,
const double  v 
) const
inline

Get a poloidal derivative at a radial s position.

s_vmec = s_siesta^2

Parameters
[in]sRadial s position.
[in]uPoloidal u position.
[in]vToroidal v position.
Returns
The interpolated s position.

◆ get_dv()

template<class GRID_CLASS , class PARITY >
double vmec_fourier< GRID_CLASS, PARITY >::get_dv ( const double  s,
const double  u,
const double  v 
) const
inline

Get a toroidal derivative at a radial s position.

s_vmec = s_siesta^2

Parameters
[in]sRadial s position.
[in]uPoloidal u position.
[in]vToroidal v position.
Returns
The interpolated s position.

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