A quasi-optical beam-tracing code for electron cyclotron waves absorption and current drive in tokamaks
ae9f605111
Previously the ray initial positions were set to the wavefront S_R(x,y,z) = 0, with (x,y) chosen such that S_I(x,y,0) = const. The wavefront itself, however, was determined using the value of the beam parameters (k_ξ, k_η, w_ξ, w_η, etc.) fixed at z=0, which is valid only when the initial wavefront is approximately flat. Moreover, since the ray are distributed according to S_I(z=0), this choice creates an inconsistency between the phase (from S_R at z≠0) and the power (from S_I at z=0) assigned to the rays. Satisfying both conditions on S_R and S_I exactly is really hard; however, given we do not really care about the phase and we want to precisely track the power, so it's more sensible to simply set z=0. This means that when integrating in the phase (idst=2), gray will no longer construct wavefronts, but merely transport the initial phase on the z=0 plane. Note that k₀⋅s will still give the correct phase. so if necessary, a wavefront could be reconstructed by interpolating the (s, x̅, y̅, z̅) points. |
||
---|---|---|
doc | ||
input | ||
scripts | ||
src | ||
srcjetto | ||
.gitignore | ||
configure | ||
default.nix | ||
depend | ||
LICENSE.md | ||
Makefile | ||
minpack-LICENSE.txt |