| k-Wave Toolbox |
|
Write grid and PML properties to a k-Wave HDF5 file
writeGrid(filename, grid_size, grid_spacing, pml_size, pml_alpha, Nt, dt, c_ref)
writeGrid creates and writes the wavenumber grids and PML variables required by the k-Wave C++ code to the HDF5 file specified by the user.
List of parameters that are written:
NxNxNyNzNtdtdxdydzc_refddx_k_shift_pos_rddx_k_shift_neg_rddy_k_shift_posddy_k_shift_negddz_k_shift_posddz_k_shift_negx_shift_neg_ry_shift_neg_rz_shift_neg_rpml_x_sgxpml_y_sgypml_z_sgzpml_xpml_ypml_zpml_x_alphapml_y_alphapml_z_alphapml_x_sizepml_y_sizepml_z_size
|
name of HDF5 file to write matrix to |
|
|
|
|
|
|
|
|
|
number of time points |
|
time step |
|
scalar sound speed used in the k-space operator and to define the pml variables |
writeAttributes, writeFlags, writeMatrix
|
writeFlags | writeMatrix | ![]() |
© 2009-2014 Bradley Treeby and Ben Cox.