Constraint 17 temporary fix
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 71
- Forks
- 27
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 33
Description
@timothy-nunn and I found that constraint 17 was no longer behaving as expected after #4299. In #4406 a temporary fix has been added to revert constraint 17 back to it's working state:
Reverts constraint 17 to pre-#4299.
The issue is that constraint 17 used to be formatted as
Importantly, it used
pden_plasma_rad_mw. Now, the constraint usesf_p_plasma_separatrix_radwhich is calculated asHowever this uses
p_plasma_rad_mwwhich also includes the SOL radiationwhich is never accounted for in pden_plasma_rad_mw. This changed the constraint, making the problem harder to solve, and led to constant failures when running the
stellarator-heliastest.The diffs in the
stellarator-heliastest should revert it back to this file.Thanks @clmould for identifying constraint 17 was the problem!
This needs to be investigated by people with stellarator knowledge - was constraint 17 wrong all along? Does something need to change in the stellarator? Or with the new format of constraint 17?
@grmtrkngtn
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Compare constraint 17 in process/core/solver/constraints.py with its calculation in process/models/physics/physics.py and the radiation terms in process/models/stellarator/stellarator.py. Review the stellarator-helias test and its differences from the referenced MFILE, then determine with stellarator experts whether the constraint or stellarator calculation is correct. Done means the intended behavior is agreed and the test no longer fails under that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100