Skip to content

Add bioheatExact solver - #788

Open
rhh006 wants to merge 3 commits into
waltsims:masterfrom
rhh006:add-bioheat-exact
Open

rhh006 wants to merge 3 commits into
waltsims:masterfrom
rhh006:add-bioheat-exact

Conversation

@rhh006

@rhh006 rhh006 commented Oct 21, 2026 •

Copy link
Copy Markdown

Port MATLAB's bioheatExact function to k-Wave Python,

RetriggerView in GreptileConfidence Score: 4/5

Fix GPU input conversion before merging so the solver can accept its own GPU output.

Findings

  1. P1 GPU results cannot be reused ▶
  2. P2 Boundary assumptions are hidden ▶
  3. P2 Solver has no tests ▶

Summary

Adds bioheat_exact, a Fourier solver for constant-source Pennes heating.

  • bioheat_exact computes a temperature field at a chosen time.

Reviews (1) · Last reviewed commit: "Add bioheatExact solver" · Reviewed by Greptile

Port MATLAB's bioheatExact function to k-Wave Python,
Comment thread kwave/bioheatExact.py Resolved
Comment thread kwave/bioheatExact.py Resolved
Comment thread kwave/bioheatExact.py Resolved
@rhh006

rhh006 commented Oct 21, 2026

Copy link
Copy Markdown
Author

I don't currently have access to MATLAB for direct numerical validation, so testing against the original implementation would be appreciated. This was tested by recreating a small number of previously developed MATLAB scripts.

Updated bioheat_exact function to assume periodic boundary conditions and improved error handling for GPU execution.
basic test file for temperature simulation in homogeneous medium.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant