Normalized coordinate relative to wall along fieldline in phi or s coordinate.
More...
|
| WallFieldlineCoordinate (const dg::geo::CylindricalVectorLvl0 &vec, const dg::aRealTopology2d< double > &domain, double maxPhi, double eps, std::string type) |
| Construct with vector field, domain. More...
|
|
double | do_compute (double R, double Z) const |
|
| WallFieldlineCoordinate (const dg::geo::CylindricalVectorLvl0 &vec, const dg::aRealTopology2d< double > &domain, double maxPhi, double eps, std::string type) |
| Construct with vector field, domain. More...
|
|
double | do_compute (double R, double Z) const |
|
| WallFieldlineCoordinate (const dg::geo::CylindricalVectorLvl0 &vec, const dg::aRealTopology2d< double > &domain, double maxPhi, double eps, std::string type) |
| Construct with vector field, domain. More...
|
|
double | do_compute (double R, double Z) const |
|
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...
|
|
Normalized coordinate relative to wall along fieldline in phi or s coordinate.
The following differential equation is integrated
\[ \frac{ d R}{d \varphi} = b^R / b^\varphi \\ \frac{ d Z}{d \varphi} = b^Z / b^\varphi \\ \frac{ d s}{s \varphi} = 1 / b^\varphi \]
for initial conditions \( (R,Z,0)\) until either a maximum angle is reached or until \( (R,Z) \) leaves the given domain. In the latter case a bisection algorithm is used to find the exact angle \(\varphi_l\) of leave.
The difference to WallFieldlineDistance
is that this class integrates the differential equations in both directions and normalizes the output to \( [-1,1]\). -1 means at the negative sheath (you have to go agains the field to go out of the box), +1 at the postive sheath (you have to go with the field to go out of the box) and anything else is in-between; when the sheath cannot be reached 0 is returned
- Attention
- The sign of the coordinate (both angle and distance) is defined with respect to the direction of the magnetic field (not the angle coordinate like in Fieldaligned)
-1 means at the negative sheath (you have to go agains the field to go out of the box), +1 at the postive sheath (you have to go with the field to go out of the box) and anything else is in-between; when the sheath cannot be reached 0 is returned
- Attention
- The sign of the coordinate (both angle and distance) is defined with respect to the direction of the magnetic field (not the angle coordinate like in Fieldaligned)