Skip to content

Commit b38c0b7

Browse files
committed
change i^-n to i^n in cylindrical radial function so that k-vector points the incoming direction
1 parent 88fd07e commit b38c0b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/modal_beamforming_open_circular_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
D = micarray.modal.radial.circ_diagonal_mode_mat(Dn)
2727

2828
# compute microphone signals for an incident broad-band plane wave
29-
p = np.exp(-1j * k[:, np.newaxis]*r * np.cos(pol - pw_angle))
29+
p = np.exp(1j * k[:, np.newaxis]*r * np.cos(pol - pw_angle))
3030
# compute plane wave decomposition
3131
A_pwd = np.matmul(np.matmul(np.conj(Psi_q.T), D), Psi_p)
3232
q_pwd = np.squeeze(np.matmul(A_pwd, np.expand_dims(p, 2)))

micarray/modal/radial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def circular_pw(N, k, r, setup):
260260

261261
bn = circ_radial_weights(N, kr, setup)
262262
for i, x in enumerate(kr):
263-
bn[i, :] = bn[i, :] * (1j)**(-n)
263+
bn[i, :] = bn[i, :] * (1j)**(n)
264264
return bn
265265

266266

0 commit comments

Comments
 (0)