<?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: How to generate wire target in medium?</title>
		<link>http://www.k-wave.org/forum/topic/how-to-generate-wire-target-in-medium</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 09:00:54 +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/how-to-generate-wire-target-in-medium" rel="self" type="application/rss+xml" />

		<item>
			<title>shock on "How to generate wire target in medium?"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-generate-wire-target-in-medium#post-5224</link>
			<pubDate>Tue, 01 Sep 2015 03:28:31 +0000</pubDate>
			<dc:creator>shock</dc:creator>
			<guid isPermaLink="false">5224@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Bradley&#60;br /&#62;
Thank you so much!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "How to generate wire target in medium?"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-generate-wire-target-in-medium#post-5210</link>
			<pubDate>Fri, 21 Aug 2015 10:39:45 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5210@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi shock,&#60;/p&#62;
&#60;p&#62;You first need to define the maps to be the correct dimension, and assign the background value. Then you can assign the wire using your code, e.g.,&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Nx = 50;
Ny = 50;
Nz = 50;

c0 = 1500;
cwire = 5900;

sound_speed_map = c0 * ones(Nx, Ny, Nz);
sound_speed_map(Nx/2, Ny/2, 1:end) = cwire;

voxelPlot(sound_speed_map);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Keep in mind if you are defining a scatterer right to the edge of the grid to place the perfectly matched layer (PML) outside your simulation by setting the optional input &#60;code&#62;&#38;#39;PMLInside&#38;#39;, false&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>shock on "How to generate wire target in medium?"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-generate-wire-target-in-medium#post-5205</link>
			<pubDate>Wed, 19 Aug 2015 09:17:15 +0000</pubDate>
			<dc:creator>shock</dc:creator>
			<guid isPermaLink="false">5205@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I want to put one wire in scattering medium, is this the right way?&#60;/p&#62;
&#60;p&#62;sound_speed_map(Nx/2, Ny/2,1:end) =  5900;&#60;br /&#62;
density_map(Nx/2, Ny/2,1:end) =  7850/1.5;&#60;/p&#62;
&#60;p&#62;% assign to the medium inputs&#60;br /&#62;
medium.sound_speed = sound_speed_map;&#60;br /&#62;
medium.density = density_map;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
