From aa5848e7ae6d3834dd15ebdc15c44ad29dde76f3 Mon Sep 17 00:00:00 2001 From: khashabri Date: Thu, 7 Nov 2019 12:28:19 +0100 Subject: [PATCH] Fix missing deg2rad in RCS sphere tutorial #58 --- python/Tutorials/RCS_Sphere.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/Tutorials/RCS_Sphere.py b/python/Tutorials/RCS_Sphere.py index df801ce..6daaebd 100644 --- a/python/Tutorials/RCS_Sphere.py +++ b/python/Tutorials/RCS_Sphere.py @@ -59,7 +59,7 @@ sphere_metal = CSX.AddMetal( 'sphere' ) # create a perfect electric conductor (P sphere_metal.AddSphere(priority=10, center=[0, 0, 0], radius=sphere_rad) # plane wave excitation -k_dir = [cos(inc_angle), sin(inc_angle), 0] # plane wave direction +k_dir = [cos(np.deg2rad(inc_angle)), sin(np.deg2rad(inc_angle)), 0] # plane wave direction E_dir = [0, 0, 1] # plane wave polarization --> E_z pw_exc = CSX.AddExcitation('plane_wave', exc_type=10, exc_val=E_dir)