#magnetic #magnet #field #analytical #simulation

magba

Magnetic computation library for Rust

1 unstable release

0.1.0 Jan 27, 2025

#217 in Science

Download history 45/week @ 2025-01-21 162/week @ 2025-01-28 16/week @ 2025-02-04 19/week @ 2025-02-11

242 downloads per month

BSD-3-Clause

1.5MB
1K SLoC

Rust 1K SLoC // 0.1% comments Python 139 SLoC // 0.0% comments

Magba

License Crate Documentation


Magba is a performant analytical magnetic computation library for Rust.

To install, simply: cargo add magba.

A python interface for Magba is also available: Pymagba.

Features

  • Compute magnetic fields
  • Create magnetic sources and group them as collections
  • Move and rotate objects

Learn more at docs.rs.

Dependencies