def init_surfaces(self): ap = oa.CircularAperture(self.size) s1 = os.Surface(x=np.array([0, 0, 0, 1]), xn=-self.xn, xt=self.xt, n=self.n, material=self.material, aperture=ap) s2 = os.Surface(x=np.array([0, 0, self.thickness, 1]), xn=self.xn, xt=self.xt, n=self.n, material=air, aperture=ap) self.surfaces = [s1, s2]
def init_surfaces(self): ap = oa.CircularAperture(self.size) # s1 = os.SphericalSurface(x=self.x, xn=-self.xn, xt=self.xt, n=self.n, r=self.r1, # material=self.material, aperture=ap) s1 = os.SphericalSurface(x=np.array([0, 0, 0, 1]), xn=-self.xn, xt=self.xt, n=self.n, r=self.r1, material=self.material, aperture=ap) # s2 = os.Surface(x=self.x, xn=self.xn, xt=self.xt, n=1.0, material=air, aperture=ap) s2 = os.Surface(x=np.array([0, 0, self.thickness, 1]), xn=self.xn, xt=self.xt, n=1.0, material=air, aperture=ap) # s2.setPosition(self.x+np.array([0,0,self.thickness,0])) self.surfaces = [s1, s2]
def init_surfaces(self): ap = oa.CircularAperture(size=self.size) s1 = os.Surface(x=np.array([0, 0, 0, 1]), xn=-self.xn, xt=self.xt, n=self.n, material=self.material, aperture=ap) s1.set_rotation_internal(0, 0) # s2 = os.Surface(x=self.x, xn=self.xn, xt=self.xt, n=1.0, material=air, aperture=ap) s2 = os.Surface( x=np.array([0, 0, self.thickness, 1]), xn=self.xn, xt=self.xt, n=1.0, material=air, aperture=ap, ) s2.set_rotation_internal(0, 0) self.surfaces = [s1]