Skip to content

Comments

Implementation of Will's GP into pyrokinetics#509

Open
FelixWattsYork wants to merge 112 commits intounstablefrom
GS2_GP
Open

Implementation of Will's GP into pyrokinetics#509
FelixWattsYork wants to merge 112 commits intounstablefrom
GS2_GP

Conversation

@FelixWattsYork
Copy link
Collaborator

Not Ready for Merge!

Contains and Implementation of Will's GP model based on GS2 for calculating linear instability growth rates. Callable as a diagnostic for pyro or pyroscan objects
Also includes

  • Giacomin Saturation rule implementation to allow for predictions of fluxes from GP
  • Allow pyroscan reading without loading all data, can ignore fields data for example
  • Allows reading of nonlinear pyroscans, a general implementation for gyrokinetics codes and a specific implementation for TGLF
  • extendable for other GP models for different GK outputs, such as fluxes directly

Issues

In general this branch is long way from being ready to be merged. The code quality is poor, it lacks unit tests, and a number of features are not robust. In addition Will is currently rebuilding the GS2 simulations necessary for an accurate prediction of beta prime stabilization.

The point of this PR is to gain feedback about general code quality/structure and about the nature of the implementation. In particular how the saturation rule is attached to the GP. This is my first major code addition so any Feedback would be greatly appreciated!!!!

FelixWattsYork and others added 30 commits October 10, 2025 14:24
MantasA411 and others added 30 commits November 19, 2025 15:33
Added functionality to store the runfile_dict in a pyroscan in json, and load it back at a later point. no a breaking change but default dictionaty format for runfile_dict is now a string to allow for json saving
* Fix GENE MXH setting of s_delta/s_zeta and correct Bgeo/B0 calc

* Add check in case dsndr/dcdr are just 0.0 in gene input

* flake8 fix

* Handling of the cases where `minor_r` is not set properly

* [skip ci] Apply black changes

* Triggering of automatic testing

---------

Co-authored-by: physycola <toby.adkins1@gmail.com>
Co-authored-by: physycola <physycola@users.noreply.github.com>
Extended Some very basic tests and got read without fields and fluxes working in a very limtied sense
…d a bit more robust, still not coded particuarly well
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants