diff options
author | Stan Seibert <stan@mtrr.org> | 2011-08-05 22:15:59 -0400 |
---|---|---|
committer | Stan Seibert <stan@mtrr.org> | 2011-08-05 22:15:59 -0400 |
commit | 9e93ec41ca5c7fcc113df18aca29480dbaba012d (patch) | |
tree | f39bef970a44d384c79277ac717772a7bd4d012b | |
parent | 2f668983993971d8ca997e6f7d15ec086f55b702 (diff) | |
download | chroma-9e93ec41ca5c7fcc113df18aca29480dbaba012d.tar.gz chroma-9e93ec41ca5c7fcc113df18aca29480dbaba012d.tar.bz2 chroma-9e93ec41ca5c7fcc113df18aca29480dbaba012d.zip |
Tony discovered that Inf is not a good value for a scattering length. :)
-rw-r--r-- | optics.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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') |