ianheimbuch / tusx

An open-source toolbox to perform acoustic simulations using medical images for transcranial ultrasound experiments
BSD 3-Clause "New" or "Revised" License
12 stars 0 forks source link

TUSX simulate question #2

Open AbeeChang opened 2 years ago

AbeeChang commented 2 years ago

Dear Sir I am a student from Taiwan. Because my research is about ultrasound transcranial therapy.

I have a few questions I want to ask:

  1. Can the temperature of the skull during HIFU sonication be simulated?
  2. Can the transducer geometry, number of elements and aperture size be changed? 3.Can I model a non-helmet-shape transducer and how? 4.How can I calculate the peak intensity at the focus.

Thank you very much

Chang

wang2651 commented 1 year ago

Hello, how much memory does it take to run this code? I was running with matlab and showed that ’out of memory‘

ianheimbuch commented 1 year ago

Hello, how much memory does it take to run this code? I was running with matlab and showed that ’out of memory‘

I am going to assume you are referring to the tutorial, tusx_sim_setup_tutorial.m.

Memory usage with TUSX depends on the size of the volume provided and the parameters requested. In general, higher scale values significantly increase memory requirements. Certain processing steps also take significantly more memory than others. One step, set by the name-value parameter reorientToGrid significantly increases memory requirements, but the step also significantly improves results for trajectories not orthogonal to the MRI/CT volume's grid. But in cases where your trajectory is orthogonal to the grid (i.e. scalpLocation and ctxTarget parameters differ by only one element), there is no need to run the reorientToGrid step.

So to run the tutorial tusx_sim_setup_tutorial.m with three different parameter choices, I measured the following memory (RAM) requirements to run Lines 1-101:

reorientToGrid = true;  initialSmooth = true;  32 GB
reorientToGrid = false; initialSmooth = true;  14 GB
reorientToGrid = false; initialSmooth = false; 13 GB
(Test memory: DDR4 SDRAM)

So if you just want to test out the tutorial, feel free to set reorientToGrid to false. However, I strongly suggest you keep reorientToGrid to true for any real experiments.