<?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: Best way to simulate more than two layered materials in 2D</title>
		<link>http://www.k-wave.org/forum/topic/best-way-to-simulate-more-than-two-layered-materials-in-2d</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:32:17 +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/best-way-to-simulate-more-than-two-layered-materials-in-2d" rel="self" type="application/rss+xml" />

		<item>
			<title>buagciar on "Best way to simulate more than two layered materials in 2D"</title>
			<link>http://www.k-wave.org/forum/topic/best-way-to-simulate-more-than-two-layered-materials-in-2d#post-5381</link>
			<pubDate>Thu, 11 Feb 2016 18:38:33 +0000</pubDate>
			<dc:creator>buagciar</dc:creator>
			<guid isPermaLink="false">5381@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;thank you!!!&#60;/p&#62;
&#60;p&#62;i can not figure this out, wokr for me!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>MUMiles on "Best way to simulate more than two layered materials in 2D"</title>
			<link>http://www.k-wave.org/forum/topic/best-way-to-simulate-more-than-two-layered-materials-in-2d#post-5195</link>
			<pubDate>Wed, 05 Aug 2015 18:18:26 +0000</pubDate>
			<dc:creator>MUMiles</dc:creator>
			<guid isPermaLink="false">5195@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Solved!&#60;/p&#62;
&#60;p&#62;I was going about this wrong. The correct way is to define your grid and then use:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;medium.sound_speed_compression = medium.sound_speed_compression + 5000*makeDisc(Nx, Ny, Nx/2 ... etc&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>MUMiles on "Best way to simulate more than two layered materials in 2D"</title>
			<link>http://www.k-wave.org/forum/topic/best-way-to-simulate-more-than-two-layered-materials-in-2d#post-5194</link>
			<pubDate>Wed, 05 Aug 2015 17:37:12 +0000</pubDate>
			<dc:creator>MUMiles</dc:creator>
			<guid isPermaLink="false">5194@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thanks Anthony, that did the trick! As far as using makeDisc I am still a little confused. I can populate my grid points for a material but when I try to define a disc in the center the plot just becomes &#34;grayed out&#34;. Here is how I am trying to define different material parameters for a disc in the center:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;medium.sound_speed_compression = 5000*makeDisc(Nx, Ny, Nx/2, Ny/2, 2, &#38;#39;true&#38;#39;);
medium.sound_speed_shear = 2000*makeDisc(Nx, Ny, Nx/2, Ny/2, 2);
medium.density = 6000*makeDisc(Nx, Ny, Nx/2, Ny/2, 2);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Anthony on "Best way to simulate more than two layered materials in 2D"</title>
			<link>http://www.k-wave.org/forum/topic/best-way-to-simulate-more-than-two-layered-materials-in-2d#post-5185</link>
			<pubDate>Fri, 31 Jul 2015 08:36:30 +0000</pubDate>
			<dc:creator>Anthony</dc:creator>
			<guid isPermaLink="false">5185@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi MUMiles,&#60;/p&#62;
&#60;p&#62;First of all, you have a &#60;code&#62;3/Nx&#60;/code&#62; instead of &#60;code&#62;Nx/3&#60;/code&#62;. Then, if you look at the order of your material definition, the third one comprises (and though erases) the second one. Try &#60;code&#62;2*Nx/3&#60;/code&#62;, and it will work ;-)&#60;/p&#62;
&#60;p&#62;&#60;code&#62;makeDisc&#60;/code&#62; will help you for the circles.&#60;/p&#62;
&#60;p&#62;Anthony
&#60;/p&#62;</description>
		</item>
		<item>
			<title>MUMiles on "Best way to simulate more than two layered materials in 2D"</title>
			<link>http://www.k-wave.org/forum/topic/best-way-to-simulate-more-than-two-layered-materials-in-2d#post-5183</link>
			<pubDate>Fri, 31 Jul 2015 00:28:51 +0000</pubDate>
			<dc:creator>MUMiles</dc:creator>
			<guid isPermaLink="false">5183@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello, &#60;/p&#62;
&#60;p&#62;First off thank you so much for offering this package free of charge. I am trying to simulate more than two layers of elastic/viscoelastic materials and am running into a problem when coding more than two layers. Here is the general process I am using:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
% Define properties of the first layer (FOAM)&#60;br /&#62;
medium.sound_speed_compression = 2278*ones(Nx, Ny); % [m/s]&#60;br /&#62;
medium.sound_speed_shear       = 30*zeros(Nx, Ny);     % [m/s]&#60;br /&#62;
medium.density                 = 1265*ones(Nx, Ny);   % [kg/m^3] &#60;/p&#62;
&#60;p&#62;% Define properties of the second layer (Steel)&#60;br /&#62;
medium.sound_speed_compression(Nx/2:end, :) = 5164; % [m/s]&#60;br /&#62;
medium.sound_speed_shear(Nx/2:end, :)       = 2164;     % [m/s]&#60;br /&#62;
medium.density(Nx/2:end, :)                 = 7500; % [kg/m^3]&#60;/p&#62;
&#60;p&#62;% Define properties of the third layer (PMMA)&#60;br /&#62;
medium.sound_speed_compression(3/Nx:end, :) = 11663; % [m/s]&#60;br /&#62;
medium.sound_speed_shear(Nx/3:end, :)  = 1663;     % [m/s]&#60;br /&#62;
medium.density(Nx/3:end, :)                     = 11185; % [kg/m^3]&#60;/p&#62;
&#60;p&#62;etc...&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;But it seems as though I always end up with just two materials. Any insight into what I'm doing wrong is greatly appreciated. Also, it there a way to make the layers circular? Like if I wanted to take a cross section of a sphere in the center. My problem involves coated spheres. Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
