<?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: Scaling fator when impose dirichlet boundary conditions</title>
		<link>http://www.k-wave.org/forum/topic/scaling-fator-when-impose-dirichlet-boundary-conditions</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 01:03: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/scaling-fator-when-impose-dirichlet-boundary-conditions" rel="self" type="application/rss+xml" />

		<item>
			<title>HD Y on "Scaling fator when impose dirichlet boundary conditions"</title>
			<link>http://www.k-wave.org/forum/topic/scaling-fator-when-impose-dirichlet-boundary-conditions#post-9186</link>
			<pubDate>Wed, 19 Feb 2025 22:26:34 +0000</pubDate>
			<dc:creator>HD Y</dc:creator>
			<guid isPermaLink="false">9186@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi all, &#60;/p&#62;
&#60;p&#62;when imposing pressure dirichlet boundary conditions, according to Section 2.2 Acoustic Source Terms in k-wave manual, equation (2.19), there is a scaling factor applied to source.p.  &#60;/p&#62;
&#60;p&#62;    1/(c_02N) 2 c_0/\Delta x&#60;/p&#62;
&#60;p&#62;There is a constant 2 in the factor, is there any reason choosing this constant?  &#60;/p&#62;
&#60;p&#62;In the implementation, kspaceFirstOrder3D.m,  from line 930 on:&#60;/p&#62;
&#60;p&#62; switch source.p_mode&#60;br /&#62;
            case 'dirichlet'&#60;/p&#62;
&#60;p&#62;                % enforce source values as a dirichlet boundary condition&#60;br /&#62;
                rhox(p_source_pos_index) = source.p(p_source_sig_index, t_index);&#60;br /&#62;
                rhoy(p_source_pos_index) = source.p(p_source_sig_index, t_index);&#60;br /&#62;
                rhoz(p_source_pos_index) = source.p(p_source_sig_index, t_index);&#60;/p&#62;
&#60;p&#62; .....&#60;/p&#62;
&#60;p&#62;However, here the source.p is directly assigned to the density without any scaling factor!&#60;br /&#62;
Is there any thing missing in this source code?  &#60;/p&#62;
&#60;p&#62;This seems to me a bug in the code.  Can any developer provide some details on this? &#60;/p&#62;
&#60;p&#62;Thank you in advance.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
