A quasi-optical beam-tracing code for electron cyclotron waves absorption and current drive in tokamaks
98dda6d6fa
- Hide the implementation of the re-normalisation of the ψ(R,z) spline by adjusting the spline coefficients, instead of shifting and rescaling after each evaluation. - Correct the value of `psia` = ψ(X point) - ψ(O point) after the ψ(R,z) spline has been re-normalised. This fixes another instance of decoupling between the values of X and ∇X that introduce a systematic error in the numerical integration of the raytracing equations. Here the issue is caused by the different normalisations used, specifically X=X(ψ_n') and ∇X=∇X(ψ_n), where ψ_n' is the re-normalised spline of the normalised flux and ψ_n the spline of the normalised flux. See d0a5a9f for more details on problems resulting from this error. - Change `equian` and `equinum_psi` to return the normalised values for both the flux and its derivatives, to avoid confusions. Callers that needed the unnormalised derivatives now multiply explicitly by `psia`. |
||
---|---|---|
doc | ||
input | ||
scripts | ||
src | ||
srcjetto | ||
.gitignore | ||
configure | ||
default.nix | ||
depend | ||
LICENSE.md | ||
Makefile | ||
minpack-LICENSE.txt |