A quasi-optical beam-tracing code for electron cyclotron waves absorption and current drive in tokamaks
Go to file
Michele Guerini Rocco a4a39571ce
src/pec.f90: don't rely on P_inside, I_cd_inside
When combining multiple independent simulations with `gray -s`, the
statistics in sum-summary.txt are computed by summing the profiles
pointwise and calling `postproc_profiles` with their (supposedly common)
MHD equilibrium.

The subroutine assumes the normalisations of dP/dV⋅dV and J_φ⋅dA are
P_inside(ρ=1), I_cd_inside(ρ=1), however if the individual profiles have
been computed with different versions of Gray, built with different
compilers, or on different machines, the values may be very slightly off.
Further, due to the use of the relation Δρ² = ⟨ρ²⟩ - ⟨ρ⟩², the profile
widths are very sensible to the normalisation, producing wildly
incorrect values.

For example, due to the refactor of `magsurf_data`, a change of about
0.05% in dV resulted in Δρ² being off by 300%.
2024-11-04 12:00:20 +01:00
doc doc/gray.ini.5: fix some typos 2024-05-21 13:57:16 +02:00
schemas Remove unused imports 2024-05-17 11:01:14 +02:00
scripts scripts/gray_visual.py: fix default of -k 2024-11-04 12:00:19 +01:00
src src/pec.f90: don't rely on P_inside, I_cd_inside 2024-11-04 12:00:20 +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
tests tests/01-ITER: fix G-EQDSK format 2024-11-04 12:00:19 +01:00
.gitignore .gitignore: remove gray_cli_params.f90 2024-04-12 17:33:34 +02:00
configure add support for intel compilers 2024-11-04 12:00:19 +01:00
default.nix add tests 2024-02-09 11:16:17 +01:00
LICENSE.md move vendored libraries to their own directory 2024-04-29 10:08:16 +02:00
Makefile add support for intel compilers 2024-11-04 12:00:19 +01:00