-
Notifications
You must be signed in to change notification settings - Fork 17
972 pf power supplies accounting 2 #4089
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
base: main
Are you sure you want to change the base?
Conversation
…ly and storage losses. Added their implementation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4089 +/- ##
==========================================
+ Coverage 46.46% 46.53% +0.06%
==========================================
Files 122 124 +2
Lines 28838 28965 +127
==========================================
+ Hits 13401 13480 +79
- Misses 15437 15485 +48 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@j-a-foster I've pushed my changes here for your review |
chris-ashe
left a comment
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.
Noticing quite a few large regression changes. Have made some initial minor comments
Unsurprisingly it has changed the PF power profile, though has it changed the PF current profile diagram in plot_proc?
| This is the standard inductive energy expression: | ||
|
|
||
| $$ | ||
| E = \frac{1}{2} I^T M I |
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.
What is the superscript T in this case?
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.
It represents the transpose of the vector of currents
|
|
||
| $$ | ||
| ELoss_{ps,n} = | ||
| \frac{k_{ps}}{2} |
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.
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'll add @mkovari to review since he made the original issue |
|
Should've fixed all subscripts in docs now. |
timothy-nunn
left a comment
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.
Mainly comments on index names
| # pfcoil_variables.n_pf_cs_plasma_circuits : total number of PF coils (including Central Solenoid and plasma) | ||
| # plasma is #n_pf_cs_plasma_circuits, and Central Solenoid is #(pfcoil_variables.n_pf_cs_plasma_circuits-1) | ||
| # plasma is #n_pf_cs_plasma_circuits, and Central Solenoid is #(pfcoil_variables.n_pf_cs_plasma_circuits-1) | ||
| # pfcoil_variables.ind_pf_cs_plasma_mutual(i,j) : mutual inductance between coil i and j |
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 remove the dead code while we are making edits here
timothy-nunn
left a comment
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.
Thanks Graeme. Happy with the code, will approve and merge when the others reviewers are happy.
Description
Updates pfpwr equation to account for additional components in pf power management: busbar, power supply and storage system.
Checklist
I confirm that I have completed the following checks: