Add pressure peaking fraction value - #4483
Open
chris-ashe wants to merge 8 commits into
Open
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #4483 +/- ##
==========================================
+ Coverage 48.67% 48.72% +0.04%
==========================================
Files 151 151
Lines 29734 29778 +44
==========================================
+ Hits 14474 14508 +34
- Misses 15260 15270 +10 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
chris-ashe
marked this pull request as ready for review
July 29, 2026 10:24
chris-ashe
force-pushed
the
add_pressure_peaking_fraction_value
branch
from
July 29, 2026 10:29
c0cd8b3 to
542e0ed
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 introduces several enhancements to how plasma pressure and temperature profiles are calculated, stored, and reported, particularly improving the handling of pedestal profile cases. The main changes include adding new derived quantities (such as central-to-volume-averaged ratios), calculating and outputting pedestal and separatrix pressures, and updating the summary plots and output files to reflect these new metrics.
Enhancements to plasma profile calculations:
Added calculation and storage of the ratio of central to volume-averaged plasma electron temperature (
f_temp_plasma_electron_on_axis_vol_avg) and plasma thermal pressure (f_pres_plasma_thermal_on_axis_vol_avg). These are now computed in both parabolic and pedestal parameterisations, and in the profile factors calculation.For pedestal profile cases, the code now calculates and stores the plasma thermal pressure at the pedestal (
pres_plasma_pedestal_thermal) and at the separatrix (pres_plasma_separatrix_thermal).Output and reporting improvements:
The output file generation now includes the new ratio quantities and, for pedestal profiles, the pedestal and separatrix pressures.
🐛 Fixed units in the output for plasma thermal energies from
[W]to[J]for clarity and correctness.Plotting and summary display updates:
Codebase and import updates:
PlasmaProfileShapeTypeto support the new logic for pedestal profile handling.These changes improve the physical fidelity and reporting of plasma profile data, especially for cases with pedestal structure, and enhance the usability of the output for analysis and validation.## Description
Checklist
I confirm that I have completed the following checks: