kwave.kWaveSimulation_helper.create_storage_variables module

calculate_all_vars_size(kgrid, is_pml_inside, pml_size)[source]
compute_triangulation_points(flags, kgrid, record)[source]
create_normalized_wavenumber_vectors(record, kgrid, is_record_u_split_field)[source]
Parameters:
create_sensor_variables(record_old, kgrid, num_sensor_points, num_recorded_time_points, all_vars_size)[source]
Parameters:

record_old (dotdict)

create_shift_operators(record, record_old, kgrid, is_use_sg)[source]
Parameters:
create_storage_variables(kgrid, sensor, opt, values, flags)[source]
Parameters:
create_transducer_buffer(is_transducer_sensor, is_transducer_receive_elevation_focus, sensor, num_sensor_points, num_recorded_time_points, sensor_data_buffer_size, flags, sensor_data)[source]
get_num_of_sensor_points(is_blank_sensor, is_binary_sensor_mask, kgrid_k, sensor_mask_index, sensor_x)[source]

Returns the number of sensor points for a given set of sensor parameters.

Parameters:
  • is_blank_sensor (bool) – Whether the sensor is blank or not.

  • is_binary_sensor_mask (bool) – Whether the sensor mask is binary or not.

  • kgrid_k (ndarray) – An array of k-values for the k-Wave grid.

  • sensor_mask_index (list) – List of sensor mask indices.

  • sensor_x (list) – List of sensor x-coordinates.

Returns:

The number of sensor points.

Return type:

int

get_num_recorded_time_points(kgrid_dim, Nt, stream_to_disk, record_start_index)[source]

calculate the number of time points that are stored - if streaming data to disk, reduce to the size of the

sensor_data matrix based on the value of self.options.stream_to_disk

  • if a user input for sensor.record_start_index is given, reduce

    the size of the sensor_data matrix based on the value given

Parameters:
  • kgrid_dim

  • Nt

  • stream_to_disk

  • record_start_index

Returns:

set_flags(flags, sensor_x, sensor_mask, is_cartesian_interp)[source]