Esempio n. 1
0
 def setUp(self):
     self.mat = mat = ModelMaterial(n=1.5)
     d = np.random.randn(3)*1e-1 + (0, 0, 1.)
     a = np.random.randn(3)*1e-8
     a[1:] = 0
     self.s = Spheroid(curvature=.1, distance=.2, material=mat,
                       direction=d, angles=a)
     de = self.s.excidence(1/self.s.material.n)
     self.sa = Spheroid(direction=de)
Esempio n. 2
0
 def setUp(self):
     self.mat = mat = ModelMaterial(n=1.5)
     self.s0 = Spheroid(curvature=0., distance=0., material=mat)
     self.s = Spheroid(curvature=.1, distance=0, material=mat)
     self.sm0 = Spheroid(curvature=0, distance=0, material=mirror)
     self.sm = Spheroid(curvature=.1, distance=0, material=mirror)
Esempio n. 3
0
 def setUp(self):
     self.s = Spheroid(distance=2.,
                       direction=(1, 3, 4.),
                       angles=(.3, .2, .1))