Skip to main content

Acoustics toolbox for time domain acoustic and ultrasound simulations in complex and tissue-realistic media.

Project description

k-wave-python

Support Documentation Status codecov

A Python implementation of k-Wave — an acoustics toolbox for time-domain simulation of acoustic wave fields. Includes a pure NumPy/CuPy solver (backend="python") and an interface to the pre-compiled k-Wave C++ binaries (backend="cpp") with NVIDIA GPU support (sm 5.0–9.0a).

Mission

Increase the accessibility and reproducibility of k-Wave simulations for medical imaging, algorithmic prototyping, and testing.

Getting started

A collection of examples covers common simulation scenarios. Run any example locally:

uv run examples/ivp_homogeneous_medium.py

No GPU required — all examples run on CPU with NumPy.

Installation

Using uv (recommended):

uv add k-wave-python

Or with pip:

pip install k-wave-python

Development

Development instructions can be found here.

Related Projects

  1. k-Wave: A MATLAB toolbox for the time-domain simulation of acoustic wave fields.
  2. j-wave: Differentiable acoustic simulations in JAX.
  3. ADSeismic.jl: a finite difference acoustic simulator with support for AD and JIT compilation in Julia.
  4. stride: a general optimisation framework for medical ultrasound tomography.

Documentation

The documentation for k-wave-python can be found here.

Citation

@software{k-Wave-Python,
author = {Yagubbayli, Farid and Sinden, David and Simson, Walter},
license = {GPL-3.0},
title = {{k-Wave-Python}},
url = {https://github.com/waltsims/k-wave-python}
}

Contact

e-mail walter.a.simson@gmail.com.

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

k_wave_python-0.6.1.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

k_wave_python-0.6.1-py3-none-any.whl (217.7 kB view details)

Uploaded Python 3

File details

Details for the file k_wave_python-0.6.1.tar.gz.

File metadata

  • Download URL: k_wave_python-0.6.1.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.9

File hashes

Hashes for k_wave_python-0.6.1.tar.gz
Algorithm Hash digest
SHA256 c82b46fede3755d7dd284aa0994510752017923839f58e0f1595864718509927
MD5 8ecc845eddccc5fb68c680f608902992
BLAKE2b-256 eec34720ebf1871cff0b4a8a7abc461a1ed84fa50acf0961fed8e1b0c9748c68

See more details on using hashes here.

File details

Details for the file k_wave_python-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for k_wave_python-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a2eb6d7d16c1704d0c7e6549179bb978871ce17e05d9396343f0dd4f536264a9
MD5 35a6e89d730231a7633e3c5aadb45fac
BLAKE2b-256 7e44f1115ef0e16bdb15ae7607d7798e691f4ee15fc068b3981df6dc32174743

See more details on using hashes here.

Supported by

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