Add Connerney et al. (1981, 2020) Jupiter magnetodisc current sheet model#13
Open
Add Connerney et al. (1981, 2020) Jupiter magnetodisc current sheet model#13
Conversation
Implement the Connerney et al. (1981, 2020) magnetodisc current sheet model for Jupiter's magnetosphere. This external field model provides the magnetic field contribution from the washer-shaped azimuthal current sheet near Jupiter's magnetic equator. Features: - CON2020() - Modern model with radial current (Connerney 2020) - CAN1981() - Original model without radial current - Three equation types: analytical (fast), integral (accurate), hybrid (default) - Coordinate transformations for tilted disc frame - Configurable parameters (inner/outer radii, thickness, tilt, current) Default parameters from Juno mission: - μ_i/2 = 139.6 nT (current intensity) - r0 = 7.8 Rⱼ (inner edge) - r1 = 51.4 Rⱼ (outer edge) - d = 3.6 Rⱼ (half-thickness) - Tilt: 9.3° toward 155.8° SIII longitude - Radial current: 16.7 MA References: - Connerney et al. (1981), J. Geophys. Res., 86(A10), 8370-8384 - Edwards et al. (2001), Planet. Space Sci., 49, 1115-1123 - Connerney et al. (2020), J. Geophys. Res., 125, e2020JA028138 https://claude.ai/code/session_01832e6uXkGU6WZZL7qnj6pU
- Use InternalFieldModel from GeoCotrans instead of custom ExternalFieldModel - Implement evalmodel() for CurrentSheetModel to integrate with GeoCotrans - Add getcsys() method for coordinate system handling - Remove MagneticModel wrapper (no longer needed with new architecture) - Simplify code from ~750 to ~400 lines - Update tests to match simplified API https://claude.ai/code/session_01832e6uXkGU6WZZL7qnj6pU
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.
Summary
This PR adds support for the Connerney et al. (1981, 2020) Jupiter magnetodisc current sheet model, which describes the magnetic field contribution from a washer-shaped azimuthal current sheet near Jupiter's magnetic equator. This is a key external field component for accurate Jupiter magnetosphere modeling.
Key Changes
New module
src/current_sheet.jl: Implements the complete Connerney current sheet model with:CurrentSheetModelstruct implementing theInternalFieldModelinterfaceCurrentSheetParametersfor configurable model parameters (current intensity, disc geometry, tilt angles, radial current)CurrentSheetEquationTypeenum supporting three calculation methods:Analytical: Fast Edwards et al. (2001) approximationsIntegral: Accurate Connerney et al. (1981) numerical integrationHybrid: Combines both methods based on position (default, recommended)Coordinate transformations: Implements conversions between SIII spherical coordinates and the tilted current sheet frame to handle the disc's tilt relative to Jupiter's spin axis
Field calculations:
Public API functions:
CON2020(): Creates the 2020 model with modern parameters and radial currentCAN1981(): Creates the original 1981 model for comparisonComprehensive test suite (
test/test_con2020.jl):Integration: Updated main module to export new model types and convenience functions
Notable Implementation Details
https://claude.ai/code/session_01832e6uXkGU6WZZL7qnj6pU