Hi!
How can we read Complex waveform at the sensors. I want to derive real and imaginary yielding Magnitude and Phase values of the oscillations.
Any suggestion would be highly appreciated.
Best regards,
Diwaker Jha
Hi!
How can we read Complex waveform at the sensors. I want to derive real and imaginary yielding Magnitude and Phase values of the oscillations.
Any suggestion would be highly appreciated.
Best regards,
Diwaker Jha
Hi Diwaker,
Magnitude and phase (and complex pressure) are concepts usually used for describing signals in the frequency domain. As k-Wave models pressure in the time domain it is real. The complex values come from taking the Fourier transform of the time series.
You could find magnitude and phase values directly using k-Wave if you used a sinusoidally varying source, by comparing the input and output time series (both sinusoids) and seeing what the difference is in magnitude and phase.
Hope that helps,
Ben
Hey,
I faced the same issue and I found a dirty "hack" but only for harmonic signals:
Let your initial source be like " A*sin(f*t + P)" then you can create another simulation with a source: "A*cos(f*t + P)" and when you read the data you can mix them simply like z = a + ib.
Hope it is clear enough, it did the trick for me, obviously it is quite hacky but maybe it can help for simple wave simulation (as I was facing myself).
Ciao
You must log in to post.