I defined a medium with several elastic wave sources according to the following codes. In this simulation, all sources have the same phase and amplitude. Now, I need to define different phases and amplitudes for each source. For instance, source #1 has a phase equal to 0 and an amplitude equal to 1, source #2 has a phase equal to 90 and an amplitude equal to 2, and so on. Is there any way to do so?
source_y_pos=[ceil(Ny/8), ceil(Ny/4), ceil(3*Ny/8), ceil(Nz/2), ceil(5*Ny/8), ceil(3*Ny/4), ceil(7*Ny/8)];
source.u_mask (source_y_pos, source_y_pos, 1)= 1;
source.u_mask (source_y_pos, 1, source_y_pos)= 1;
source.u_mask (1, source_y_pos, source_y_pos)= 1;
source.u_mask (source_y_pos, source_y_pos, end)= 1;
source.u_mask (source_y_pos, end, source_y_pos)= 1;
source.u_mask (end, source_y_pos, source_y_pos)= 1;
source_freq = 500;
source_mag = 50;
source.uz = source_mag*sin(2*pi*source_freq*kgrid.t_array);