Example #1
0
def andisp(hop=-1.,
           dist='uniform',
           loc=0.,
           scale=1.,
           shape=(10, ),
           bcond='p',
           coup=1.,
           mix=.1,
           mom=1.):
    """Define Anderson-Ising model with polarized impurity spins (spin-up)."""
    # created 2013-07-12, modified 2014-01-27
    # former tb._andis (developed 2012-09-10 - 2012-11-19)
    # former tb._Andis (developed 2012-06-15 - 2012-06-19)
    mix = misc.get_ratio(mix)
    dim = len(shape)
    scell = sc.SuperCell(dim=dim)
    dist = sc.dist.select(dist)
    scell.add_andisp(pot=dist(loc, scale),
                     hop=hop,
                     bcond=bcond,
                     shape=shape,
                     coup=coup,
                     mix=mix,
                     mom=mom)
    pset = bundle.Bundle(dist=dist,
                         dim=dim,
                         loc=loc,
                         scale=scale,
                         shape=shape,
                         mix=mix,
                         coup=coup,
                         mom=mom,
                         hop=hop,
                         pot=loc)
    return scell, pset
Example #2
0
File: define.py Project: proggy/tb
def heis(mix=0.1, range=1.0, coup=1.0, mom=1.0, shell=1, bcond="p", shape=(10,)):
    """Define homogeneous dilute Heisenberg model."""
    # created 2013-07-12, modified 2013-07-18
    # former tb._Heis (developed 2012-03-14 - 2012-09-06)
    mix = misc.get_ratio(mix)
    dim = len(shape)
    scell = sc.SuperCell(dim=dim)
    scell.add_heis(range=range, coup=coup, mix=mix, mom=mom, bcond=bcond, shape=shape, shell=shell)
    pset = bundle.Bundle(dim=dim, shape=shape, mix=mix, coup=coup, mom=mom, shell=shell, range=range)
    return scell, pset
Example #3
0
File: define.py Project: proggy/tb
def andisp(hop=-1.0, dist="uniform", loc=0.0, scale=1.0, shape=(10,), bcond="p", coup=1.0, mix=0.1, mom=1.0):
    """Define Anderson-Ising model with polarized impurity spins (spin-up)."""
    # created 2013-07-12, modified 2014-01-27
    # former tb._andis (developed 2012-09-10 - 2012-11-19)
    # former tb._Andis (developed 2012-06-15 - 2012-06-19)
    mix = misc.get_ratio(mix)
    dim = len(shape)
    scell = sc.SuperCell(dim=dim)
    dist = sc.dist.select(dist)
    scell.add_andisp(pot=dist(loc, scale), hop=hop, bcond=bcond, shape=shape, coup=coup, mix=mix, mom=mom)
    pset = bundle.Bundle(
        dist=dist, dim=dim, loc=loc, scale=scale, shape=shape, mix=mix, coup=coup, mom=mom, hop=hop, pot=loc
    )
    return scell, pset
Example #4
0
File: define.py Project: proggy/tb
def andheisp(hop=-1.0, dist="uniform", loc=0.0, scale=1.0, shape=(10,), bcond="p", coup=1.0, mix=0.1, mom=1.0):
    """Define Anderson-Heisenberg model with random impurity spins (somewhat
    preferring the z-axis)."""
    # created 2013-07-12, modified 2014-01-27
    # former tb._andheis (developed 2012-09-10 - 2012-12-17)
    # based on tb._andis from 2012-09-10
    mix = misc.get_ratio(mix)
    dim = len(shape)
    scell = sc.SuperCell(dim=dim)
    dist = sc.dist.select(dist)
    scell.add_andheisp(pot=dist(loc, scale), hop=hop, bcond=bcond, shape=shape, coup=coup, mix=mix, mom=mom)
    pset = bundle.Bundle(
        dist=dist, dim=dim, loc=loc, scale=scale, shape=shape, mix=mix, coup=coup, mom=mom, hop=hop, pot=loc
    )
    return scell, pset
Example #5
0
def heis(mix=.1, range=1., coup=1., mom=1., shell=1, bcond='p', shape=(10, )):
    """Define homogeneous dilute Heisenberg model."""
    # created 2013-07-12, modified 2013-07-18
    # former tb._Heis (developed 2012-03-14 - 2012-09-06)
    mix = misc.get_ratio(mix)
    dim = len(shape)
    scell = sc.SuperCell(dim=dim)
    scell.add_heis(range=range,
                   coup=coup,
                   mix=mix,
                   mom=mom,
                   bcond=bcond,
                   shape=shape,
                   shell=shell)
    pset = bundle.Bundle(dim=dim,
                         shape=shape,
                         mix=mix,
                         coup=coup,
                         mom=mom,
                         shell=shell,
                         range=range)
    return scell, pset
Example #6
0
def andheis(hop=-1.,
            dist='uniform',
            loc=0.,
            scale=1.,
            shape=(10, ),
            bcond='p',
            coup=1.,
            mix=.1,
            mom=1.):
    """Define Anderson-Heisenberg model with isotropic random impurity spins
    (conforming to the SU(2) group)."""
    # created 2013-07-12, modified 2014-01-27
    # former tb._andheisi (developed 2013-06-27 - 2013-06-27)
    # based on tb._andheis (2012-09-10 - 2012-12-17)
    # based on tb._andis from 2012-09-10
    mix = misc.get_ratio(mix)
    dim = len(shape)
    scell = sc.SuperCell(dim=dim)
    dist = sc.dist.select(dist)
    scell.add_andheis(pot=dist(loc, scale),
                      hop=hop,
                      bcond=bcond,
                      shape=shape,
                      coup=coup,
                      mix=mix,
                      mom=mom)
    pset = bundle.Bundle(dist=dist,
                         dim=dim,
                         loc=loc,
                         scale=scale,
                         shape=shape,
                         mix=mix,
                         coup=coup,
                         mom=mom,
                         hop=hop,
                         pot=loc)
    return scell, pset