Add gyaradax plugin#2189
Conversation
Quasilinear transport model backed by the gyaradax JAX gyrokinetic solver (optional dependency), registered as gyaradax-ql. Adds the shared base class, the QL model and its pydantic config, registration gated on the gyaradax import (same pattern as qualikiz/tglf), and install/physics docs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
You mean this normalization here? You can choose the reference lengths for chiGB and the heat flux in these methods, so TORAX flux is not fixed to be normalized to minor radius (unless I misunderstood something).
That sounds fine.
e.g. flux matching with nonlinear solvers will be faster (once we have a stationary state flux matching solver in TORAX). And for time-dependent can use Newton in the inner loop. And of course can build optimization wrappers around all these for various constrained optimization applications (e.g. scenario optimization).
Not sure how relevant the QLKNN dataset is. Fundamentally you need 3 ingredients: There is a lot of literature. See e.g. https://iopscience.iop.org/article/10.1088/1741-4326/ad6ba5/meta . fcasson knows a lot about this.
Yes it's interesting, e.g. for ultimate ground-truth validation or for training set generation for surrogates or QL saturation rules. |
hey Torax team
this PR adds the
gyaradax-qlplugin (quasilinear model based on the gyaradax local gyrokinetics code) as an optional transport model. this is still WIP and more results to follow, mostly here to get feedback.gyaradax-qlmodel: per-radius linear solve => QL saturation => flux, over a few equidistantrho_matchthen interpolated.gyaradax-qlon ~1000 runs (rlt, rln, q, shat scanned, eps scan left out!, beta=0)iterhybrid_predictor_correctorcase, ES adiabatic), below.gyaradax).Open questions
rho_matchsubset and interpolates.Early results (
iterhybrid_predictor_corrector)rho_matchradii, interpolated to the face grid.t_final1s (was 5s).