コード例 #1
0
 def createKernel( self, **kwds ):
     def getval(key):
         v = kwds.get(key)
         if v: return self._parse(v)
         return v
     kargs = dict(
         average_mass = getval('average_mass'),
         scattering_xs = getval('scattering_xs'),
         absorption_xs = getval('absorption_xs'),
         )
     from mccomponents.sample.phonon \
          import incoherentinelastic_kernel as f
     return f(None, **kargs)
コード例 #2
0
    def createKernel(self, **kwds):
        def getval(key):
            v = kwds.get(key)
            if v: return self._parse(v)
            return v

        kargs = dict(
            average_mass=getval('average_mass'),
            scattering_xs=getval('scattering_xs'),
            absorption_xs=getval('absorption_xs'),
        )
        from mccomponents.sample.phonon \
             import incoherentinelastic_kernel as f
        return f(None, **kargs)
コード例 #3
0
    def createKernel( self, **kwds ):
        dw_core = self._parse( kwds['dw_core'] )

        def getval(key):
            v = kwds.get(key)
            if v: return self._parse(v)
            return v
        kargs = dict(
            scattering_xs = getval('scattering_xs'),
            absorption_xs = getval('absorption_xs'),
            )
        
        from mccomponents.sample.phonon \
             import incoherentelastic_kernel as f
        return f(dw_core, **kargs)
コード例 #4
0
    def createKernel(self, **kwds):
        dw_core = self._parse(kwds['dw_core'])

        def getval(key):
            v = kwds.get(key)
            if v: return self._parse(v)
            return v

        kargs = dict(
            scattering_xs=getval('scattering_xs'),
            absorption_xs=getval('absorption_xs'),
        )

        from mccomponents.sample.phonon \
             import incoherentelastic_kernel as f
        return f(dw_core, **kargs)
コード例 #5
0
 def createKernel( self, **kwds ):
     def getval(key):
         v = kwds.get(key)
         if v: return self._parse(v)
         return v
     Nmax = kwds.get('Nmax')
     if Nmax: Nmax = int(Nmax)
     kargs = dict(
         Qmax = getval('Qmax'),
         average_mass = getval('average_mass'),
         scattering_xs = getval('scattering_xs'),
         absorption_xs = getval('absorption_xs'),
         Nmax = Nmax,
         )
     from mccomponents.sample.phonon \
          import multiphonon_kernel as f
     return f(**kargs)
コード例 #6
0
ファイル: MultiPhonon_Kernel.py プロジェクト: mcvine/mcvine
 def createKernel( self, **kwds ):
     def getval(key):
         v = kwds.get(key)
         if v: return self._parse(v)
         return v
     Nmax = kwds.get('Nmax')
     if Nmax: Nmax = int(Nmax)
     kargs = dict(
         Qmax = getval('Qmax'),
         dQ = getval('dQ'),
         Emax = getval('Emax'),
         average_mass = getval('average_mass'),
         scattering_xs = getval('scattering_xs'),
         absorption_xs = getval('absorption_xs'),
         Nmax = Nmax,
         )
     from mccomponents.sample.phonon \
          import multiphonon_kernel as f
     return f(**kargs)
 def createKernel( self, **kwds ):
     max_omega = self._parse( kwds['max-omega'] )
     from mccomponents.sample.phonon \
          import coherentinelastic_polyxtal_kernel as f
     return f(None, max_omega = max_omega)
 def createKernel(self, **kwds):
     from mccomponents.sample.phonon \
          import coherentinelastic_singlextal_kernel as f
     return f(None)
 def createKernel( self, **kwds ):
     from mccomponents.sample.phonon \
          import coherentinelastic_singlextal_kernel as f
     return f(None)
コード例 #10
0
 def createKernel(self, **kwds):
     max_omega = self._parse(kwds['max-omega'])
     from mccomponents.sample.phonon \
          import coherentinelastic_polyxtal_kernel as f
     return f(None, max_omega=max_omega)