You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dcmvdbekerom I set up a quite extreme example where we see the weaknesses of the LDM method / FFT when there are very little lines and a large spectral range.
I do not think the LDM can be improved much for these conditions. Instead, we should make use of the fact that RADIS has the historical method already implemented, and switch to it automatically.
I discussed this previously, but in a first approximation :
DLM scales as spectral range / wstep * log(spectral range / wstep) (FFT)
historical method (line-centered lineshape with cutoff) scales as broadening_cutoff * spectral range / wstep^2 (convolution) * N_lines
Therefore the ratio R should be a good indicator of when to use LDM (R >> Rcrit) and when to use the historical method (R << Rcrit)
R = broadening_cutoff / wstep * N_lines / log(spectral range / wstep)
In the benchmark example, I calculated R=50e6 and we're definitly in a historical method computation, so we can already say that Rcrit >> 50e6.
This in itself could be a GSOC project, actually !
Build a big map of benchmark cases
Run the methods and manually optimize
Derive a better R expression.
Implement the automatic switch using a high-level "optimization='auto'" mode in calc_spectrum
@dcmvdbekerom I set up a quite extreme example where we see the weaknesses of the LDM method / FFT when there are very little lines and a large spectral range.
https://github.com/radis/radis-benchmark/blob/master/manual_benchmarks/OH%20benchmark.ipynb
I do not think the LDM can be improved much for these conditions. Instead, we should make use of the fact that RADIS has the historical method already implemented, and switch to it automatically.
I discussed this previously, but in a first approximation :
spectral range / wstep * log(spectral range / wstep)
(FFT)broadening_cutoff * spectral range / wstep^2
(convolution)* N_lines
Therefore the ratio R should be a good indicator of when to use LDM (R >> Rcrit) and when to use the historical method (R << Rcrit)
In the benchmark example, I calculated
R=50e6
and we're definitly in a historical method computation, so we can already say that Rcrit >> 50e6.This in itself could be a GSOC project, actually !
Related
The text was updated successfully, but these errors were encountered: