Extension: Geometries
#include "dg/geometries/geometries.h"

Determine if poloidal field points towards or away from the nearest wall. More...

Inheritance diagram for dg::geo::WallDirection:
[legend]

Public Member Functions

 WallDirection (dg::geo::TokamakMagneticField mag, std::vector< double > vertical, std::vector< double > horizontal)
 Allocate lines. More...
 
 WallDirection (dg::geo::TokamakMagneticField mag, dg::Grid2d walls)
 Allocate lines. More...
 
double do_compute (double R, double Z) const
 
- Public Member Functions inherited from dg::geo::aCylindricalFunctor< WallDirection >
double operator() (double R, double Z) const
  do_compute(R,Z) More...
 
double operator() (double R, double Z, double phi) const
  do_compute(R,Z) More...
 

Detailed Description

Determine if poloidal field points towards or away from the nearest wall.

Attention
Does not account for toroidal field direction

Constructor & Destructor Documentation

◆ WallDirection() [1/2]

dg::geo::WallDirection::WallDirection ( dg::geo::TokamakMagneticField  mag,
std::vector< double >  vertical,
std::vector< double >  horizontal 
)
inline

Allocate lines.

Parameters
magUse to construct magnetic field
verticalwalls R_0, R_1 ... ( can be arbitrary size)
horizontalwalls Z_0, Z_1 ... ( can be arbitrary size)

◆ WallDirection() [2/2]

dg::geo::WallDirection::WallDirection ( dg::geo::TokamakMagneticField  mag,
dg::Grid2d  walls 
)
inline

Allocate lines.

Parameters
magUse to construct magnetic field
wallstwo vertical x0, x1 and two horizontal y0, y1 walls

Member Function Documentation

◆ do_compute()

double dg::geo::WallDirection::do_compute ( double  R,
double  Z 
) const
inline

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