<?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: kspacesFirstOrder3D code seems not to get medium density</title>
		<link>http://www.k-wave.org/forum/topic/kspacesfirstorder3d-code-seems-not-to-get-medium-density</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:27:52 +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/kspacesfirstorder3d-code-seems-not-to-get-medium-density" rel="self" type="application/rss+xml" />

		<item>
			<title>aliataie on "kspacesFirstOrder3D code seems not to get medium density"</title>
			<link>http://www.k-wave.org/forum/topic/kspacesfirstorder3d-code-seems-not-to-get-medium-density#post-7471</link>
			<pubDate>Sun, 03 May 2020 02:29:25 +0000</pubDate>
			<dc:creator>aliataie</dc:creator>
			<guid isPermaLink="false">7471@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I am really thankful of your hint.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>vich on "kspacesFirstOrder3D code seems not to get medium density"</title>
			<link>http://www.k-wave.org/forum/topic/kspacesfirstorder3d-code-seems-not-to-get-medium-density#post-7469</link>
			<pubDate>Sat, 02 May 2020 20:29:16 +0000</pubDate>
			<dc:creator>vich</dc:creator>
			<guid isPermaLink="false">7469@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;From a user's perspective, according to the k-Wave Manual v.1.1, section 3.3:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
Except for the power law absorption exponent (which must be a scalar), each of the material properties can be defined as either a scalar (if the medium property is homogeneous), or a matrix (if the medium property is heterogeneous). If the parameters are heterogeneous, the input matrix must be the same size as the computational grid, for example:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
% create a heterogeneous sound speed for a layered medium in 3D&#60;br /&#62;
medium.sound_speed = 1500*ones(kgrid.Nx, kgrid.Ny, kgrid.Nz);&#60;br /&#62;
medium.sound_speed(1:layer_size, :, :) = 1600;&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;The manual is, in my opinion, the most solid way to get started with k-Wave, and the examples greatly complement it. If you &#60;em&#62;really&#60;/em&#62; want to start off by inspecting the code directly, please bear in mind that many k-Wave functions make calls to hidden routines (functions and scripts) in the &#60;code&#62;private/&#60;/code&#62; folder. These calls can be easy to miss if you read the code without knowing what to look for.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aliataie on "kspacesFirstOrder3D code seems not to get medium density"</title>
			<link>http://www.k-wave.org/forum/topic/kspacesfirstorder3d-code-seems-not-to-get-medium-density#post-7468</link>
			<pubDate>Sat, 02 May 2020 09:19:36 +0000</pubDate>
			<dc:creator>aliataie</dc:creator>
			<guid isPermaLink="false">7468@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dear all,&#60;br /&#62;
I am new with k-wave. I started with the ultrasound b-mode example which calls &#34;kspaceFirstOrder3D&#34; and feeds the properties of the heterogeneous medium via fields of &#34;medium&#34;, specially: medium.density. But when opened  kspaceFirstOrder3D, I did not find anywhere in the code, reading the density of medium. Am I making a mistake? If not, so how does it account for non-homogeneous mediums?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
