From 9e93ec41ca5c7fcc113df18aca29480dbaba012d Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Fri, 5 Aug 2011 22:15:59 -0400 Subject: Tony discovered that Inf is not a good value for a scattering length. :) --- optics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'optics.py') diff --git a/optics.py b/optics.py index dea5a20..3580dc4 100644 --- a/optics.py +++ b/optics.py @@ -3,8 +3,8 @@ from geometry import Material, Surface vacuum = Material('vacuum') vacuum.set('refractive_index', 1.0) -vacuum.set('absorption_length', np.inf) -vacuum.set('scattering_length', np.inf) +vacuum.set('absorption_length', 1e6) +vacuum.set('scattering_length', 1e6) lambertian_surface = Surface('lambertian_surface') lambertian_surface.set('reflect_diffuse', 1) @@ -153,7 +153,7 @@ glass = Material('glass') glass.set('refractive_index', 1.49) glass.absorption_length = \ np.array([(200, 0.1e-6), (300, 0.1e-6), (330, 1.0), (500, 2.0), (600, 1.0), (770, 0.5), (800, 0.1e-6)]) -glass.set('scattering_length', np.inf) +glass.set('scattering_length', 1e6) # From SNO+ database acrylic_sno = Material('acrylic_sno') -- cgit