<?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; User Favorites: deblina</title>
		<link><a href='http://www.k-wave.org/forum/profile/deblina'>deblina</a></link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:10: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>http://www.k-wave.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.k-wave.org/forum/rss/profile/" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Defining spherical sensors and memory consuming issues"</title>
			<link>http://www.k-wave.org/forum/topic/defining-spherical-sensors-and-memory-consuming-issues#post-4539</link>
			<pubDate>Thu, 22 May 2014 15:53:49 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4539@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Sebastian,&#60;/p&#62;
&#60;p&#62;The &#60;code&#62;makeSphericalSection&#60;/code&#62; function simply calls &#60;code&#62;makeSphere&#60;/code&#62;, and then truncates the output. The radius is the radius of curvature, i.e., the radius used to create the corresponding sphere. The height is the total &#34;thickness&#34; of the transducer along the beam axis. I will take a look at the documentation and perhaps add a figure illustrating the different inputs. In any case, thanks for posting your alternate code!&#60;/p&#62;
&#60;p&#62;Regarding out of memory issues, we are aware this is a problem. As part of the upcoming release, we have added several new functions and examples to save HDF5 files for the C++ code in parts, so that only a small number of matrices are stored in memory at the same time. This seems to solve most of the issues.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bastlwastl on "Defining spherical sensors and memory consuming issues"</title>
			<link>http://www.k-wave.org/forum/topic/defining-spherical-sensors-and-memory-consuming-issues#post-4526</link>
			<pubDate>Wed, 21 May 2014 16:55:47 +0000</pubDate>
			<dc:creator>bastlwastl</dc:creator>
			<guid isPermaLink="false">4526@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Well, after all, it turned out the problem is not that hard. I'm posting my code for the inspiration of the reader. Here a function for creating the Cartesian coordinates of a spherical formed sensor (like in my case, an Olympus V311). Use cart2grid to convert this to an binary mask in your KWave simulation. You can shift the focal point of your sensor. Keep in mind, that the kgrid to which these coordinates are applied is centered around 0 in all directions, i.e. for 10(!) grid points from -5 to 4&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
