<?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: Heterogeneous Attenuation Values</title>
		<link>http://www.k-wave.org/forum/topic/heterogeneous-attenuation-values</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 02:57:30 +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/heterogeneous-attenuation-values" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Heterogeneous Attenuation Values"</title>
			<link>http://www.k-wave.org/forum/topic/heterogeneous-attenuation-values#post-7318</link>
			<pubDate>Thu, 26 Mar 2020 11:24:40 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">7318@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi ninasnum,&#60;/p&#62;
&#60;p&#62;Yes, in this example the value for &#60;code&#62;tgc_alpha_db_cm&#60;/code&#62; needs to be a scalar. If you want to account for frequency dependent absorption, then you could look at the &#60;code&#62;attenComp&#60;/code&#62; function.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ninasnum on "Heterogeneous Attenuation Values"</title>
			<link>http://www.k-wave.org/forum/topic/heterogeneous-attenuation-values#post-7317</link>
			<pubDate>Tue, 24 Mar 2020 22:28:11 +0000</pubDate>
			<dc:creator>ninasnum</dc:creator>
			<guid isPermaLink="false">7317@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi, I'm also trying to write ultrasound simulation with heterogenous attentuation. At the moment, it is having a ball of muscle inside water medium&#60;/p&#62;
&#60;p&#62;From the ultrasound example, the time gain compensation step seems to work only with medium.alpha_coeff as a number, not varying at the bsxfun function (matlab complains to me about dimensions when I made it heterogeneous).&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;% -----------------------------
% Time Gain Compensation
% -----------------------------

% create radius variable assuming that t0 corresponds to the middle of the
% input signal
    t0 = length(input_signal) * kgrid.dt / 2;
    r = c0 * ( (1:length(kgrid.t_array)) * kgrid.dt - t0 ) / 2;    % [m]

% define absorption value and convert to correct units
    tgc_alpha_db_cm = medium.alpha_coeff * (tone_burst_freq * 1e-6)^medium.alpha_power;
    tgc_alpha_np_m = tgc_alpha_db_cm / 8.686 * 100;

% create time gain compensation function based on attenuation value and
% round trip distance
    tgc = exp(tgc_alpha_np_m * 2 * r);

% apply the time gain compensation to each of the scan lines
    scan_lines = bsxfun(@times, tgc, scan_lines);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If I have medium.alpha_coeff spatially varying (such as coeff for muscle where ball is and rest have coeff of water), does that mean I have to change the tgc_alpha_db_cm calculation to just use the default coeff of water so that the bsxfun function will work?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Heterogeneous Attenuation Values"</title>
			<link>http://www.k-wave.org/forum/topic/heterogeneous-attenuation-values#post-7094</link>
			<pubDate>Fri, 18 Oct 2019 20:26:17 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">7094@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi drewc830,&#60;/p&#62;
&#60;p&#62;It's possible to have a spatially varying &#60;code&#62;medium.alpha_coeff&#60;/code&#62; but not &#60;code&#62;medium.alpha_power&#60;/code&#62;. Just assign the values the same as the sound speed.&#60;/p&#62;
&#60;p&#62;If you're trying to simulate highly absorbing materials such as bone, you could make use of &#60;a href=&#34;http://www.k-wave.org/downloads/fitPowerLawParamsMulti.m&#34;&#62;this function&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>drewc830 on "Heterogeneous Attenuation Values"</title>
			<link>http://www.k-wave.org/forum/topic/heterogeneous-attenuation-values#post-7076</link>
			<pubDate>Wed, 16 Oct 2019 19:58:59 +0000</pubDate>
			<dc:creator>drewc830</dc:creator>
			<guid isPermaLink="false">7076@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I am writing a simulation to show the effectiveness (or lack thereof) of b-mode ultrasound through bone/tissue interfaces.  I have some results thus far that are decent but could be improved upon by adjusting some parameters in the code.&#60;/p&#62;
&#60;p&#62;I was wondering if it was possible to assign an attenuation coefficient map instead of using the constant value provided in the 3d_bmode example. &#60;/p&#62;
&#60;p&#62;I couldn't find any other topics on this specific item.  I can also post my results if that is helpful.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
