Stellarator-Tools
|
Vmec quantities. More...
#include <vmec_quantities.hpp>
Public Member Functions | |
vmec_quantities (const std::string &wout_file) | |
Vmec quantities. More... | |
double | get_r (const double s, const double u, const double v) const |
Get R quantity. More... | |
double | get_r_prime (const double s, const double u, const double v) const |
Get R' quantity. More... | |
double | get_dr_du (const double s, const double u, const double v) const |
Get dRdu quantity. More... | |
double | get_dr_dv (const double s, const double u, const double v) const |
Get dRdv quantity. More... | |
double | get_z (const double s, const double u, const double v) const |
Get Z quantity. More... | |
double | get_z_prime (const double s, const double u, const double v) const |
Get Z' quantity. More... | |
double | get_dz_du (const double s, const double u, const double v) const |
Get dZdu quantity. More... | |
double | get_dz_dv (const double s, const double u, const double v) const |
Get dZdv quantity. More... | |
double | get_phipf (const double s) const |
Get phipf quantity. More... | |
double | get_chipf (const double s) const |
Get chipf quantity. More... | |
double | get_bsups (const double s, const double u, const double v) const |
Get bsups quantity. More... | |
double | get_bsupu (const double s, const double u, const double v) const |
Get bsupu quantity. More... | |
double | get_bsupv (const double s, const double u, const double v) const |
Get bsupv quantity. More... | |
double | get_bsubs (const double s, const double u, const double v) const |
Get bsubs quantity. More... | |
double | get_bsubu (const double s, const double u, const double v) const |
Get bsubu quantity. More... | |
double | get_bsubv (const double s, const double u, const double v) const |
Get bsubv quantity. More... | |
double | get_jksups (const double s, const double u, const double v) const |
Get jksups quantity. More... | |
double | get_jksupu (const double s, const double u, const double v) const |
Get jksupu quantity. More... | |
double | get_jksupv (const double s, const double u, const double v) const |
Get jksupv quantity. More... | |
double | get_jbsups (const double s, const double u, const double v) const |
Get jbsups quantity. More... | |
double | get_jbsupu (const double s, const double u, const double v) const |
Get jbsupu quantity. More... | |
double | get_jbsupv (const double s, const double u, const double v) const |
Get jbsupv quantity. More... | |
double | get_jacobian (const double s, const double u, const double v) const |
Get jacobian. More... | |
double | get_curtor () const |
Get total toroidal current. More... | |
double | get_dbsupu_du (const double s, const double u, const double v) const |
Get dbsupudu quantity. More... | |
double | get_dbsupv_dv (const double s, const double u, const double v) const |
Get dbsupvdv quantity. More... | |
double | get_divb (const double s, const double u, const double v) const |
Get divergence of B. More... | |
double | get_pressure (const double s) const |
Get pressure quantity. More... | |
double | get_test (const double s) const |
Get test quantity. More... | |
Static Public Member Functions | |
static vmec_grid< full_grid > | make_full () |
Factory method to make a test quantity. More... | |
template<typename TYPE > | |
static double | load_scalar (const std::string &wout_file, const std::string &name) |
Factory method to load a scalar vmec quantity. More... | |
template<class GIRD_CLASS > | |
static vmec_grid< GIRD_CLASS > | load (const std::string &wout_file, const std::string &name) |
Factory method to load a vmec quantity. More... | |
template<class GIRD_CLASS , class PARITY > | |
static vmec_fourier< GIRD_CLASS, PARITY > | load_fourier (const std::string &wout_file, const std::string &name) |
Factory method to load a fourier vmec quantity. More... | |
template<class GIRD_CLASS , class PARITY > | |
static vmec_fourier< GIRD_CLASS, PARITY > | load_fourier_nyq (const std::string &wout_file, const std::string &name) |
Factory method to load a nyquest fourier vmec quantity. More... | |
template<class PARITY > | |
static vmec_fourier< half_grid, PARITY > | to_prime (const vmec_fourier< full_grid, PARITY > vmec) |
Convert full grid quantity to half grid primed. More... | |
template<class PARITY > | |
static vmec_fourier< full_grid, PARITY > | to_prime (const vmec_fourier< half_grid, PARITY > vmec) |
Convert full grid quantity to half grid primed. More... | |
Public Attributes | |
const vmec_grid< full_grid > | test_full |
test function | |
const vmec_fourier< full_grid, cosine > | r |
r | |
const vmec_fourier< half_grid, cosine > | drds |
drds | |
const vmec_fourier< full_grid, sine > | z |
z | |
const vmec_fourier< half_grid, sine > | dzds |
dzds | |
const vmec_grid< full_grid > | phipf |
Radial derivative of toroidal flux. | |
const vmec_grid< full_grid > | chipf |
Radial derivative of poloidal flux. | |
const double | signj |
Sign of vmec jacobian. | |
const vmec_fourier< half_grid, cosine > | j |
Jacobian. | |
const vmec_fourier< half_grid, cosine > | bsupu |
B^u. | |
const vmec_fourier< half_grid, cosine > | bsupv |
B^v. | |
const vmec_fourier< half_grid, sine > | bsubs |
B_s. | |
const vmec_fourier< half_grid, cosine > | bsubu |
B_u. | |
const vmec_fourier< half_grid, cosine > | bsubv |
B_v. | |
const vmec_fourier< full_grid, cosine > | jksupu |
JK^u. | |
const vmec_fourier< full_grid, cosine > | jksupv |
JK^v. | |
const double | curtor |
Total toroidal current. | |
const vmec_grid< full_grid > | p |
Pressure. | |
Vmec quantities.
Class representing a quantities from vmec.
|
inline |
Vmec quantities.
For now this only supports symmetric cases only.
[in] | wout_file | File name of a vmec wout file. |
|
inline |
Get bsubs quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get bsubu quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get bsubv quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get bsups quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get bsupu quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get bsupv quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get chipf quantity.
[in] | s | Radial position. |
|
inline |
Get total toroidal current.
|
inline |
Get dbsupudu quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get dbsupvdv quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get divergence of B.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get dRdu quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get dRdv quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get dZdu quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get dZdv quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get jacobian.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get jbsups quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get jbsupu quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get jbsupv quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get jksups quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get jksupu quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get jksupv quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get phipf quantity.
[in] | s | Radial position. |
|
inline |
Get pressure quantity.
[in] | s | Radial position. |
|
inline |
Get R quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get R' quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get test quantity.
[in] | s | Radial position. |
|
inline |
Get Z quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inline |
Get Z' quantity.
[in] | s | Radial position. |
[in] | u | Radial position. |
[in] | v | Radial position. |
|
inlinestatic |
Factory method to load a vmec quantity.
[in] | wout_file | File name of a vmec wout file. |
[in] | name | Name of the quantity to load. |
|
inlinestatic |
Factory method to load a fourier vmec quantity.
[in] | wout_file | File name of a vmec wout file. |
[in] | name | Name of the quantity to load. |
|
inlinestatic |
Factory method to load a nyquest fourier vmec quantity.
[in] | wout_file | File name of a vmec wout file. |
[in] | name | Name of the nyquest quantity to load. |
|
inlinestatic |
Factory method to load a scalar vmec quantity.
[in] | wout_file | File name of a vmec wout file. |
[in] | name | Name of the quantity to load. |
Factory method to make a test quantity.
|
inlinestatic |
Convert full grid quantity to half grid primed.
[in] | vmec | A full grid vmec quantity to take the derivative of. |
|
inlinestatic |
Convert full grid quantity to half grid primed.
[in] | vmec | A full grid vmec quantity to take the derivative of. |