Hi,
I would like to simulate a structure with time varying properties. For example I have a fixed source, emitting a sine wave and in the medium I have a moving disc.
thanks
Hi,
I would like to simulate a structure with time varying properties. For example I have a fixed source, emitting a sine wave and in the medium I have a moving disc.
thanks
Unfortunately there is no direct way to assign time-varying medium properties in the current release (without modifying the source code). For the simulation you mention, one possibility would be to move the source rather than the medium, similar to the doppler effect example in the toolbox.
Brad.
Unfortunately I need a time varying reflection in the medium
Thanks
Hi,
would you give me a hint where can I start modifying the source code to deal with time-varying medium properties. For example, I have a body moving inside the medium and I want to model the movement of the body inside the computational grid.
Thanks,
Hi bashjokh,
In the current version of k-Wave (V1.0), there is no way to change the medium properties over time. However, a stationary source and a moving reflector can also be modelled as a moving source and a stationary reflector, in which case you could look at the Doppler Effect example.
If you are comfortable with MATLAB, you could also try changing the simulation functions directly to allow the values of medium.sound_speed and medium.density to change over time. For example, you could try shifting the medium properties at the start of the time loop using circshift
(the time loops starts around line 741 in kspaceFirstOrder2D
).
Hope that helps,
Brad.
I was wondering if it is possible to change the source code to include time varying medium. The problem is that the governing equations will change and therefore almost all the equations in the source code need to be modified.
Do you have any suggestion how to change the governing equations and use kspace?
Thanks for your time,
Best regards,
Babak
Hi Babak,
Unfortunately this is non-trivial, and not something that we are currently working on. Best of luck!
Brad.
You must log in to post.