k-Wave Toolbox |
Create an evenly spaced array of time points
[t_array, dt] = makeTime(kgrid, c) [t_array, dt] = makeTime(kgrid, c, cfl) [t_array, dt] = makeTime(kgrid, c, cfl, t_end) [t_array, dt] = makeTime(kgrid, c, [], t_end)
makeTime
creates an evenly spaced array of time points for use with the k-Wave simulation codes based on the Courant-Friedrichs-Lewy stability level cfl
and the grid size. The time-step dt
is chosen based on the cfl
level (the default setting is 0.3), and the number of time-steps is chosen based on the time it takes to travel from one corner of the grid specified by kgrid
to the geometrically opposite corner. Note, if c is given as a matrix, the calculation for dt
is based on the maximum value, and the calculation for t_end
based on the minimum value.
|
k-Wave grid structure returned by |
|
maximum sound speed in the medium [m/s] |
|
Courant-Friedrichs-Lewy stability criterion (default = 0.3) |
|
maximum time [s] |
|
array of evenly spaced time points [s] |
|
time step [s] |
makeGrid
, kspaceFirstOrder1D
, kspaceFirstOrder2D
, kspaceFirstOrder3D
makeSphericalSection | makeTransducer |
© 2009-2014 Bradley Treeby and Ben Cox.