summaryrefslogtreecommitdiff
path: root/optics.py
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-08-05 22:15:59 -0400
committerStan Seibert <stan@mtrr.org>2011-08-05 22:15:59 -0400
commit9e93ec41ca5c7fcc113df18aca29480dbaba012d (patch)
treef39bef970a44d384c79277ac717772a7bd4d012b /optics.py
parent2f668983993971d8ca997e6f7d15ec086f55b702 (diff)
downloadchroma-9e93ec41ca5c7fcc113df18aca29480dbaba012d.tar.gz
chroma-9e93ec41ca5c7fcc113df18aca29480dbaba012d.tar.bz2
chroma-9e93ec41ca5c7fcc113df18aca29480dbaba012d.zip
Tony discovered that Inf is not a good value for a scattering length. :)
Diffstat (limited to 'optics.py')
-rw-r--r--optics.py6
1 files changed, 3 insertions, 3 deletions
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')