Skip to main content

An extension to the Magpylib library, providing magnetic field analysis for soft materials and demagnetization of hard magnets.

Project description

magpylib-material-response

Code style: black

Warning This package is experimental and in a very dynamic development phase. Breaking API changes may happen at any time.

Magpylib-Material-Response is an extension to the Magpylib library, providing magnetic field analysis for soft materials and demagnetization of hard magnets. Leveraging the Method of Moments, it calculates magnetic material response by meshing sources in an arbitrary number of unit elements.

Installation

Install from PyPi (not yet available)

$ pip install magpylib-material-response

or locally:

$ pip install -e .[code_style,testing]

Testing

Enter created folder then run tests:

$ flake8 .
$ black .
$ pytest

To use pre-commit:

$ git add *
# to apply to staged files
$ pre-commit run
# restage if changes
$ git add *
# to run on commits
$ pre-commit install
$ git commit -m 'Initial commit'

(package originally created by python-pkg-cookiecutter)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

magpylib-material-response-0.1.0a4.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file magpylib-material-response-0.1.0a4.tar.gz.

File metadata

File hashes

Hashes for magpylib-material-response-0.1.0a4.tar.gz
Algorithm Hash digest
SHA256 47cb5404eaf2dccb2d9879d0d7418b283b95269cf4f046d6bdf13c88cef003c0
MD5 0d9e63fb5144d01eb5bec9889e418b2e
BLAKE2b-256 ee2e3d890302931c9051178092e5ac77fe17ea6d3726b0f1e169b003b32b5c68

See more details on using hashes here.

File details

Details for the file magpylib_material_response-0.1.0a4-py3-none-any.whl.

File metadata

File hashes

Hashes for magpylib_material_response-0.1.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 ee322aa50272fe9ec30338253b4235d90ea84d7ff4f6cc82ef46ff61a2d1ea1f
MD5 dea8a57e7e77fc915b513e2434f9cb0b
BLAKE2b-256 3ea70f26bee729075bda94100cbebd26fc485cc9631d5477647673cf79c634d5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page