Merged
Conversation
5bd1dc9 to
7c5178e
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3976 +/- ##
==========================================
- Coverage 46.04% 45.87% -0.18%
==========================================
Files 123 123
Lines 28962 30081 +1119
==========================================
+ Hits 13336 13800 +464
- Misses 15626 16281 +655 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…and plotting function
…nd improve partial derivative computation using numpy gradient
…file size directly, improving clarity and consistency
…fraction calculations
512fa38 to
5ff48ff
Compare
clmould
requested changes
Nov 25, 2025
j-a-foster
approved these changes
Nov 25, 2025
Collaborator
j-a-foster
left a comment
There was a problem hiding this comment.
Happy with changes to plot proc plot.
a1ad6af to
fe94e80
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds support for storing, processing, and visualizing the Sauter bootstrap current density profile in the plasma physics workflow. The changes introduce a new variable to hold the bootstrap profile, compute and store it during physics calculations, output it for further use, and update the plotting routines to display the profile for analysis.
Support for Sauter bootstrap current density profile:
j_plasma_bootstrap_sauter_profiletophysics_variables.pyto store the Sauter bootstrap current density profile, with initialization and global declaration updates.physics.py, updated thebootstrap_fraction_sauterfunction to compute and assign the Sauter bootstrap current density profile toj_plasma_bootstrap_sauter_profileusing numpy gradients for improved numerical stability.Visualization improvements:
Updated the
plot_jprofilefunction inplot_proc.pyto accept the new profile data, plot the Sauter bootstrap current density profile alongside the existing current density, and add a legend and annotation for clarity.Technical and numerical fixes:
Replaced manual partial derivative calculations with
numpy.gradientfor more robust and accurate computation of profile gradients in the Sauter bootstrap calculation.Minor refactoring to remove unused or redundant variables and checks in the bootstrap calculation for code clarity.
Checklist
I confirm that I have completed the following checks: