<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>k-Wave User Forum &#187; Topic: Unusual Output Signals</title>
		<link>http://www.k-wave.org/forum/topic/unusual-output-signals</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:38:31 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.k-wave.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.k-wave.org/forum/rss/topic/unusual-output-signals" rel="self" type="application/rss+xml" />

		<item>
			<title>bencox on "Unusual Output Signals"</title>
			<link>http://www.k-wave.org/forum/topic/unusual-output-signals#post-331</link>
			<pubDate>Fri, 24 Feb 2012 10:54:52 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">331@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Eldhose,&#60;/p&#62;
&#60;p&#62;Sorry for the delay. A few questions.&#60;br /&#62;
(1) I'm not quite sure what you're trying to do, and which bits of the signal you don't believe. (Although I agree the oscillations at the front don't look right.)&#60;br /&#62;
(2) Have you tried smoothing the point source using &#60;code&#62;smooth&#60;/code&#62;?&#60;br /&#62;
(3) Why are the point source and bowl detector both to one side of the domain? It looks as though it's twice as wide as it needs to be. &#60;/p&#62;
&#60;p&#62;Other things you could try to aid diagnosis: (a) double the thickness of the PML, (b) halve the frequency. Do they make any difference?&#60;/p&#62;
&#60;p&#62;Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eldhochhan on "Unusual Output Signals"</title>
			<link>http://www.k-wave.org/forum/topic/unusual-output-signals#post-322</link>
			<pubDate>Wed, 22 Feb 2012 05:19:01 +0000</pubDate>
			<dc:creator>eldhochhan</dc:creator>
			<guid isPermaLink="false">322@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Ben,&#60;/p&#62;
&#60;p&#62;Any suggestions for the above problem?? What actually i am trying to explore is that when a source at let say 19mm away from the detector propagates a signal in a particular frequency. I need to check the frequency of the signals being captured by the detector placed 19mm away like whether it is the same frequency of the signals that was being propagated? Or how much is the loss??&#60;/p&#62;
&#60;p&#62;I have pasted the MATLAB code below and it would be really very helpful if u can help me.&#60;/p&#62;
&#60;p&#62;clear all;&#60;br /&#62;
close all;&#60;br /&#62;
clc;&#60;/p&#62;
&#60;p&#62;% =========================================================================&#60;br /&#62;
% SIMULATION&#60;br /&#62;
% =========================================================================&#60;/p&#62;
&#60;p&#62;% create the computational grid&#60;br /&#62;
Nx = 320;            % number of grid points in the x direction&#60;br /&#62;
Ny = 320;            % number of grid points in the y direction&#60;br /&#62;
Nz = 320;            % number of grid points in the z direction&#60;br /&#62;
dx = 6.52e-5;          % grid point spacing in the x direction [m]&#60;br /&#62;
dy = dx;            % grid point spacing in the y direction [m]&#60;br /&#62;
dz = dx;            % grid point spacing in the z direction [m]&#60;br /&#62;
kgrid = makeGrid(Nx, dx, Ny, dy, Nz, dz);&#60;/p&#62;
&#60;p&#62;% define the properties of the propagation medium&#60;br /&#62;
medium.sound_speed = 1500;                   % [m/s]&#60;br /&#62;
%medium.sound_speed(1:Nx/2, :) = 1800;       % [m/s]&#60;br /&#62;
%medium.density = 1000*ones(Nx, Ny, Nz);     % [kg/m^3]&#60;br /&#62;
%medium.density(:, Ny/4:end) = 1200;         % [kg/m^3]&#60;/p&#62;
&#60;p&#62;% create the time array&#60;br /&#62;
[kgrid.t_array, dt] = makeTime(kgrid, medium.sound_speed);&#60;br /&#62;
Nt = length(kgrid.t_array);&#60;/p&#62;
&#60;p&#62;% create a concave sensor&#60;br /&#62;
sphere_sz = 194;&#60;br /&#62;
sphere_radius = 96;&#60;br /&#62;
sphere = makeSphere(sphere_sz, sphere_sz, sphere_sz, sphere_radius);&#60;/p&#62;
&#60;p&#62;% carve most of the sphere off then add it to a mask of the correct size&#60;br /&#62;
sphere(:,98:end,:) = 0;&#60;br /&#62;
sensor.mask = zeros(Nx, Ny, Nz);&#60;br /&#62;
sphere_offset = 11;&#60;br /&#62;
sensor.mask(Nx/20:Nx/20+sphere_sz-1, Ny/20:Ny/20+sphere_sz-1, sphere_offset:sphere_offset+sphere_sz-1) = sphere;&#60;/p&#62;
&#60;p&#62;% define a time varying sinusoidal source&#60;br /&#62;
source_freq = 10e6;&#60;br /&#62;
source_mag = 10;&#60;br /&#62;
source.p = source_mag*sin(2*pi*source_freq*kgrid.t_array);&#60;br /&#62;
source.p = filterTimeSeries(kgrid, medium, source.p);&#60;/p&#62;
&#60;p&#62;% place the first point source near the focus of the detector&#60;br /&#62;
source1 = zeros(Nx, Ny, Nz);&#60;br /&#62;
source1(112, 306, 108) = 1;&#60;/p&#62;
&#60;p&#62;% place the second point source off axis&#60;br /&#62;
%source2 = zeros(Nx, Ny, Nz);&#60;br /&#62;
%source2(Nx/2-10, Ny/2, sphere_offset+sphere_radius) = 1;&#60;/p&#62;
&#60;p&#62;% run the first simulation&#60;br /&#62;
source.p_mask = source1;&#60;br /&#62;
input_args = {'PMLSize', 10, 'DataCast', 'single', 'PlotSim', false};&#60;br /&#62;
sensor_data = kspaceFirstOrder3D(kgrid, medium, source, sensor, input_args{:});&#60;/p&#62;
&#60;p&#62;% average the data recorded at each grid point to simulate the measured&#60;br /&#62;
% signal from a single element focussed detector&#60;br /&#62;
sensor_data = sum(sensor_data, 1);&#60;/p&#62;
&#60;p&#62;% run the second simulation&#60;br /&#62;
%source.p_mask = source2;&#60;br /&#62;
%sensor_data2 = kspaceFirstOrder3D(kgrid, medium, source, sensor, input_args{:});&#60;/p&#62;
&#60;p&#62;% average the data recorded at each grid point to simulate the measured&#60;br /&#62;
% signal from a single element focussed detector&#60;br /&#62;
%sensor_data2 = sum(sensor_data2, 1);&#60;/p&#62;
&#60;p&#62;% run the simulation&#60;br /&#62;
%sensor_data = kspaceFirstOrder3D(kgrid, medium, source, sensor);&#60;/p&#62;
&#60;p&#62;% define the frequency response of the sensor elements&#60;br /&#62;
center_freq = 10e6;      % [Hz]&#60;br /&#62;
bandwidth = 10;         % [%]&#60;br /&#62;
sensor.frequency_response = [center_freq, bandwidth];&#60;/p&#62;
&#60;p&#62;% re-run the simulation&#60;br /&#62;
sensor_data_filtered = kspaceFirstOrder3D(kgrid, medium, source, sensor, input_args{:});&#60;/p&#62;
&#60;p&#62;% calculate the frequency spectrum at the first sensor element&#60;br /&#62;
[f, sensor_data_as] = spectrum(sensor_data(1, :), 1/dt);&#60;br /&#62;
[f, sensor_data_filtered_as] = spectrum(sensor_data_filtered(1, :), 1/dt);&#60;/p&#62;
&#60;p&#62;% =========================================================================&#60;br /&#62;
% VISUALISATION&#60;br /&#62;
% =========================================================================&#60;/p&#62;
&#60;p&#62;% plot the detector and on-axis and off-axis point sources&#60;br /&#62;
voxelPlot(sensor.mask + source1);&#60;br /&#62;
view([14, 20]);&#60;/p&#62;
&#60;p&#62;% plot the time series corresponding to the on-axis and off-axis sources&#60;br /&#62;
figure&#60;br /&#62;
[t_sc, t_scale, t_prefix] = scaleSI(kgrid.t_array(end));&#60;br /&#62;
plot(kgrid.t_array.*t_scale, sensor_data, '-');&#60;br /&#62;
hold on&#60;br /&#62;
%plot(kgrid.t_array.*t_scale, sensor_data2, 'r-');&#60;br /&#62;
xlabel(['Time [' t_prefix 's]']);&#60;br /&#62;
ylabel('Average Pressure Measured By Focussed Detector [au]');&#60;br /&#62;
legend('Source on axis', 'Source off axis');&#60;/p&#62;
&#60;p&#62;figure;&#60;br /&#62;
[t_sc, scale, prefix] = scaleSI(max(kgrid.t_array(:)));&#60;br /&#62;
plot(scale*kgrid.t_array, sensor_data(1, :), 'k-', scale*kgrid.t_array, sensor_data_filtered(1, :), 'r-');&#60;br /&#62;
ylabel('Pressure [au]');&#60;br /&#62;
xlabel(['Time [' prefix 's]']);&#60;br /&#62;
legend('Original Time Series', 'Filtered Time Series');&#60;/p&#62;
&#60;p&#62;% plot the amplitude spectrum&#60;br /&#62;
figure;&#60;br /&#62;
[f_sc, scale, prefix] = scaleSI(max(f(:)));&#60;br /&#62;
plot(scale*f, sensor_data_as, 'k-', scale*f, sensor_data_filtered_as, 'r-');&#60;br /&#62;
ylabel('Amplitude Spectrum');&#60;br /&#62;
xlabel(['Frequency [' prefix 'Hz]']);&#60;br /&#62;
legend('Original Time Series', 'Filtered Time Series');&#60;br /&#62;
set(gca, 'XLim', [0 30]);&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Eldhose
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eldhochhan on "Unusual Output Signals"</title>
			<link>http://www.k-wave.org/forum/topic/unusual-output-signals#post-302</link>
			<pubDate>Thu, 09 Feb 2012 18:41:05 +0000</pubDate>
			<dc:creator>eldhochhan</dc:creator>
			<guid isPermaLink="false">302@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Ben,&#60;/p&#62;
