Skip to content

Commit a035fc6

Browse files
authored
fix(em): incorrect diffraction matrix in RadioMaterial (#68)
1 parent 19c48d6 commit a035fc6

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/sionna/rt/radio_materials/radio_material.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,16 +1078,17 @@ def a_p_m(beta):
10781078
w_n_out = jones_matrix_rotator(ko_local, e_r_s_n_hat, phi_hat)
10791079

10801080
# Compute fresnel coefficients for both faces
1081+
wavelength = dr.two_pi / wavenumber
10811082
r_te_0, r_tm_0, _, _ =\
10821083
itu_coefficients_single_layer_slab(dr.abs(dr.sin(phi_prime)),
10831084
eta,
10841085
self._d,
1085-
wavenumber)
1086+
wavelength)
10861087
r_te_n, r_tm_n, _, _ =\
10871088
itu_coefficients_single_layer_slab(dr.abs(dr.sin(exterior_angle-phi)),
10881089
eta,
10891090
self._d,
1090-
wavenumber)
1091+
wavelength)
10911092
#
10921093
# Construct R_0 and R_n matrices
10931094
#

test/unit/test_radio_maps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ def test_diffraction_street_canyon():
518518
diffraction=True,
519519
diffraction_lit_region=True)
520520

521-
rx_indices = [(120, 120), (160, 50), (160, 150), (120, 200), (220, 100),
521+
rx_indices = [(120, 120), (170, 50), (160, 60), (120, 200), (220, 100),
522522
(175, 350)]
523523
for i, p in enumerate(rx_indices):
524524
rx_pos = rmap.cell_centers[p[0], p[1]]

0 commit comments

Comments
 (0)