#magnetic #magnet #field #analytical #simulation

magba

Magnetic computation library for Rust

1 unstable release

0.1.0 Jan 27, 2025

#253 in Science

Download history 192/week @ 2025-01-25 29/week @ 2025-02-01 6/week @ 2025-02-08 15/week @ 2025-02-15

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