Metadata-Version: 2.1
Name: biosspheres
Version: 0.1.1a1
Summary: Python package to obtain Helmholtz or Laplace boundary integral operator on spheres using spherical harmonics. It also implements the Multiple Traces Formulation to solve scattering transmission problems in an ensemble of spheres.
Home-page: https://github.com/iamartineza/biosspheres
License: BSD-3-Clause
Author: Isabel Martínez
Author-email: iamartinez@uc.cl
Requires-Python: >=3.9,<3.13
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Provides-Extra: all
Provides-Extra: jupyter
Provides-Extra: plotting
Requires-Dist: ipykernel (>=6.0) ; extra == "jupyter" or extra == "all"
Requires-Dist: ipython (>=7.0) ; extra == "jupyter" or extra == "all"
Requires-Dist: jupyterlab (>=3.0) ; extra == "jupyter" or extra == "all"
Requires-Dist: matplotlib (>=3.8) ; extra == "plotting" or extra == "jupyter" or extra == "all"
Requires-Dist: notebook (>=7.2.2) ; extra == "jupyter" or extra == "all"
Requires-Dist: numpy (>=1.26.4)
Requires-Dist: pyshtools (>=4.10.4)
Requires-Dist: scipy (>=1.11.4,<1.14.0)
Project-URL: Repository, https://github.com/iamartineza/biosspheres
Description-Content-Type: text/markdown

# Biosspheres

A Python-based solver for Laplace and Helmholtz scattering by
multiple disjoint spheres, utilizing spherical harmonic
decomposition and local multiple trace formulations.

Its main routines are for:
- Computing boundary integral operators evaluated and tested
against spherical harmonics.
- Building Calderón operators.
- Solving transmission problems using the multiple trace formulation. 

Tested with **python 3.9**

# Installation

We recommend to install the package in its own python environment.

## Via pip

The package is available in TestPyPi.

For the minimum installation:

`pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ biosspheres`

For the installation including the dependencies necessary for running jupyter notebooks:

`pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ biosspheres[all]`

## Docker

The biosspheres-notebook Docker image is configured to run biosspheres with Python 3.10. This can be done running:

```
docker run -v $(pwd):/root/shared -w "/root/shared" -p 8888:8888 pescapil/biosspheres-notebook
```

## Additional comments

The file `requirements.txt` has the list of required package for biosspheres to work, 
they can be installed using `pip install -r requirements.txt`

# How to use

See the Jupyter notebook examples in the folder "notebooks" to see how biosspheres can be used.

# Contributing

Read the file `CONTRIBUTING.md` and also see the Jupyter notebooks.


# Acknowledgments

## External packages used in biosspheres

### numpy

Library for arrays, vectors and matrices in dense format, along
with routines of linear algebra, norm computation, dot product,
among others. It also computes functions like sine, cosine, exponential, etc.

- [Web page](https://numpy.org/).
- [GitHub repository](https://github.com/numpy/numpy).
- [Documentation](https://numpy.org/doc/stable/).

### scipy

- [Web page](https://scipy.org/).
- [GitHub repository](https://github.com/scipy/scipy).
- [Documentation](https://docs.scipy.org/doc/scipy/).

#### scipy.special

Library for special functions, as the spherical Bessel and
spherical Hankel functions.

#### scipy.sparse

Library for sparse arrays.

### pyshtools

All Legendre's functions are computed using the package pyshtools 
([documentation of pyshtools](https://shtools.github.io/SHTOOLS/index.html)).

- [Web page and documentation](https://shtools.github.io/SHTOOLS/).
- [GitHub repository of SHTOOLS](https://github.com/SHTOOLS/SHTOOLS).

### matplotlib

Library used in the examples for plotting.

- [Web page](https://matplotlib.org/).
- [GitHub repository](https://github.com/matplotlib/matplotlib).
- [Documentation](https://matplotlib.org/stable/users/index.html).

