<?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; Forum: General Questions - Recent Posts</title>
		<link>https://www.k-wave.org/forum/forum/general</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 17 Jun 2026 21:50:15 +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>https://www.k-wave.org/forum/search.php</link>
		</textInput>
		<atom:link href="https://www.k-wave.org/forum/rss/forum/general" rel="self" type="application/rss+xml" />

		<item>
			<title>xf20228 on "Complete Beginner Question"</title>
			<link>https://www.k-wave.org/forum/topic/complete-beginner-question#post-9247</link>
			<pubDate>Tue, 17 Feb 2026 12:48:38 +0000</pubDate>
			<dc:creator>xf20228</dc:creator>
			<guid isPermaLink="false">9247@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi, &#60;/p&#62;
&#60;p&#62;I am working through the Homogeneous Propagation Medium Example but get this error when I run the example .m file:&#60;/p&#62;
&#60;p&#62;Arrays have incompatible sizes for this operation.&#60;/p&#62;
&#60;p&#62;Error in kspaceFirstOrder2D (line 920)&#60;br /&#62;
        ux_sgx = dt .* rho0_sgx_inv .* real(ifft2( bsxfun(@times, ddx_k_shift_pos, kappa .* fft2(p)) )) / 2;&#60;br /&#62;
                                                                                         ^&#60;br /&#62;
Error in example_ivp_homogeneous_medium (line 67)&#60;br /&#62;
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor);&#60;br /&#62;
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&#60;br /&#62;
So far, I have installed MATLAB R2025a, installed k-wave from add-ons, opened the example_ivp_homogeneous_medium.m file in the MATLAB editor, and run the code.&#60;/p&#62;
&#60;p&#62;If someone could tell me what I am doing wrong, I would appreciate it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>toehead on "Thanks"</title>
			<link>https://www.k-wave.org/forum/topic/thanks#post-9244</link>
			<pubDate>Wed, 28 Jan 2026 17:12:35 +0000</pubDate>
			<dc:creator>toehead</dc:creator>
			<guid isPermaLink="false">9244@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I just wanted to say thank you for such an amazing toolbox. &#60;/p&#62;
&#60;p&#62;It was just what I needed and is very user-friendly.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>abbasK on "Transducer object for elastic simulations"</title>
			<link>https://www.k-wave.org/forum/topic/transducer-object-for-elastic-simulations#post-9228</link>
			<pubDate>Fri, 15 Aug 2025 15:27:02 +0000</pubDate>
			<dc:creator>abbasK</dc:creator>
			<guid isPermaLink="false">9228@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello,&#60;br /&#62;
can the kWaveTransducer be used with the pstdElastic3D function?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jorgeT on "Running thermal simulations on a GPU"</title>
			<link>https://www.k-wave.org/forum/topic/running-thermal-simulations-on-a-gpu#post-9209</link>
			<pubDate>Fri, 18 Apr 2025 09:05:21 +0000</pubDate>
			<dc:creator>jorgeT</dc:creator>
			<guid isPermaLink="false">9209@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi newmam,&#60;br /&#62;
For me it is working perfectly. Just copy the code from github as you may have the kWaveDiffusion version that has not yet implemented this feature.&#60;/p&#62;
&#60;p&#62;JTP
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dominique on "Time between saving steps"</title>
			<link>https://www.k-wave.org/forum/topic/time-between-saving-steps#post-9206</link>
			<pubDate>Thu, 10 Apr 2025 08:59:08 +0000</pubDate>
			<dc:creator>Dominique</dc:creator>
			<guid isPermaLink="false">9206@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;This topic remains pertinent today: I'm required to execute an extensive 2D simulation, yet the storage demands for sensor_data are restricting my progress since it records data at every time step.&#60;/p&#62;
&#60;p&#62;The solution suggested here is effective; however, I'm apprehensive that similar modifications might be needed in the C++ source code to avoid having to choose between computational speed and excessive RAM usage.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>wjh on "On the change of medium properties over time in k-wave"</title>
			<link>https://www.k-wave.org/forum/topic/on-the-change-of-medium-properties-over-time-in-k-wave#post-9199</link>
			<pubDate>Sun, 16 Mar 2025 09:00:26 +0000</pubDate>
			<dc:creator>wjh</dc:creator>
			<guid isPermaLink="false">9199@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello, I would like to simulate the effect of time-varying medium changes on acoustic wave propagation properties using k-wave. How do I solve this problem and does k-wave support the simulation of time-varying sound velocity and density of the medium in question? For example, for 2D simulation, do I need to change the internal function of kspaceFirstOrder2D, and if so, how do I need to change it? I hope to get your reply, thank you very much.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>egekckkmrc on "Wavefront Index Discrepancy in 3D Sensor Masks"</title>
			<link>https://www.k-wave.org/forum/topic/wavefront-index-discrepancy-in-3d-sensor-masks#post-9171</link>
			<pubDate>Sat, 11 Jan 2025 00:19:35 +0000</pubDate>
			<dc:creator>egekckkmrc</dc:creator>
			<guid isPermaLink="false">9171@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I’m working on propagation in a homogeneous 3D medium. I’m using the kspacefirstorder3D function to accomplish this. I have a specific issue that I need your assistance with.&#60;/p&#62;
&#60;p&#62;Let’s consider the following scenario: I create a grid with Nx=32, Ny=32, and Nz=32. Then, I generate a linear binary sensor mask array at the first layer of Nz (sensor.mask(:,:,1)=1). I position a point-like source 3 layers below my sensor (Nz=4) and propagate the wavefront, collecting the data. Let’s refer to this data as data1.&#60;/p&#62;
&#60;p&#62;Next, I repeat this process by creating a sensor mask for the first two Nz (sensor.mask(:,:,1:2)=1). I maintain the same source, perform the propagation, and collect the data. Let’s refer to this data as data2.&#60;/p&#62;
&#60;p&#62;After some reshaping, I obtain the following for data1: [Nx,Ny,kgrid.Nt] and for data 2: [Nx,Ny,kgrid.Nt,Nz]. I anticipate that data1 should be equal to data2(:,:,:1). However, when I compare them, even though the wavefronts have the same shape, the indices differ.&#60;/p&#62;
&#60;p&#62;Could you please provide some insights into this issue? I would greatly appreciate your help!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alberto Madeira on "Thank you"</title>
			<link>https://www.k-wave.org/forum/topic/thank-you#post-9166</link>
			<pubDate>Sat, 21 Dec 2024 19:16:11 +0000</pubDate>
			<dc:creator>Alberto Madeira</dc:creator>
			<guid isPermaLink="false">9166@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I didn't find a proper venue for this, but I really wanted to thank the authors of this toolbox. This work is wonderful! I work with jet aeroacoustics and having a FAST wave propagation solver with such reconfigurability, ease of setup, and powerful numerics behind it is incredible! I've designed countless mechanisms and devices throughout the (last ~5) years using kWave. &#60;/p&#62;
&#60;p&#62;Thank you, thank you, thank you. Bless your heart for making this freely available to the public!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>‪Alon on "size of kWaveArray"</title>
			<link>https://www.k-wave.org/forum/topic/size-of-kwavearray#post-9163</link>
			<pubDate>Mon, 09 Dec 2024 19:53:37 +0000</pubDate>
			<dc:creator>‪Alon</dc:creator>
			<guid isPermaLink="false">9163@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I've been experimenting with kWaveArray and noticed an issue when converting a karray to a binary mask. After conversion, the size of the elements seems to differ from the expected size, likely due to interpolation of off-grid points.&#60;/p&#62;
