<?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: 气泡缺陷模拟</title>
		<link>http://www.k-wave.org/forum/topic/%e6%b0%94%e6%b3%a1%e7%bc%ba%e9%99%b7%e6%a8%a1%e6%8b%9f</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Fri, 15 May 2026 03:48:33 +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/%e6%b0%94%e6%b3%a1%e7%bc%ba%e9%99%b7%e6%a8%a1%e6%8b%9f" rel="self" type="application/rss+xml" />

		<item>
			<title>sudelong on "气泡缺陷模拟"</title>
			<link>http://www.k-wave.org/forum/topic/%e6%b0%94%e6%b3%a1%e7%bc%ba%e9%99%b7%e6%a8%a1%e6%8b%9f#post-8491</link>
			<pubDate>Fri, 01 Apr 2022 02:36:47 +0000</pubDate>
			<dc:creator>sudelong</dc:creator>
			<guid isPermaLink="false">8491@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I would like to ask about simulating bubble defects when using sinusoidal filtering to display values that exceed the maximum variable allowed by the program. Please ask where the error occurred&#60;/p&#62;
&#60;p&#62;% create the computational grid&#60;br /&#62;
Nx = 110;           % number of grid points in the x (row) direction&#60;br /&#62;
Ny = 110;           % number of grid points in the y (column) direction&#60;br /&#62;
dx = 10e-3/Nx;      % grid point spacing in the x direction [m]&#60;br /&#62;
dy = dx;            % grid point spacing in the y direction [m]&#60;br /&#62;
kgrid = kWaveGrid(Nx, dx, Ny, dy);&#60;br /&#62;
% create initial pressure distribution using makeDisc&#60;br /&#62;
disc_x_pos = 55;    % [grid points]&#60;br /&#62;
disc_y_pos = 55;    % [grid points]&#60;br /&#62;
disc_radius = 10;    % [grid points]&#60;br /&#62;
disc = makeDisc(Nx, Ny, disc_x_pos, disc_y_pos, disc_radius);&#60;br /&#62;
% define the properties of the propagation medium&#60;br /&#62;
medium.sound_speed(disc == 1) = 340  ;                    % [m/s]&#60;br /&#62;
medium.density(disc == 1)     = 1290 ;                    % [kg/m^3]%&#60;br /&#62;
% create the time array&#60;br /&#62;
kgrid.makeTime(medium.sound_speed);&#60;br /&#62;
% define a single source point&#60;br /&#62;
source.p_mask = zeros(Nx, Ny);&#60;br /&#62;
source.p_mask(29 , 40) = 1;&#60;br /&#62;
% define a time varying sinusoidal source&#60;br /&#62;
source_freq =2.5e6;   % [Hz]&#60;br /&#62;
source_mag = 10;         % [Pa]&#60;br /&#62;
source.p = source_mag * sin(2 * pi * source_freq * kgrid.t_array);&#60;br /&#62;
% filter the source to remove high frequencies not supported by the grid&#60;br /&#62;
source.p = filterTimeSeries(kgrid, medium, source.p);
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
