Add TGLF SAT123 and saturation parameter calculations#236
Add TGLF SAT123 and saturation parameter calculations#236
Conversation
…ams' into feature/tglf_satparams
|
This looks like a good start! I think main issue is that this only works using TGLF inputs, whilst we would want this to work with all inputs. Ideally we'd like to use existing For example we already calculate things like local geometry parameter like I think we would want something like |
This adds the ability to calculate saturated fluxes from quasilinear weight, growth rate and ky spectra, and relevant plasma parameters in
input.tglf. The saturation rules were developed by Gary Staebler et al for SAT12, and @hgd511 and @fcasson et al for SAT3. This code is very fortran-y, which is deliberate since it is easier to update in response to changes to the saturation rules. I've added a testtest_tglf.pythat can also serve as a minimal working example. Over time the test can be modified to use pyro objects (I wasn't able to load the TGLF template output using pyro at the time of this writing).