Conversation
…mat across all modules Add standardized paper citations throughout the codebase using the format: [Lead Author Last Name, Journal, Year Page] Changes: - Vacuum module: Add citations to Chance 1997 and 2007 papers for equations and algorithms in Kernel2D.jl, Vacuum.jl, VacuumFromEquilibrium.jl - ForceFreeStates module: Standardize Glasser 2016 citations in EulerLagrange.jl, Free.jl, Mercier.jl, Fourfit.jl, and Sing.jl - PerturbedEquilibrium module: Add Park et al. citations (2007-2009) to ResponseMatrices.jl, SingularCoupling.jl, and FieldReconstruction.jl This improves traceability between theory papers and implementation, making it easier for users to understand the mathematical foundation of the algorithms. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…s throughout Vacuum, ForceFreeStates, and PerturbedEquilibrium modules Enhance code documentation with specific equation and section references from key papers: Vacuum module (Kernel2D.jl): - Add eq. 36-38, 41-42, 44, 51, 73, 76 citations for Green's function derivatives, Legendre parameters, Simpson integration, and Lagrange polynomials - Improve comments on coordinate transformations and coupling terms - Clarify physical interpretation of each computation step ForceFreeStates module: - Fourfit.jl: Add eq. 29, A5-A7 citations for nonsingular matrix forms and Schur complement reduction from [Glasser Phys. Plasmas 2016 112506 Appendix A] - Sing.jl: Add eq. 24 citation for Euler-Lagrange equation derivative du/dψ PerturbedEquilibrium module: - ResponseMatrices.jl: Add eq. 4 citations from [Park Phys. Plasmas 2009 056115] for normal magnetic field computation and singular factor definition - Add Section II citation from [Park Phys. Plasmas 2007 052110] for physical interpretation of displacement-to-field conversion - FieldReconstruction.jl: Add eq. 8-10 citations from [Park Phys. Plasmas 2007 052110] for ideal MHD relations computing contravariant field components (b^ψ, b^θ, b^ζ) These additions make it much easier to trace implementation back to theoretical foundations and verify correctness of numerical algorithms. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
jhalpern30
left a comment
There was a problem hiding this comment.
Looks good. Note I also added full deprecation of is_closed_toroidal since this PR referenced some equations specific to that and it was removed from the WallGeometry struct so I think it only partially implemented anyway
Code Review - PR #155: CitationsThis PR standardizes citation format and adds specific equation references throughout the codebase. The changes improve traceability between theory and implementation. Positive Aspects
Issues Found1. Type annotation removal in Vacuum.jl:343 (Minor)- xzpts = zeros(Float64, inputs.mtheta, 4)
+ xzpts = zeros(inputs.mtheta, 4)The explicit 2. Incomplete citation in VacuumFromEquilibrium.jl:38-41 (Minor documentation)The reference section was reformatted but the actual content "Matches GPEC's ahg_write..." appears disconnected from the 3. Potential behavior change with
|
This branch adds more specific citations.
I let Claude read the foundational papers and put specific citations where possible.
It didn't find too many, which is good - didn't go crazy making things up.
I also standardized the citation style, which cleans up the various Chance references we already had there.