-
Notifications
You must be signed in to change notification settings - Fork 17
Create physics inductance class #4085
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 statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4085 +/- ##
==========================================
+ Coverage 46.49% 46.56% +0.06%
==========================================
Files 124 124
Lines 28955 28974 +19
==========================================
+ Hits 13464 13491 +27
+ Misses 15491 15483 -8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…ss methods and remove redundant static methods
…and PlasmaInductance class for improved clarity and maintainability
…s for improved organization and maintainability
…esson and Menard relations
ad631d1 to
9a6bf37
Compare
| MENARD = 2 | ||
|
|
||
|
|
||
| class PlasmaInductance: |
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.
Can we add a run() method to this model? Then we could move some of the calculations into it. I think we might be able to move these calculations into the run method:
ind_plasma_internal_norm_wessonind_plasma_internal_norm_menardind_plasma_internal_norm_iter_3
You probably could't move ind_plasma_internal_norm quite yet because it is used later on in physics.
process/physics.py
Outdated
| # Calculate ind_plasma_internal_norm based on i_ind_plasma_internal_norm | ||
| try: | ||
| model = IndInternalNormModel( | ||
| int(physics_variables.i_ind_plasma_internal_norm) | ||
| ) | ||
| physics_variables.ind_plasma_internal_norm = ( | ||
| ind_plasma_internal_norm_calculations[ | ||
| int(physics_variables.i_ind_plasma_internal_norm) | ||
| ] | ||
| self.inductance.get_ind_internal_norm_value(model) | ||
| ) | ||
| else: | ||
| except ValueError: |
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.
Can you move all of this logic into a method of PlasmaIndustance so that here you just do
physics_variables.ind_plasma_internal_norm = self.inductance.calculate_ind_plasma_internal_norm(...)…ance class and streamline execution with run method
Description
Checklist
I confirm that I have completed the following checks: