Add SOL physics class - #4479
Open
chris-ashe wants to merge 7 commits into
Open
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #4479 +/- ##
==========================================
- Coverage 48.64% 48.63% -0.02%
==========================================
Files 151 152 +1
Lines 29703 29769 +66
==========================================
+ Hits 14449 14478 +29
- Misses 15254 15291 +37 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
chris-ashe
force-pushed
the
add_sol_physics_class
branch
from
July 27, 2026 12:27
004c9ce to
53b76ab
Compare
chris-ashe
marked this pull request as ready for review
July 27, 2026 12:28
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 a new dedicated model for scrape-off layer (SOL) physics in the codebase, providing consistent calculation, storage, and output of SOL power decay lengths using established scalings. It also adds documentation and new plotting functionality to visualize and compare these quantities. The most important changes are grouped below.
Scrape-off Layer Model Integration
ScrapeOffLayermodel (process/models/physics/scrape_off_layer.py) that implements calculation methods for three SOL power decay length scalings (Eich 2013, MAST 2014 I, MAST 2014 II), updates the data structure, and provides output routines.ScrapeOffLayermodel into the main workflow, including initialization inmain.py, inclusion in thePhysicsmodel, and invocation in the main model sequence.Data Structure and Output
PhysicsData(len_plasma_sol_eich13_power_decay,len_plasma_sol_mast14_power_decay_1,len_plasma_sol_mast14_power_decay_2).ScrapeOffLayermodel.Documentation
Visualization
Checklist
I confirm that I have completed the following checks: