Skip to content

About

A unified framework for planetary magnetic field modeling in Julia.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

45 Commits

Folders and files

Repository files navigation

PlanetaryMagneticFields.jl

DOI

A unified framework for planetary magnetic field modeling in Julia.

PlanetaryMagneticFields.jl provides easy access to spherical harmonic models of planetary magnetic fields.

Quick Start

using Pkg; Pkg.add("PlanetaryMagneticFields")
using PlanetaryMagneticFields

models = available_models()
# Load a Jupiter magnetic field model by unique name
model = load_model(:JRM33; max_degree=13)
# Or use the convenience accessor
model = JRM33(max_degree=13)

# Evaluate the field at a position (1.5 Jupiter radii, 45° colatitude, 0° longitude)
r, θ, φ = 1.5, π/4, 0.0
B = model(r, θ, φ)  # Returns [B_r, B_θ, B_φ] in nanoTesla

# Time-Varying Models (i.e. IGRF for Earth)
using Dates

model = IGRF()
model(r, θ, φ, DateTime(2020))

Features

  • 🪐 Multi-planetary support: General type system and framework for magnetic field models
    • Available astronomical objects: Jupiter, Earth, Saturn, Mercury, Mars, Ganymede
      • Jupiter current sheet model

Elsewhere

  • MOP community code: community code that may be useful to the wider Jovian community

  • planetMagFields: access and analyze information about magnetic fields of planets in our solar system and visualize them in both 2D and 3D

  • JupiterMag: Python wrapper for a collection of Jovian magnetic field models written in C++ (see libjupitermag).

  • PSH: Planetary Spherical Harmonics community code

  • TsyganenkoModels.jl: Tsyganenko's models for Earth's magnetosphere

  • Saturn-Mag-Model: FORTRAN source code for a Saturnian magnetospheric empirical magnetic field model derived from Cassini magnetometer data

  • POT3D: High Performance Potential Field Solver to approximate the solar coronal magnetic field using observed photospheric magnetic fields as a boundary condition

  • SHTns & SHTns.jl: A high performance library for Spherical Harmonic Transform written in C

Data sources

About

A unified framework for planetary magnetic field modeling in Julia.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages