Kinetic radiation fit parameters Python sub-repository - #1060
Conversation
…thin gkeyll the fitting of kinetic operator parameters according to J. Roeltgen et al. 2025 NF 65
|
The energy loss in the first 2 regression tests changed in a systematic way. Is the amount it changed the amount that is expected based on the different fits? It looks like it changes in the correct direction, but I don't remember the temperature in these tests. |
For rt_gk_rad_1x2v_p1 and rt_gk_rad_nonuniformv_1x2v_p1, the normalized temperature is log10(30eV) ~ 1.5 and the radiation cutoff temperature is log10(12eV) ~ 1.07. From the For rt_gk_rad_low_Te_1x2v_p1, the normalized temperature is 0.72 eV, and it still has the 12eV cutoff, hence why the show the same energy loss since the emissivity is dictated by the established amount below the cutoff for both. |
If you haven't already, it might be good to quantitatively check that difference. But it looks good. |
Purpose / Summary
This PR integrates a automated radiation fitting sub-repository (
kin-rad-py) for calculating plasma radiation parameters in the fashion of a kinetic operator according to the methodology developed in J. Roeltgen et al. NF 65 2025. This implementation was based in the original repository of this work.Key changes include:
kin-rad-py/subdirectory in Gkeyll containing the standalone Python data fetching, batch fitting, and instructions for future development.radiation_fit_parameters.txtusing non-linear optimization algorithms (SLSQP), improving curve accuracy across a wider range of density intervals. See the following example:The current database with which the new
radiation_fit_parameters.txtisprod_rs_server_1insidekin-rad-py/fits_data/. To check all the comparison plots for the different elements and density see plot files in the repository where this work was prototyped.Testing & Verification
gyrokinetic/zero/radiation_read.c. For further information in implementation check the README.md inkin-rad-py.rt_gk_rad_1x2v_p1,rt_gk_rad_nonuniformv_1x2v_p1andrt_gk_rad_low_Te_1x2v_p1for H plasma. The results for integrated moments are presented here:Future work
fit_batch.pyas most scripts have useful documentation.Core Files Added/Modified
gyrokinetic/data/adas/radiation_fit_parameters.txt(Updated text database)gyrokinetic/data/adas/kin-rad-py/(New tracked python modules and sub-.gitignore)Please any other test needed, let me know.