Fullwave 2.5: Ultrasound wave propagation simulation with heterogeneous power law attenuation modelling capabilities
Fullwave 2.5 is a Python package for high-fidelity ultrasound wave propagation simulation with the following features:
- State-of-the-art attenuation modelling capabilities for ultrasound wave propagation in complex biological tissues
- Heterogeneous power law attenuation (
$\alpha=\alpha_0 f^\gamma$ ) modeling, where both the attenuation coefficient$\alpha_0$ and exponent$\gamma$ can vary spatially.
- Heterogeneous power law attenuation (
- High-performance simulation engine
- High accuracy staggered-grid finite-difference time-domain (FDTD) scheme (8th-order in space and 4th-order in time).
- 2D and 3D ultrasound wave propagation simulation.
- Multiple GPU execution support.
- Easy-to-use Python interface with CUDA/C backend
- Python wrapper for easy usability and extensibility, with the core simulation engine implemented in CUDA/C for high performance on NVIDIA GPUs.
| Computational medium | Wave propagation |
|---|---|
![]() |
![]() |
Building upon the original Fullwave 2 simulator, Fullwave 2.5 enhances its capabilities to model ultrasound wave propagation in media where both the attenuation coefficient and exponent can vary spatially. This enables more accurate simulations of biological tissues, which often exhibit complex attenuation behaviours that cannot be captured by uniform exponent models.
The library is designed with a Python wrapper for ease of use and extensibility, while the core simulation engine is implemented in CUDA/C to leverage high-performance computing on NVIDIA GPUs. Fullwave 2.5 supports 2D and 3D simulations, including multi-GPU execution for enhanced performance.
Fullwave 2.5 models multiple relaxation processes to approximate frequency-dependent power-law attenuation in heterogeneous media. It solves the stretched-coordinate pressure-velocity formulation using a staggered-grid finite-difference schemes with 8th-order accuracy in space and 4th-order accuracy in time. The formulation is expressed as follows:
The stretched-coordinate derivatives, denoted by
The following figure illustrates the performance of the attenuation modeling in Fullwave 2.5.
The graph shows a comparison of the target power-law attenuation
Fullwave 2.5 is developed and maintained by Pinton Lab at the University of North Carolina at Chapel Hill.
If you use Fullwave 2.5 in your research, please cite this repository as:
@software{Sode2025-fullwave25,
author = {Sode, Masashi and Pinton, Gianmarco},
title = {{Fullwave 2.5: Ultrasound wave propagation simulation with heterogeneous power law attenuation modelling capabilities}},
year = {2025},
month = oct,
doi = {10.5281/zenodo.17497690},
url = {https://github.com/pinton-lab/fullwave25},
version = {v1.0.7}
}
@ARTICLE{Pinton2021-fullwave2,
title = "A fullwave model of the nonlinear wave equation with multiple relaxations and relaxing perfectly matched layers for high-order numerical finite-difference solutions",
author = "Pinton, Gianmarco",
month = jun,
year = 2021,
copyright = "http://creativecommons.org/licenses/by/4.0/",
archivePrefix = "arXiv",
primaryClass = "physics.med-ph",
eprint = "2106.11476"
}- This system operates in a Linux environment.
- This simulation requires an NVIDIA GPU to execute.
- You may need multiple GPUs for 3D simulation.
-
We recommend setting up an SSH key for GitHub, if you haven't done already. The repository changes over time to fix bugs and add new features. Cloning through SSH is more convenient than HTTPS in the long run.
- for ssh key generation
- for ssh key registration to your github account
- please see: Adding a new SSH key to your GitHub account
-
after that, you can clone the repository through
git clone git@github.com:pinton-lab/fullwave-python.git
- If you are not familiar with the tools below, please refer to the provided links.
pip install fullwave25We use uv for package project and virtual environment management.
If uv is not installed, run below.
curl -LsSf https://astral.sh/uv/install.sh | shRun below to install the development environment.
git clone git@github.com:pinton-lab/fullwave-python.git
cd fullwave-python
make install-all-extras # for running examples
# or
make install # for the core library installationTo test the installation, run
make testPlease start from example_simple_plane_wave.ipynb.
or try the Google Colab tutorial:
Here are the main steps to run the Fullwave simulation
- Define the computational grid.
- Define the properties of the acoustic medium.
- Define the acoustic source.
- Define the sensor.
- Execute the simulation.
- after the installation
- make a directory for your simulation under your favorite path.
- e.g.
examples/my_simulation/
- e.g.
- make a
.pyfile or copy the example files below to use the boilerplate.- 2D plane wave
- 3D plane wave
- after that follow Usage 2D to define the simulation code.
Please see the following examples for more advanced usage.
-
2D plane wave
- Basic usage
- Linear transducer
- Convex transducer
-
3D plane wave
-
Basic usage
- Simple plane wave in 3D
Computational medium 
x-y slice propagation x-z slice propagation 

- Simple plane wave in 3D with air inclusion
Computational medium with air inclusion 
x-y slice propagation x-z slice propagation 

- Simple plane wave in 3D
-
-
Medium builder usage
- Medium builder is a utility to create computational medium from simple geometric operations. This is especially useful when you want to create complex heterogeneous media.
- simple medium builder usage
- simple medium builder usage with abdominal wall
- medium builder in 3D
- The simulation grid is defined as follows:
- (x, y, z) = (depth, lateral, elevational).
- This order is due to the efficiency of the multiple-GPU execution.
- Multi-GPU domain decomposition is processed in the depth dimension.
- The index of the input coordinates (i.e. the acoustic source location) is defined in C-array order (i.e. row-major) within the simulation, regardless of your setup. This is to improve the efficiency of multi-GPU development.
- This might be confusing, so please be careful when you define the source and source signal definition.
- (x, y, z) = (depth, lateral, elevational).
- GPU memory requirement
- A 3D simulation requires a lot of GPU memory.
- Please reduce the grid size or use multiple GPUs if you run out of memory.
- You can check GPU memory usage with the 'nvidia-smi' or 'nvtop' commands.
- A 3D simulation requires a lot of GPU memory.
- Multi-GPU execution
- The current implementation supports multiple GPU execution in 2D and 3D simulations.
- Our implementation demonstrates linear performance scaling with the number of GPUs.
- Before 3D simulation:
- If you want to run a 3D simulation, it is recommended that you start with a 2D simulation first to understand the basic usage.
- The 3D simulation code is similar to the 2D code, but some plot functions are unavailable in 3D.
- The 3D simulation takes longer to run, so starting with 2D will help you debug your code faster.
- Contributions are welcome!
- When developing something new, please create a new branch such as
TYPE/BRANCH_NAME.- TYPE can be
feature,bugfix,hotfix,docs,refactor,release,test, orexperiment. BRANCH_NAMEshould be descriptive of the feature or fix you are working on.- see also: GitHub Branching Name Best Practices
- TYPE can be
- Please write clear and concise commit messages.
- please see CONTRIBUTING.md for more details.
- Masashi Sode (GitHub: MasashiSode)
- Gianmarco Pinton (GitHub: gfpinton)






