示例#1
0
 def test1(self):
     'IsotropicKernel'
     kernel = ms.isotropickernel( 1., 1. )
     
     ckernel = mh.scattererEngine( kernel )
     
     ev = mcni.neutron( r = (-5,0,0), v = (3000,0,0) )
     
     ckernel.scatter(ev)
     print ev
     return
    def test1(self):
        'IsotropicKernel'
        kernel = ms.isotropickernel(1., 1.)

        ckernel = mh.scattererEngine(kernel)

        ev = mcni.neutron(r=(-5, 0, 0), v=(3000, 0, 0))

        ckernel.scatter(ev)
        print ev
        return
示例#3
0
 def createKernel( self, **kwds ):
     from mccomponents.sample import isotropickernel
     return isotropickernel()