Pymagnet

Latest version: v0.4.1

Safety actively analyzes 623760 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.3.6

Pymagnet is a collection of routines to calculate and plot the magnetic field due to arbitrary 2D and 3D objects, like cubes or cylinders, as well as complex non-convex structures stored in STL files.

The library can also calculate the magnetic forces and torques on one magnet due to all other magnets in the system.

**UPDATE:** Bug fixes

The approach assumes the magnets are uniformly magnetised, and fully transparent to magnetic fields. There are some drawbacks to this compared to Finite Element Methods (FEM), but with the advantage of significantly faster calculations.

The current version is written in Python with some speed up using [Numpy](https://numpy.org/) and [Numba](https://numba.pydata.org/), but the backend is being ported to [Rust](https://github.com/pdunne/magnet_rs) for improved performance.

0.3.4

Pymagnet is a collection of routines to calculate and plot the magnetic field due to arbitrary 2D and 3D objects, like cubes or cylinders, as well as complex non-convex structures stored in STL files.

The library can also calculate the magnetic forces and torques on one magnet due to all other magnets in the system.

**UPDATE:** Removed Jupyter notebooks from package to decrease the package size.

The approach assumes the magnets are uniformly magnetised, and fully transparent to magnetic fields. There are some drawbacks to this compared to Finite Element Methods (FEM), but with the advantage of significantly faster calculations.

The current version is written in Python with some speed up using [Numpy](https://numpy.org/) and [Numba](https://numba.pydata.org/), but the backend is being ported to [Rust](https://github.com/pdunne/magnet_rs) for improved performance.

0.3.3

Pymagnet is a collection of routines to calculate and plot the magnetic field due to arbitrary 2D and 3D objects, like cubes or cylinders, as well as complex non-convex structures stored in STL files.

The library can also calculate the magnetic forces and torques on one magnet due to all other magnets in the system.

**UPDATE:** force and torque methods now work for Mesh magnets

The approach assumes the magnets are uniformly magnetised, and fully transparent to magnetic fields. There are some drawbacks to this compared to Finite Element Methods (FEM), but with the advantage of significantly faster calculations.

The current version is written in Python with some speed up using [Numpy](https://numpy.org/) and [Numba](https://numba.pydata.org/), but the backend is being ported to [Rust](https://github.com/pdunne/magnet_rs) for improved performance.

0.3.2

Pymagnet is a collection of routines to calculate and plot the magnetic field due to arbitrary 2D
and 3D objects, like cubes or cylinders, as well as complex non-convex structures stored in STL
files. The library can also calculate the magnetic forces and torques on one magnet due to all other magnets in the system.

The approach assumes the magnets are uniformly magnetised, and fully transparent to magnetic fields.
There are some drawbacks to this compared to Finite Element Methods (FEM), but with the advantage of
significantly faster calculations.

The current version is written in Python with some speed up using [Numpy](https://numpy.org/) and
[Numba](https://numba.pydata.org/), but the backend is being ported to
[Rust](https://github.com/pdunne/magnet_rs) for improved performance.

0.2.0

Magnetic fields in for 2D and 3D magnets at arbitrary orientations now fully implemented.

See the examples and tutorial folders in the repository for examples.

0.1.0

Basic functionality has been enabled. Source and wheel packages are available.

The package downloaded from here can be installed using
`pip install pymagnet-0.1.0.tar.gz`

The same version on pipy can be installed using:
`pip install pymagnet`

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.