Hi there.
I'm getting started with trying to simulate the propagation of a simple acoustic wave through water. I am in an exploration stage at the moment and the majority of my code is an adaptation of the given examples. I was wondering if you could help me understand the following.
I have put a line source (with absorbing boundaries switched off) at an angle of pi/4 wrt the grid axes. The grid (which I copied from your example) is as follows
% create the computational grid
Nx = 256; % number of grid points in the x (row) direction
Ny = 256; % number of grid points in the y (column) direction
dx = 500e-6/Nx; % grid point spacing in the x direction [m]
The 'video' playback looks reasonable - I have a screenshot of it here.
When I increase the number of points in the grid the behaviour of the acoustic field becomes less believable. At Nx = Ny > 470 the propagating wave starts off looking more and more granular. By my estimation increasing Nx,Ny should increase the number of points per wavelength. An example where this granularity is quite clear is
Nx = 512; % number of grid points in the x (row) direction
Ny = 512; % number of grid points in the y (column) direction
dx = 500e-6/Nx; % grid point spacing in the x direction [m]
The playback changes to something like
I expect this issue is borne out of my lack of experience using this toolbox. My question is whether this looks like a familiar error, eg spatial / temporal dispersion?
The source is a single cycle sinusoid of frequency 5MHz.
Many thanks,