<?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: crclayton</title>
		<link><a href='http://www.k-wave.org/forum/profile/crclayton'>crclayton</a></link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 22:31:02 +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 "Curved medium boundaries"</title>
			<link>http://www.k-wave.org/forum/topic/curved-medium-boundaries#post-5761</link>
			<pubDate>Tue, 22 Nov 2016 16:44:37 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5761@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi crclayton,&#60;/p&#62;
&#60;p&#62;There are various functions included in k-Wave for creating other geometries, for example, &#60;code&#62;makeLine&#60;/code&#62;, &#60;code&#62;makeCircle&#60;/code&#62;, etc. There's a full list in the documentation under &#34;Functions - By Category&#34;. If you want to do something more complex, you'll need to code it yourself, I'm afraid.&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crclayton on "Curved medium boundaries"</title>
			<link>http://www.k-wave.org/forum/topic/curved-medium-boundaries#post-5743</link>
			<pubDate>Tue, 15 Nov 2016 21:23:22 +0000</pubDate>
			<dc:creator>crclayton</dc:creator>
			<guid isPermaLink="false">5743@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Problem elaborated on in a more mathematical sense on stackoverflow here: &#60;a href=&#34;https://stackoverflow.com/questions/40618988/how-to-generate-a-matrix-with-a-function-pattern&#34; rel=&#34;nofollow&#34;&#62;https://stackoverflow.com/questions/40618988/how-to-generate-a-matrix-with-a-function-pattern&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crclayton on "Curved medium boundaries"</title>
			<link>http://www.k-wave.org/forum/topic/curved-medium-boundaries#post-5740</link>
			<pubDate>Tue, 15 Nov 2016 02:06:38 +0000</pubDate>
			<dc:creator>crclayton</dc:creator>
			<guid isPermaLink="false">5740@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I'm trying to expand upon the Snell's Law example: &#60;a href=&#34;http://www.k-wave.org/documentation/example_tvsp_snells_law.php&#34; rel=&#34;nofollow&#34;&#62;http://www.k-wave.org/documentation/example_tvsp_snells_law.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;But instead of a single straight boundary, I would like the boundaries to be diagonal to model a waveguide that tapers into a narrower point like so: &#60;a href=&#34;https://i.imgur.com/KzxoVBc.png&#34; rel=&#34;nofollow&#34;&#62;https://i.imgur.com/KzxoVBc.png&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Is there a way to assign a &#60;code&#62;medium.sound_speed&#60;/code&#62; such that it has some curvature? Currently I'm using the following code to generate two parallel boundaries, but ultimately I would like to tilt the boundaries so they act as a funnel.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;medium.sound_speed(:,   64+width/2 : 64+width/2+1) = c02;&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;medium.sound_speed(:, 64-width/2-1 : 64-width/2)   = c02;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Is there a way to do this?&#60;/p&#62;
&#60;p&#62;Thank you very much in advance.&#60;/p&#62;
&#60;p&#62;Edit:&#60;/p&#62;
&#60;p&#62;I managed to create a rudimentary funnel that tapers at a 45 degree then spreads out again, but it's far from elegant:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;width = 18;
medium.sound_speed(1:60, 64+width/2 : 64+width/2+1) = c02;
medium.sound_speed(1:60, 64-width/2-1 : 64-width/2) = c02;

for i=1:1:60
    medium.sound_speed(i, i) = c02;
end

for i=1:1:60
    medium.sound_speed(i, 128-i) = c02;
end

width=5;
medium.sound_speed(60:80, 64+width/2 : 64+width/2+1) = c02;
medium.sound_speed(60:80, 64-width/2-1 : 64-width/2) = c02;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
