Repository navigation
WIP: TF Temperature margin improvements: calculation and de-discombobulation - #4689
Open
CoronelBuendia wants to merge 29 commits into
Open
CoronelBuendia wants to merge 29 commits into
CoronelBuendia wants to merge 29 commits into
Conversation
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4689 +/- ##
==========================================
- Coverage 50.28% 50.25% -0.03%
==========================================
Files 181 181
Lines 30532 30627 +95
==========================================
+ Hits 15353 15392 +39
- Misses 15179 15235 +56 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
CoronelBuendia
force-pushed
the
matti/4628-alternative-T-margin
branch
from
October 16, 2026 13:09
d5a5cc4 to
b431ce8
Compare
Contributor
Author
|
I can't yet explain the stellarator regression failures. I thought all I did there was rename |
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.
Description
Closes #4628, changing T_margin > T_margin_min to j_tf_wp < j_tf_wp_temp_margin
Closes #4687, removing duplicate/obsolete variables, and removing the inconsistent calculation of T margin and critical current density in CROCO TF coils.
Closes #3674 (for my naïve updating of obsolete variables in the input file given in the issue, this PR does not run into the error, but does fail to converge pretty quickly. Needs more testing to prove it works better.)
Summary of naming / refactoring changes:
temp_marginvariable ontfcoiltmargminvariable (applied to both CS and TF coils)temp_tf_superconductor_margin_min(input) temperature margin associated with constraint 36temp_tf_superconductor_marginactual temperature marginj_tf_wp_temp_margin : allowable TF coil winding pack current density, for specified temperature margin (A/m²), in line withj_tf_wp_critical(eqcon 33) andj_tf_wp_quench_heat_max(eqcon 35)Summary of technical changes:
calculate_superconductor_temperature_marginfrom an unbounded Newton root-finding to a bounded least squares optimisation with a check on the minimum value ~ 0.I have not looked at the CS coil, but it may benefit from similar treatment.
Checklist
I confirm that I have completed the following checks: