<?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: question about shear wave propagation examples</title>
		<link>http://www.k-wave.org/forum/topic/question-about-shear-wave-propagation-examples</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 06:44:37 +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/question-about-shear-wave-propagation-examples" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "question about shear wave propagation examples"</title>
			<link>http://www.k-wave.org/forum/topic/question-about-shear-wave-propagation-examples#post-4823</link>
			<pubDate>Tue, 04 Nov 2014 09:23:31 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4823@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Yu,&#60;/p&#62;
&#60;p&#62;If you want to define a pressure source, you must assign it to all components of the normal stress, i.e., in 2D &#60;code&#62;source.sxx = -p&#60;/code&#62; and &#60;code&#62;source.syy = -p&#60;/code&#62;. You can take a look at the m-file for the &#60;a href=&#34;http://www.k-wave.org/documentation/example_ewp_shear_wave_snells_law.php&#34;&#62;Shear Waves And Critical Angle Reflection Example&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;It's also a good idea to filter your input signal using &#60;code&#62;filterTimeSeries&#60;/code&#62; to make sure that the source doesn't contain frequencies not supported by the computational grid. &#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>firetripper on "question about shear wave propagation examples"</title>
			<link>http://www.k-wave.org/forum/topic/question-about-shear-wave-propagation-examples#post-4822</link>
			<pubDate>Mon, 03 Nov 2014 18:50:40 +0000</pubDate>
			<dc:creator>firetripper</dc:creator>
			<guid isPermaLink="false">4822@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;1. In &#34;example_ewp_layered_medium.m&#34;, how to define an explosive source. the example define initial pressure using &#34;source.p0&#34;, but did not define how this pressure will change with time.&#60;/p&#62;
&#60;p&#62;2. I want to define a time varying stress source (6 cycles of the rectangular wave). Below is the code, can you point out whether my code is right?&#60;br /&#62;
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&#60;br /&#62;
disc_magnitude = 0; % [Pa]&#60;br /&#62;
disc_x_pos = 128;    % [grid points]&#60;br /&#62;
disc_y_pos = 128;    % [grid points]&#60;br /&#62;
disc_radius = 5;    % [grid points]&#60;br /&#62;
source.s_mask = makeDisc(Nx, Ny, disc_x_pos, disc_y_pos, disc_radius);&#60;/p&#62;
&#60;p&#62;% define a time varying pressure source&#60;br /&#62;
source_mag = 5;&#60;/p&#62;
&#60;p&#62;t=0:1e-6:1000e-6;&#60;br /&#62;
number_t=length(t);&#60;br /&#62;
signal=zeros(1,number_t);&#60;/p&#62;
&#60;p&#62;fs_rec=1e6;&#60;br /&#62;
t_rec = -90e-6:1/fs_rec:90e-6;&#60;br /&#62;
w = 30e-6;&#60;br /&#62;
y = rectpuls(t_rec,w);&#60;br /&#62;
number_y=length(y);&#60;/p&#62;
&#60;p&#62;for i=1:6&#60;br /&#62;
    signal_temp((i-1)*number_y+1:i*number_y)=y;&#60;br /&#62;
end&#60;br /&#62;
signalonecycle=signal_temp(59:end);&#60;br /&#62;
number_signalonecycle=length(signalonecycle);&#60;br /&#62;
signal(1:number_signalonecycle)=signalonecycle;&#60;br /&#62;
source.sxx = source_mag*signal;&#60;br /&#62;
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&#60;br /&#62;
Thanks,&#60;br /&#62;
Yu
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
