lodestone_core

Crates.iolodestone_core
lib.rslodestone_core
version0.2.3
sourcesrc
created_at2021-09-19 19:53:58.257644
updated_at2021-09-19 19:53:58.257644
descriptionUser friendly magnetic field calculations in Rust
homepagehttps://www.applied-magnetism.com/
repositoryhttps://github.com/pdunne/magnet_rs
max_upload_size
id453740
size193,712
Peter Dunne (pdunne)

documentation

README

Lodestone_Core

License: MPL 2.0 License: CC BY-SA 4.0 Continuous integration

Loadstone_Core is a Rust library for calculating the magnetic fields of any object or objects in 2D and 3D; along with any induced forces and torques.

This is a rewrite of a Python package pymagnet: Github, or PyPi.

Usage

Add this to your Cargo.toml:

[dependencies]
lodestone_core = "0.2"

Features

This code uses analytical expressions to calculate the magnetic field due to arbitrary magnets.

Currently, only 2D features are available

Licensing

Source code licensed under the Mozilla Public License Version 2.0

Documentation is licensed under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

This is a human-readable summary of (and not a substitute for) the license, adapted from CS50x. Official translations of this license are available in other languages.

You are free to:

  • Share — copy and redistribute the material in any medium or format.
  • Adapt — remix, transform, and build upon the material.

Under the following terms:

  • Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original
  • No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.

Commit count: 36

cargo fmt