&#60;p&#62;Thanks for the reply. Actually what i have done is:&#60;br /&#62;
i)   changed the dx value&#60;br /&#62;
ii)  changed the number of grid points&#60;br /&#62;
iii) also the positions of the source and sensor mask to simulate a real case.&#60;/p&#62;
&#60;p&#62;I have a specific distance (mm) from the source where the sensor has to be kept. So i just divided the distance by 'dx' to get the distance in pixels to place the detector. &#60;/p&#62;
&#60;p&#62;Yes, actually i using a frequency close to the maximum supported frequency. Let say my required frequency is 10MHz and so the maximum supported frequency is 11.5MHz. I didn't had any other choice because when i was trying to use a higher maximum supported frequency, it was taking very long hours for computation and at the end showed &#34;OUT OF MEMORY&#34;. &#60;/p&#62;
&#60;p&#62;And for the small oscillations in the beginning, even when i zoomed in and out it was still present. &#60;/p&#62;
&#60;p&#62;I will try to use the 'RampPPW' option as u have said.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bencox on "Unusual Output Signals"</title>
			<link>http://www.k-wave.org/forum/topic/unusual-output-signals#post-300</link>
			<pubDate>Thu, 09 Feb 2012 15:29:20 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">300@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Eldhose,&#60;/p&#62;
&#60;p&#62;A few things occur to me. How did you change the example? Could it be that for certain sensor-detector arrangements this is what you would expect to see? Are you using a frequency close to that maximum supported by the grid (as output to the desktop)?&#60;/p&#62;
&#60;p&#62;When using a sinusoidal signal, it has to start somewhere and that will generate a transient containing higher frequencies. Could it be this causing the problem? Try ramping up the amplitude slowly over a number of time points using the &#60;code&#62;'RampPPW'&#60;/code&#62; option in the function &#60;a href=&#34;http://www.k-wave.org/documentation/filterTimeSeries.php&#34;&#62;filterTimeSeries&#60;/a&#62; and see what happens.&#60;/p&#62;
&#60;p&#62;Are the small oscillations at the very beginning just a plotting issue: if you zoom in are the oscillations still there or do they go away?&#60;/p&#62;
&#60;p&#62;Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eldhochhan on "Unusual Output Signals"</title>
			<link>http://www.k-wave.org/forum/topic/unusual-output-signals#post-298</link>
			<pubDate>Thu, 09 Feb 2012 08:47:31 +0000</pubDate>
			<dc:creator>eldhochhan</dc:creator>
			<guid isPermaLink="false">298@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad and Ben,&#60;/p&#62;
&#60;p&#62;I have tried to use the example &#34;Focussed Detector in 3D&#34; for simulating the captured signals by a single element transducer. I found that there are few unusual peaks and trough in the amplitudes of the signals before the &#34;source on axis&#34; signals are shown. I have pasted the output signals below and those highlighted in red circle seems to be very unusual. Could you please help me to explain the cause??&#60;/p&#62;
&#60;p&#62;pls follow the link for the picture:&#60;br /&#62;
&#60;a href=&#34;http://tinypic.com/r/rhpum1/5&#34; rel=&#34;nofollow&#34;&#62;http://tinypic.com/r/rhpum1/5&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Eldhose
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
