Tensor-product basis data for the \((s,\chi,\varphi)\) field grid. More...
#include "bspline.hpp"
Collaboration diagram for orb5x::BSplineEval3D:Public Member Functions | |
| void | evaluate (Real s, Real chi, Real phi, Real s0, Real chi0, Real phi0, Real ds_inv, Real dchi_inv, Real dphi_inv, int degree) |
| Locate a point and evaluate its one-dimensional cardinal bases. | |
Public Attributes | |
| BSplineEval | chi_eval |
| Straight-field-line poloidal-angle basis evaluation. | |
| BSplineEval | phi_eval |
| Toroidal-angle basis evaluation. | |
| BSplineEval | s_eval |
| Radial normalized-flux basis evaluation. | |
Tensor-product basis data for the \((s,\chi,\varphi)\) field grid.
evaluate() locates each coordinate independently and stores cardinal basis weights plus absolute mesh indices. The structure does not form the full tensor product; callers combine the three one-dimensional evaluations.
| void orb5x::BSplineEval3D::evaluate | ( | Real | s, |
| Real | chi, | ||
| Real | phi, | ||
| Real | s0, | ||
| Real | chi0, | ||
| Real | phi0, | ||
| Real | ds_inv, | ||
| Real | dchi_inv, | ||
| Real | dphi_inv, | ||
| int | degree | ||
| ) |
Locate a point and evaluate its one-dimensional cardinal bases.
| [in] | s | Normalized radial coordinate. |
| [in] | chi | Straight-field-line poloidal angle, in radians. |
| [in] | phi | Toroidal angle, in radians. |
| [in] | s0 | Radial coordinate of grid point zero. |
| [in] | chi0 | Poloidal coordinate of grid point zero, in radians. |
| [in] | phi0 | Toroidal coordinate of grid point zero, in radians. |
| [in] | ds_inv | Inverse radial grid spacing. |
| [in] | dchi_inv | Inverse poloidal angular spacing, in radian inverse. |
| [in] | dphi_inv | Inverse toroidal angular spacing, in radian inverse. |
| [in] | degree | Number of active basis functions, in the range 1–4. |
s_eval, chi_eval, and phi_eval contain degree weights and absolute grid indices. | BSplineEval orb5x::BSplineEval3D::chi_eval |
Straight-field-line poloidal-angle basis evaluation.
| BSplineEval orb5x::BSplineEval3D::phi_eval |
Toroidal-angle basis evaluation.
| BSplineEval orb5x::BSplineEval3D::s_eval |
Radial normalized-flux basis evaluation.