&#60;p&#62;For example, if I create a rectangular element with specific width and length, the binary mask generated by getArrayBinaryMask shows a size that is (much) larger than expected. Specifically, when I measure (in grid points) the length (say, along the x-axis), the result exceeds the intended size of Lx / dx (by more than 1-2 extra grid points).&#60;/p&#62;
&#60;p&#62;I understand that parameters like 'BLITolerance' can influence this behavior, but I'm wondering how I can ensure the size of the binary mask matches the intended dimensions exactly.&#60;/p&#62;
&#60;p&#62;Thanks for your help!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>newmam on "Running thermal simulations on a GPU"</title>
			<link>https://www.k-wave.org/forum/topic/running-thermal-simulations-on-a-gpu#post-9160</link>
			<pubDate>Thu, 21 Nov 2024 18:29:58 +0000</pubDate>
			<dc:creator>newmam</dc:creator>
			<guid isPermaLink="false">9160@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi, I've been struggling to get the kWaveDiffusion function to run with &#34;Datacast&#34; set to &#34;gpuarray-single&#34;. The github says support for this was added last year but I get an error when I attempt it to take a timestep. Is there a way to get around this?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>donghunk on "Applying multiple frequencies to kWaveTransducer"</title>
			<link>https://www.k-wave.org/forum/topic/applying-multiple-frequencies-to-kwavetransducer#post-9150</link>
			<pubDate>Tue, 08 Oct 2024 06:42:34 +0000</pubDate>
			<dc:creator>donghunk</dc:creator>
			<guid isPermaLink="false">9150@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I've been using the kWaveArray class to simulate different frequencies interacting with each other for vibro-acoustographic simulations.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;% define multi-element kWaveArray
source_signal(1, :) = ... % define 1st element signal
source_signal(2, :) = ... % define 2nd element signal
...
getDistributedSourceSignal(kgrid, source_signal)&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I've been wondering if the same can be done with the kWaveTransducer class in order to make use of its B-mode functionality, but while having each element firing a different frequency. &#60;/p&#62;
&#60;p&#62;Currently, if I try to define a multi-row transducer.input_signal for a kWaveTransducer instance, it says&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;transducer.input_signal must be a one-dimensional array&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Is there a workaround that exists?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>wsimson on "Python Implementation of K-Wave"</title>
			<link>https://www.k-wave.org/forum/topic/python-implementation-of-k-wave#post-9111</link>
			<pubDate>Thu, 11 Jul 2024 17:42:33 +0000</pubDate>
			<dc:creator>wsimson</dc:creator>
			<guid isPermaLink="false">9111@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi All,&#60;/p&#62;
&#60;p&#62;as a follow-up, k-wave-python now supports MacOS out of the box in the latest release.&#60;/p&#62;
&#60;p&#62;Hope you find this helpful!&#60;/p&#62;
&#60;p&#62;Best,&#60;br /&#62;
Walter
&#60;/p&#62;</description>
		</item>
		<item>
			<title>DomeG on "Modelling nonlinear sound propagation in air"</title>
			<link>https://www.k-wave.org/forum/topic/modelling-nonlinear-sound-propagation-in-air#post-9098</link>
			<pubDate>Sat, 01 Jun 2024 14:38:45 +0000</pubDate>
			<dc:creator>DomeG</dc:creator>
			<guid isPermaLink="false">9098@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;... any update on this interesting topic?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Seoks on "Can I control the pixel size of the pressure field image?"</title>
			<link>https://www.k-wave.org/forum/topic/can-i-control-the-pixel-size-of-the-pressure-field-image#post-9097</link>
			<pubDate>Fri, 31 May 2024 05:28:56 +0000</pubDate>
			<dc:creator>Seoks</dc:creator>
			<guid isPermaLink="false">9097@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I used kspaceFirstOrder2D and i extracted p_max data with 2D image.&#60;br /&#62;
The grid size of simulation that i set is 551 by 551.&#60;br /&#62;
But the p_max 2D image has 540 by 540 pixel size.&#60;br /&#62;
So i wondered if there would be data loss during the image processing.&#60;br /&#62;
Is there any way that i can control the output image pixel size?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cyl on "May I ask if there is any code similar to transcranial ultrasound simulation"</title>
			<link>https://www.k-wave.org/forum/topic/may-i-ask-if-there-is-any-code-similar-to-transcranial-ultrasound-simulation#post-9096</link>
			<pubDate>Fri, 31 May 2024 03:20:05 +0000</pubDate>
			<dc:creator>cyl</dc:creator>
			<guid isPermaLink="false">9096@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;May I ask if there is any code similar to transcranial ultrasound simulation that I would like to learn from
