Algorithm 1.
Implementation of the tumour-induced brain deformation model.
| 1. Initialise: , , for |
| 2. Compute tissue percentage by equation (2.14) |
| 3. while do |
| 4. Compute time step , where and are time steps constrained by the numerical stability of equations (2.1) and (2.11) |
| 5. Compute the pressure by solving equations (2.15) and (2.16) |
| 6. Compute the deformation field by solving equations (2.5) and (2.7) |
| 7. Update the tumour state by solving equations (2.1) and (2.2) |
| 8. Update the brain tissue by solving equations (2.11) and (2.12) |
| 9. Recompute the tissue percentage by equation (2.14) |
| 10. |
| 11. end while |