create_rect_planar_array()
Description: This function creates a planar array of rectangular transducers.
Usage
transducer = create_rect_planar_array(nx, ny, width, height, kerf_x, kerf_y);
transducer = create_rect_planar_array(nx, ny, width, height, kerf_x, kerf_y,center);
transducer = create_rect_planar_array(nx, ny, width, height, kerf_x, kerf_y,center, override);
Arguments
- nx Number of elements in the x direction.
- ny Number of elements in the y direction.
- width Width of a single element in meters, all elements in the array are the same size.
- height Height of a single element in meters, all elements in the array are the same size.
- kerf_x Kerf (edge-to-edge spacing) in the x direction.
- kerf_y Kerf (edge-to-edge spacing) in the y direction.
- center Three element array describing the coordinates of the center of the array.
- override Omit to allow error checking, any value to bypass error checking.
Output Parameters
- transducer An array of transducer structs.
Notes
The center of the array is defined to be the geometric center
of the rectangle that bounds the array. All coordinates are expressed in meters.
Transducer arrays used one-dimensional indexing prior to FOCUS version 0.332. One-dimensional indexing is still possible, though the indices may not match those used in older versions of FOCUS.
Calling this function with no arguments will cause the program to prompt the user for each required value.
Example
% Create a 32 x 1 element planar array of 0.5mm x 10mm elements
el_x = 32;
el_y = 1;
width = 0.6e-3;
height = 10e-3;
kerf_x = 0.3e-3;
kerf_y = 0;
xdcr = create_rect_planar_array(el_x, el_y, width, height, kerf_x, kerf_y);
draw_array(xdcr);