Skip to content

Commit

Permalink
update the README (#28)
Browse files Browse the repository at this point in the history
* update the README

* bump version
  • Loading branch information
dgarnier authored Jul 2, 2023
1 parent 16900e2 commit 1082ad3
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
"diffEditor.codeLens": true,
"python.formatting.provider": "black",
"python.linting.flake8Enabled": true,
"python.linting.enabled": true
"python.linting.enabled": true,
"markdown-mermaid.languages": ["mermaid"],
"map.preview.style.polygon.stroke.width": ""
}
44 changes: 40 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
[![Status](https://img.shields.io/pypi/status/inductance.svg)][pypi status]
[![Python Version](https://img.shields.io/pypi/pyversions/inductance)][pypi status]
[![License](https://img.shields.io/pypi/l/inductance)][license]

[![Read the documentation at https://inductance.readthedocs.io/](https://img.shields.io/readthedocs/inductance/latest.svg?label=Read%20the%20Docs)][read the docs]
[![Tests](https://github.com/dgarnier/inductance/workflows/Tests/badge.svg)][tests]
[![Codecov](https://codecov.io/gh/dgarnier/inductance/branch/main/graph/badge.svg)][codecov]

[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]

Expand All @@ -23,11 +21,46 @@ This is a python library to calculate inductance. Mostly for the purposes of cal

## Features

- TODO
- Self-inductance formulas

- self inductance of circular, circular hollow, and rectangular section by Maxwell's approximation
- Lyle's approximation for thick coil solenoid self inductances to 4th and 6th order.
- Butterworth's approximation for long solenoids
- Lorentz's perfect analytic solution for current sheet solenoids
- Babic and Akyel's approximation for thin solenoids

- Mutual-inductance formulas

- mutual inductance of filaments (Maxwell)

- Filamentary models

- utility functions to create filament arrays from rectangular definitions of coils and subcoils
- calculation for filament array mutual inductance
- calculation of filament array self inductance

- Green's functions

- calculation of Green's functions for Psi, Br, and Bz from filamented coils to points
- with Numba, calculation of green's functions for arbitrary grids of points
- calculation fo Green's functions for coil forces

- Arbitrary coil shapes
- rudimentary support for arbitrary wire filament coil shapes

## Requirements

- TODO
_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.

It 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:

- python >= 3.8
- numpy >= 1.24
- numba >= 0.57

[numba]: https://numba.readthedocs.io/
[numpy]: https://numpy.org
[jax]: https://jax.readthedocs.io/

## Installation

Expand All @@ -53,6 +86,9 @@ _inductance_ is free and open source software.

## Issues

For now, this is a very early release. It is likely a new top level API will be
developed as the library matures.

If you encounter any problems,
please [file an issue] along with a detailed description.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "inductance"
version = "v0.1.1a3"
version = "0.1.1"
description = "Code for 2D inductance calculations"
authors = ["Darren Garnier <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 1082ad3

Please sign in to comment.