This adds a single switch to configure GRAY for realtime operation.
In realtime a single ray is traced until absorption reaches ≈50% of the
total. The simulation is stopped immediately after returning only the
position (as ρ_p=√ψ) of the peak. So, no post-processing is performed at
all. In addition:
- all outputs units are inactivated (equivalent to passing --units 0);
- current drive computation is disabled (ecrh_cd.ieccd=0);
- absorption is computed in weakly relativistic approximation
(ecrh_cd.iwarm=1);
- reflections and multiple plasma passes are disabled;
This implements a method to control the integrator step size based on
the integration error and resonance conditions. The main advantages are that:
- the ray trajectories have a bounded error;
- the initial step size can be large as to quickly traverse the vacuum;
- the results no longer depend on the choice of the step size.
The error is estimated from the real part of the dispersion relation
Λ(x̅, N̅), which if solved exactly should be zero.
The error bound is set to a strict value when crossing the plasma
boundary to ensure a correct coupling and is relaxed afterwards.
Finally, when the ray is approaching a resonance the controller ensures
the step size is small compared to the absorption profile.
This change makes the integration method of the raytracing equations
configurable and significantly simplifies the integrator subroutine
by moving the implementation details outside.
This adds a new configuration file based on the INI format.
The new format will allow adding GRAY parameters without breaking
compatibility with existing configurations, unlike as of the old
gray_params.data.