{"id":34827327,"url":"https://github.com/dgarnier/inductance","last_synced_at":"2025-12-25T15:20:26.726Z","repository":{"id":173759823,"uuid":"651165624","full_name":"dgarnier/inductance","owner":"dgarnier","description":"Python library for calculating inductances from coaxial loops (solenoids).","archived":false,"fork":false,"pushed_at":"2025-11-24T01:33:36.000Z","size":760,"stargazers_count":2,"open_issues_count":9,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-27T18:27:18.289Z","etag":null,"topics":["electro-magnetic","force","inductance","levitation","magnets","plasma"],"latest_commit_sha":null,"homepage":"https://inductance.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dgarnier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-08T16:34:07.000Z","updated_at":"2025-10-25T06:42:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"d0f35053-2ee6-49ba-8642-e03249c30b80","html_url":"https://github.com/dgarnier/inductance","commit_stats":null,"previous_names":["dgarnier/pysol","dgarnier/inductance"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/dgarnier/inductance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgarnier%2Finductance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgarnier%2Finductance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgarnier%2Finductance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgarnier%2Finductance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgarnier","download_url":"https://codeload.github.com/dgarnier/inductance/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgarnier%2Finductance/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28031591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-25T02:00:05.988Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["electro-magnetic","force","inductance","levitation","magnets","plasma"],"created_at":"2025-12-25T15:20:25.426Z","updated_at":"2025-12-25T15:20:26.719Z","avatar_url":"https://github.com/dgarnier.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inductance\n\n[![PyPI](https://img.shields.io/pypi/v/inductance.svg)][pypi]\n[![Status](https://img.shields.io/pypi/status/inductance.svg)][pypi]\n[![Python Version](https://img.shields.io/pypi/pyversions/inductance)][pypi]\n[![License](https://img.shields.io/pypi/l/inductance)][license]\n[![Read the documentation at https://inductance.readthedocs.io/](https://img.shields.io/readthedocs/inductance/latest.svg?label=Read%20the%20Docs)][read the docs]\n[![Tests](https://github.com/dgarnier/inductance/workflows/Tests/badge.svg)][tests]\n[![Codecov](https://codecov.io/gh/dgarnier/inductance/branch/main/graph/badge.svg)][codecov]\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white)][pre-commit]\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)][Ruff]\n\n[pypi]: https://pypi.org/project/inductance/\n[read the docs]: https://inductance.readthedocs.io/\n[tests]: https://github.com/dgarnier/inductance/actions?workflow=Tests\n[codecov]: https://app.codecov.io/gh/dgarnier/inductance\n[pre-commit]: https://github.com/pre-commit/pre-commit\n[Ruff]: https://github.com/astral-sh/ruff\n\nThis is a python library to calculate inductance. Mostly for the purposes of calcualting magnetically confined plasmas. It might someday actually contain some plasma physics, but lets not get too carried away.\n\n## Features\n\n- Self-inductance formulas\n\n  - self inductance of circular, circular hollow, and rectangular section by Maxwell's approximation\n  - Lyle's approximation for thick coil solenoid self inductances to 4th and 6th order.\n  - Butterworth's approximation for long solenoids\n  - Lorentz's perfect analytic solution for current sheet solenoids\n  - Babic and Akyel's approximation for thin solenoids\n\n- Mutual-inductance formulas\n\n  - mutual inductance of filaments (Maxwell)\n\n- Filamentary models\n\n  - utility functions to create filament arrays from rectangular definitions of coils and subcoils\n  - calculation for filament array mutual inductance\n  - calculation of filament array self inductance\n\n- Green's functions\n\n  - calculation of Green's functions for Psi, Br, and Bz from filamented coils to points\n    - with Numba, calculation of green's functions for arbitrary grids of points\n  - calculation fo Green's functions for coil forces\n\n- Arbitrary coil shapes\n  - rudimentary support for arbitrary wire filament coil shapes\n\n## Requirements\n\n_Inductance_ requires [_NumPy_][numpy] and uses [_Numba_][numba] for acceleration. It is written in mostly pure python referencing academic articles for calculating inductances by various methods, most of which rely on elliptic functions. _Inductance_ provides _Numba_ accelerated pure python elliptic functions.\n\nIt is possible to remove the dependence on Numba and get most of the functionality of _Inductance_. The plan is to provide different options, including with alternative accelerators, such as [_JAX_][jax]. For now, the requirements are:\n\n- python \u003e= 3.8\n- numpy \u003e= 1.24\n- numba \u003e= 0.57\n\n[numba]: https://numba.readthedocs.io/\n[numpy]: https://numpy.org\n[jax]: https://jax.readthedocs.io/\n\n## Installation\n\nYou can install _inductance_ via [pip] from [PyPI]:\n\n```console\n$ pip install inductance\n```\n\n## Reference\n\nPlease see the [reference] for details.\n\n## Contributing\n\nContributions are very welcome.\nTo learn more, see the [Contributor Guide].\n\n## License\n\nDistributed under the terms of the [MIT license][license],\n_inductance_ is free and open source software.\n\n## Issues\n\nFor now, this is a very early release. It is likely a new top level API will be\ndeveloped as the library matures.\n\nIf you encounter any problems,\nplease [file an issue] along with a detailed description.\n\n## Credits\n\nThis project was generated from [@cjolowicz]'s [Hypermodern Python Cookiecutter] template.\n\n[@cjolowicz]: https://github.com/cjolowicz\n[pypi]: https://pypi.org/\n[hypermodern python cookiecutter]: https://github.com/cjolowicz/cookiecutter-hypermodern-python\n[file an issue]: https://github.com/dgarnier/inductance/issues\n[pip]: https://pip.pypa.io/\n\n\u003c!-- github-only --\u003e\n\n[license]: https://github.com/dgarnier/inductance/blob/main/LICENSE\n[contributor guide]: https://github.com/dgarnier/inductance/blob/main/CONTRIBUTING.md\n[reference]: https://inductance.readthedocs.io/en/latest/reference.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgarnier%2Finductance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgarnier%2Finductance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgarnier%2Finductance/lists"}