Exemplo n.º 1
0
 def _faces_default(self):
     facelist = FaceList(owner=self)
     facelist.faces = [
         OffAxisParabolicFace(owner=self,
                              EFL=self.EFL,
                              diameter=self.diameter)
     ]
     return facelist
Exemplo n.º 2
0
 def _faces_default(self):
     m = self.material
     fl = FaceList(owner=self)
     fl.faces = [
         RectangularFace(owner=self, z_plane=0, material=m),
         RectangularFace(owner=self,
                         z_plane=-self.thickness,
                         invert_normal=True,
                         material=m)
     ]
     return fl
Exemplo n.º 3
0
 def _faces_default(self):
     self.apply_materials()
     m = self.material
     fl = FaceList(owner=self)
     fl.faces = [
         CircularFace(owner=self, z_plane=0, material=m),
         CircularFace(owner=self,
                      z_plane=self.thickness,
                      invert_normal=True,
                      material=m)
     ]
     return fl
Exemplo n.º 4
0
 def _faces_default(self):
     fl = FaceList(owner=self)
     sqrt2 = numpy.sqrt(2)
     x = sqrt2 * numpy.cos(numpy.pi * 2. / 3)
     y = sqrt2 * numpy.sin(numpy.pi * 2. / 3)
     m = self.material
     fl.faces = [
         ElipticalPlaneFace(owner=self, g_x=sqrt2, g_y=0, material=m),
         ElipticalPlaneFace(owner=self, g_x=x, g_y=y, material=m),
         ElipticalPlaneFace(owner=self, g_x=x, g_y=-y, material=m),
     ]
     return fl
Exemplo n.º 5
0
 def _faces_default(self):
     fl = FaceList(owner=self)
     fl.faces = [
         CircularFace(owner=self,
                      diameter=self.diameter,
                      material=self.material),
         SphericalFace(owner=self,
                       diameter=self.diameter,
                       material=self.material,
                       z_height=self.CT,
                       curvature=self.curvature)
     ]
     return fl
Exemplo n.º 6
0
 def _faces_default(self):
     facelist = FaceList(owner=self)
     facelist.faces = [
         EllipsoidalFace(owner=self,
                         x1=self.X_bounds[0],
                         x2=self.X_bounds[1],
                         y1=self.Y_bounds[0],
                         y2=self.Y_bounds[1],
                         z1=self.Z_bounds[0],
                         z2=self.Z_bounds[1],
                         major=self.axes[0],
                         minor=self.axes[1])
     ]
     return facelist
Exemplo n.º 7
0
 def _faces_default(self):
     self.apply_materials()
     fl = FaceList(owner=self)
     fl.faces = [
         SphericalFace(owner=self,
                       diameter=self.diameter,
                       material=self._material1,
                       z_height=self.CT / 2,
                       curvature=self.curvature1),
         SphericalFace(owner=self,
                       diameter=self.diameter,
                       material=self._material2,
                       z_height=-self.CT / 2,
                       curvature=self.curvature2),
     ]
     return fl
Exemplo n.º 8
0
 def _faces_default(self):
     m = self.material
     fl = FaceList(owner=self)
     fl.faces = [CircularFace(owner=self, material=m)]
     return fl
Exemplo n.º 9
0
 def _faces_default(self):
     fl = FaceList(owner=self)
     fl.faces = [RectangularFace(owner=self, material=self.material)]
     return fl
Exemplo n.º 10
0
 def _faces_default(self):
     fl = FaceList(owner=self)
     fl.faces = self.make_faces()
     return fl
Exemplo n.º 11
0
 def __init__(self, *args, **kwargs):
     super(Extruded_bezier, self).__init__(*args, **kwargs)
     fl = FaceList(owner=self)
     fl.faces = self.make_faces()
     self.faces = fl