Tearing - FEATURE - Add critical resonant field calculations to the tearing workflow - #415
Tearing - FEATURE - Add critical resonant field calculations to the tearing workflow#415ebursch wants to merge 10 commits into
Conversation
Sounds like this should be marked draft until this is done
"Should" is scary - benchmark it! There is a benchmark script for comparing to fortran - modify that for your needs (using scratch scripts - no need to commit run scripts)
Mark this as draft until the IO and benchmarks are done then ping us for reviews. You can make a "Task" type issue describing future plans (and assign yourself) so we have it on record as work in progress. |
Pull request was converted to draft
Review (combining my findings with Claude's)Structure is sound and Cole Eq. 62 is the right target. Physics claims below were checked numerically against a DIII-D-like 2/1 Checked, no action needed
Blocking
Should fix
Example is internally inconsistent
Separately, Merge readiness
Cleanup
Hygiene
SummaryCore calculation holds up better than expected: conventions consistent, branch lands where it should, α is a 4% effect. Before sign-off I'd want the item-1 test, κ̂, the example's viscous_input_type mismatch plus a re-run figure, and conflicts resolved with a fresh harness run. Cleanup can ride along. Drafted with assistance from Claude Code; physics verified numerically against origin/feature/b_crit_calculation. |
|
Chiming in without having read all of the more thorough review 😝
|
Release note
Allows users to calculate the critical resonant field required for tearing at a rational surface. The model is based on the simple torque balance model in Cole and Fitzpatrick PoP 2006. Resolves issue #371. Main user input not already present in a Tearing.jl run is supplying viscosity information. This can be done either as angular momentum diffusivity or a direct magnetic Prandtl number. Other improvements in progress: #416
Regression report