A quasi-optical beam-tracing code for electron cyclotron waves absorption and current drive in tokamaks
Go to file
Michele Guerini Rocco 98dda6d6fa
src/equilibrium.f90: improve handling of the ψ normalisation
- 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`.
2023-12-12 23:37:56 +01:00
doc Improve documentation build 2022-11-17 19:31:58 +01:00
input rework the analytical model 2023-12-12 23:37:43 +01:00
scripts Add first draft of Python plotting script 2022-11-13 01:57:09 +01:00
src src/equilibrium.f90: improve handling of the ψ normalisation 2023-12-12 23:37:56 +01:00
srcjetto fixed incompatibilities with allocatable arrays (pgf90 compiler, JETTO); fixed input/output scaling (gray/jetto interface); fixed error in read_beams2 for small beam tables 2016-06-01 13:49:35 +00:00
.gitignore add option to set parameters from the command-line 2022-05-11 01:15:07 +02:00
configure add documentation 2021-12-15 02:30:58 +01:00
default.nix default.nix: update to Nixpkgs 21.11 2023-03-29 21:52:21 +02:00
depend depend: fix typo 2023-03-30 11:06:33 +02:00
LICENSE.md Update license 2022-11-18 19:47:50 +01:00
Makefile Fix debug/optimization flags 2023-10-20 13:42:06 +02:00
minpack-LICENSE.txt Add License files 2022-11-17 19:42:44 +01:00