Skip to content

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.

License

Notifications You must be signed in to change notification settings

iamartineza/biosspheres

Biosspheres

A Python-based solver for Laplace and acoustic 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

How to use

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

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.

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).

matplotlib

Library used in the examples for plotting.

About

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.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published