Hello,
I have a 3d simulation working fine with kspacefirstorder3D, but taking few hours to complete. I am trying to improve the code by running it on my GPU.
I only change on my code the function - replaced by kspacefirstorder3DG.
I don't understand how to control what happens inside this function which seems to do something different than before.
- 'kspacefirstorder3D' code gives me sensor data of 64 (elements) by 4468 (time)
- 'kspacefirstorder3DG' code gives me sensor data of 3200 by 4468. By plotting the RF I understood where the 3200 comes from:
3200 = 64 (elements) * 5 (size of element in kgrid) * 10 (repetitions of the simulation)
Here are my points :
1) Why is the simulation repeated 10 times? How can I ask for only one?
2) Why do I have 5 signals per element and not only one? Can I change this in the inputs? (I guess I can fix this by summing the 5 signals for each element, but how come it is different from kspacefirstorder3d?..)
Thank you very much for your answers and advice,
All the best,
Hanna
PS: The transducer is defined with kWaveTransducer.