-
Notifications
You must be signed in to change notification settings - Fork 12
♻️ Write current profile, inductance and normalised beta relations as functions #3655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy stateme 8000 nt. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3655 +/- ##
==========================================
+ Coverage 36.36% 36.42% +0.06%
==========================================
Files 88 88
Lines 22108 22129 +21
==========================================
+ Hits 8039 8060 +21
Misses 14069 14069 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy with the new functions, code changes, and docs.
… functions (#3655) * ♻️ ✅ Add function for wesson current profile relation and add unit test * ✨ Add Wesson internal inductance calculation and corresponding unit test * ✨ Add Menard plasma internal inductance calculation and corresponding unit test * ✨ Add Wesson normalized beta limit calculation and corresponding unit test * ✨ Add calculate_beta_norm_max_original method and corresponding unit test * ✨ Add Menard normalized beta calculation method and corresponding unit test * ✨ Add E. Tholerus normalized beta upper limit calculation method and corresponding unit test
… functions (#3655) * ♻️ ✅ Add function for wesson current profile relation and add unit test * ✨ Add Wesson internal inductance calculation and corresponding unit test * ✨ Add Menard plasma internal inductance calculation and corresponding unit test * ✨ Add Wesson normalized beta limit calculation and corresponding unit test * ✨ Add calculate_beta_norm_max_original method and corresponding unit test * ✨ Add Menard normalized beta calculation method and corresponding unit test * ✨ Add E. Tholerus normalized beta upper limit calculation method and corresponding unit test
Code Enhancements and Refactoring:
process/physics.py
to improve readability by grouping related calculations into distinct sections with clear headers. For example, sections for "Plasma Current Profile" and "Normalized Beta Limit" were added.Physics
class for calculating Wesson, Menard, and Tholerus scaling laws for normalized beta and internal inductance. These methods encapsulate specific calculation logic, improving modularity and maintainability.Documentation Updates:
plasma_beta.md
andplasma_inductance.md
to provide additional context for the Wesson and Menard models, including their recommended usage and data sources.Unit Tests:
tests/unit/test_physics.py
for new methods, ensuring correctness of calculations for normalized beta and internal inductance models.Minor Changes:
physics.py
for better code clarity.Checklist
I confirm that I have completed the following checks: