-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add VerticalFieldConstraint
and function to estimate plasma equilibrium field
#3076
base: develop
Are you sure you want to change the base?
Conversation
Quality Gate passedIssues Measures |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3076 +/- ##
===========================================
+ Coverage 79.74% 79.79% +0.04%
===========================================
Files 227 227
Lines 25451 25465 +14
===========================================
+ Hits 20297 20320 +23
+ Misses 5154 5145 -9 ☔ View full report in Codecov by Sentry. |
|
is almost certainly irrelevant at the end of breakdown. | ||
""" | ||
k_term = 1.0 if kappa_95 is None else np.sqrt(2.0 / (1.0 + kappa_95**2)) | ||
return -MU_0_4PI * I_p / R_0 * (beta_p_th + 0.5 * l_i - 1.5 + np.log(8 * A * k_term)) |
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.
Could we have a couple line test for this to an expected result?
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.
I agree, could you add a test to test_rules_of_thumb?
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.
This might be a papercut change rather than something to address in this merge but I think that it would be good to have a bit more info in the top docstring for rules_of_thumb.
Otherwise just the minor comments.
Thermal poloidal beta | ||
l_i: | ||
Normalised internal inductance | ||
kappa: |
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.
kappa_95
is almost certainly irrelevant at the end of breakdown. | ||
""" | ||
k_term = 1.0 if kappa_95 is None else np.sqrt(2.0 / (1.0 + kappa_95**2)) | ||
return -MU_0_4PI * I_p / R_0 * (beta_p_th + 0.5 * l_i - 1.5 + np.log(8 * A * k_term)) |
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.
I agree, could you add a test to test_rules_of_thumb?
5a50acb
to
7574352
Compare
Linked Issues
Closes #{ID}
Description
Interface Changes
Checklist
I confirm that I have completed the following checks:
pytest tests --reactor
pre-commit run --from-ref develop --to-ref HEAD
sphinx-build -W documentation/source documentation/build