#magnetic #magnet #field #analytical #simulation

magba

Magnetic computation library for Rust

1 unstable release

new 0.1.0 Jan 27, 2025

#229 in Science

Download history 183/week @ 2025-01-24

183 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