create_circ_planar_array()
Description: This function creates a planar array of circular transducers.
Usage
transducer = create_circ_planar_array(nx, ny, radius, kerf_x, kerf_y);
transducer = create_circ_planar_array(nx, ny, radius, kerf_x, kerf_y, center);
transducer = create_circ_planar_array(nx, ny, radius, kerf_x, kerf_y, center,override);
Arguments
- nx Number of elements in the x direction.
- ny Number of elements in the y direction.
- radius Radius each element in m. All elements in the array will be 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 that is the coordinate of the center of the array. This argument is optional.
- 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 24 x 8 planar array of 1.5mm elements
el_x = 24;
el_y = 8;
radius = 1.5e-3;
kerf_x = 1e-3;
kerf_y = 1e-3;
xdcr = create_circ_planar_array(el_x, el_y, radius, kerf_x, kerf_y);
draw_array(xdcr);