&#60;/p&#62;</description>
		</item>
		<item>
			<title>chengjinjin on "Focused transducer with a hyperbolic reception angle like AR-PAM"</title>
			<link>https://www.k-wave.org/forum/topic/focused-transducer-with-a-hyperbolic-reception-angle-like-ar-pam#post-9093</link>
			<pubDate>Wed, 15 May 2024 14:36:22 +0000</pubDate>
			<dc:creator>chengjinjin</dc:creator>
			<guid isPermaLink="false">9093@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;During the simulation, I found if I use an ark-shaped transducer to simulate a focused transducer, it can only realize geometry focus, but can not realize hyperbolic reception angle like AR-PAM. Do you know how to realize it with k-wave?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>HYH on "After getArrayBinaryMask,voxelPlot visualize the overlap problem"</title>
			<link>https://www.k-wave.org/forum/topic/after-getarraybinarymaskvoxelplot-visualize-the-overlap-problem#post-9071</link>
			<pubDate>Sat, 30 Mar 2024 03:42:49 +0000</pubDate>
			<dc:creator>HYH</dc:creator>
			<guid isPermaLink="false">9071@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;The added rectangular elements are 1 mm wide, 1 mm long, and 1.2 mm apart. However, after using the voxelPlot function to visualize, the red cubes are all overlapped, and after adjusting the interval to separate them, when the dx is 0.5mm, it is found that there are 20*20 red cubes in each rectangular array in voxelPlot. How can I solve this problem, my code is as follows。 Looking forward to your answer！&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;element_num_x = 8;
element_num_y = 8;
element_width = 1e-3;
element_length = 1e-3;
element_pitch =  1.2e-3;
rotation = [0, 0, 0];

x_pos = (0:element_pitch:(element_num_x)*element_pitch);
y_pos = (0:element_pitch:(element_num_x)*element_pitch);

karray = kWaveArray();

for ind = 1:element_num_x
    for k = 1:element_num_y
        karray.addRectElement([x_pos(ind) ,y_pos(k) ,kgrid.z_vec(1)+ z_compensate], element_width, element_length, rotation);
    end
end

sensor.mask = karray.getArrayBinaryMask(kgrid);

voxelPlot(sensor.mask, &#38;#39;Color&#38;#39;, [1 0 0], &#38;#39;Transparency&#38;#39;, 0.5);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Calculating 2D array transducer propagation in a specific Z (depth) only"</title>
			<link>https://www.k-wave.org/forum/topic/calculating-2d-array-transducer-propagation-in-a-specific-z-depth-only#post-9066</link>
			<pubDate>Wed, 20 Mar 2024 20:54:33 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">9066@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Unfortunately not - full wave methods like k-Wave have to compute the propagation from the source to that depth. If your medium is homogeneous, you could instead use the Rayleigh integral or another toolbox like focus.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "One Sided Array Transducer"</title>
			<link>https://www.k-wave.org/forum/topic/one-sided-array-transducer#post-9061</link>
			<pubDate>Wed, 20 Mar 2024 20:40:33 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">9061@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Do you want to do this for a particular acoustic reason, or just for visualisation? The actual transducer housing etc is not modelled, so it’s not straightforward to do unfortunately.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>daga_pankaj on "what acoustic difference is too large?"</title>
			<link>https://www.k-wave.org/forum/topic/what-acoustic-difference-is-too-large#post-9050</link>
			<pubDate>Sun, 17 Mar 2024 18:05:09 +0000</pubDate>
			<dc:creator>daga_pankaj</dc:creator>
			<guid isPermaLink="false">9050@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I am trying to simulate where there the difference in density between foreground and background is ~ 8x. The speed of sound difference is around ~2x. So impedance difference is around 16x.&#60;/p&#62;
&#60;p&#62;Is that too large for spectral methods like K-wave?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