%%Script creating spherical sensors via cartessian coordinates&#60;br /&#62;
function[final_cart_sphere] = createCartSphericalSection(focal_length, focal_shift, sensor_diameter, sample_points)&#60;br /&#62;
%focal_length is the radius of the original sphere in meter.&#60;br /&#62;
%focal_shift might be a needed final shift of the focal point in meter in all directions in this form: [x_shift, y_shift, z_shift]&#60;/p&#62;
&#60;p&#62;%sensor_diameter defines the maximal opening angle of the spherical section&#60;br /&#62;
sensor_half = sensor_diameter/2;&#60;br /&#62;
%sample_points defines, how many point in the orignial sphere are sampled, in my case 20000 is a good starting value;&#60;/p&#62;
&#60;p&#62;%create sphere in cartesian coordinates around zero&#60;br /&#62;
cart_sphere = makeCartSphere(focal_length,sample_points, [0,0,0]);&#60;/p&#62;
&#60;p&#62;%convert to spherical coordinates for better modeling&#60;br /&#62;
[phi, theta, r] = cart2sph(cart_sphere(1,:),cart_sphere(2,:), cart_sphere(3,:));&#60;/p&#62;
&#60;p&#62;%get opening angle of sensor&#60;br /&#62;
alpha = asin(sensor_diameter/(2*focal_length));&#60;/p&#62;
&#60;p&#62;%select possible phi values&#60;br /&#62;
possible_phi = find(abs(phi)&#38;lt;=alpha);&#60;br /&#62;
%select possible values for theta&#60;br /&#62;
possible_theta = find(abs(theta)&#38;lt;=alpha);&#60;br /&#62;
%intersect&#60;br /&#62;
possible_values = intersect(possible_phi, possible_theta);&#60;br /&#62;
final_sphere = [];&#60;br /&#62;
for counter=possible_values&#60;br /&#62;
    theta_max = sqrt(sensor_half^2-(phi(counter)*focal_length)^2)/focal_length;&#60;br /&#62;
    if abs(theta(counter))&#38;lt;=theta_max&#60;br /&#62;
        final_sphere = [final_sphere; [phi(counter),theta(counter),r(counter)]];&#60;br /&#62;
    end&#60;br /&#62;
end&#60;/p&#62;
&#60;p&#62;[final_x, final_y, final_z] = sph2cart(final_sphere(:,1),final_sphere(:,2), final_sphere(:,3));&#60;/p&#62;
&#60;p&#62;%shift x coordinate by focus point on axial direction&#60;br /&#62;
%now it should focus to the bragg peak&#60;/p&#62;
&#60;p&#62;final_x = final_x+focal_shift(1);&#60;br /&#62;
final_y = final_y+focal_shift(2);&#60;br /&#62;
final_z = final_z+focal_shift(3);&#60;/p&#62;
&#60;p&#62;%convert to structure for K-Wave function&#60;/p&#62;
&#60;p&#62;final_cart_sphere = [final_x,final_y,final_z].';&#60;br /&#62;
end&#60;br /&#62;
&#60;/code&#62;&#60;code&#62;&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bastlwastl on "Defining spherical sensors and memory consuming issues"</title>
			<link>http://www.k-wave.org/forum/topic/defining-spherical-sensors-and-memory-consuming-issues#post-4525</link>
			<pubDate>Wed, 21 May 2014 11:09:32 +0000</pubDate>
			<dc:creator>bastlwastl</dc:creator>
			<guid isPermaLink="false">4525@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Anthony,&#60;br /&#62;
i found this topic before and actually it's not that helpful for my specific problem. I considered modeling the sensor with Cartesian coordinates and converting it, since on top, my grid spacing is not uniform, i.e. dx!=dy. This is also not covered in the function makeSphericalSection.&#60;/p&#62;
&#60;p&#62;I wanted to point out, that the help text on this specific function is misleading, which is sad because it seems to be a fast-to-use function. Therefore is was looking for enlightenment but it seems that i have to write the function for the &#34;Cartesian&#34; approach.&#60;/p&#62;
&#60;p&#62;Anyway, thanks for your answer.&#60;br /&#62;
Cheers,&#60;br /&#62;
Sebastian
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anthony on "Defining spherical sensors and memory consuming issues"</title>
			<link>http://www.k-wave.org/forum/topic/defining-spherical-sensors-and-memory-consuming-issues#post-4522</link>
			<pubDate>Fri, 16 May 2014 08:43:58 +0000</pubDate>
			<dc:creator>Anthony</dc:creator>
			<guid isPermaLink="false">4522@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Sebastian&#60;/p&#62;
&#60;p&#62;About your first point, you may find this topic helpful :&#60;br /&#62;
&#60;a href=&#34;http://www.k-wave.org/forum/topic/sensor-mask-of-3d-time-reversal-reconstruction-for-a-spherical-sensor#post-4393&#34; rel=&#34;nofollow&#34;&#62;http://www.k-wave.org/forum/topic/sensor-mask-of-3d-time-reversal-reconstruction-for-a-spherical-sensor#post-4393&#60;/a&#62; &#60;/p&#62;
&#60;p&#62;Best regards,&#60;br /&#62;
Anthony
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bastlwastl on "Defining spherical sensors and memory consuming issues"</title>
			<link>http://www.k-wave.org/forum/topic/defining-spherical-sensors-and-memory-consuming-issues#post-4519</link>
			<pubDate>Tue, 13 May 2014 14:44:17 +0000</pubDate>
			<dc:creator>bastlwastl</dc:creator>
			<guid isPermaLink="false">4519@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;i'm working on a simulation of our latest experiments and facing two major problems:&#60;/p&#62;
&#60;p&#62;1. I try the simulate the spherical sensor we used to match and compare the experimental results. For that, i use makeSphericalSection and provide the calculated number of grid point. Unfortunately, the resulting spherical section is tending to be larger then the provided grid points and thereby, i find it impossible to get the correct size for the sensor I'll like to simulate. Additionally, the help text is confusing. It says, that i have to provide the radius of curvature and the height in grid point, but from the resulting Plots, its seem these values are the radius of the corresponding disc of the sensor and the depth. Can you clarify this for me?&#60;/p&#62;
&#60;p&#62;2. At the moment, i simulate a 2000*430*430 grid, and although the memory consumption in the simulation itself is 'only' about 15gb, I'm facing Matlabs Out-Of-Memory Error during the pre-simulations (grid expansion, smoothing etc.) Since I'm already working on the best cluster the university can offer for this purpose with 64GB per working node, I'm looking for possibilities to minimize the memory consumption during this pre-simulation phase. Is there a way?&#60;/p&#62;
&#60;p&#62;Thanks for your time and help,&#60;/p&#62;
&#60;p&#62;Sebastian
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
