Skip to content
Snippets Groups Projects
Commit bc6f66bf authored by Christoph Groth's avatar Christoph Groth
Browse files

make ready for upload

parent a9f3faea
No related branches found
No related tags found
No related merge requests found
...@@ -6,12 +6,12 @@ Style sheet for http://kwant-project.org/ ...@@ -6,12 +6,12 @@ Style sheet for http://kwant-project.org/
body { body {
min-width: 20em; min-width: 20em;
max-width: 50em; max-width: 60em;
margin: 0 auto; margin: 0 auto;
font-family: "Bitstream Vera Serif", Georgia, serif; font-family: "Bitstream Vera Serif", Georgia, serif;
} }
#header { margin-top: 0.5em; height: 1.5em; } #header { margin-top: 0.5em; height: 150px; }
#footer { margin: 2em 0; } #footer { margin: 2em 0; }
#header, #header a:link, #header a:visited, #footer { #header, #header a:link, #header a:visited, #footer {
color: gray; color: gray;
......
File moved
...@@ -2,4 +2,4 @@ Contact ...@@ -2,4 +2,4 @@ Contact
======= =======
If you have any questions regarding, kwant, or find a bug, please email to If you have any questions regarding, kwant, or find a bug, please email to
kwant-authors@kwant-project.org. authors@kwant-project.org.
File moved
Gallery
=======
docutils 0.9 knows how to do syntax highlighting. With docutils 0.8 there seems
to be no way. But we can do this::
import math
import cmath
import numpy
from matplotlib import pyplot
import kwant
from kwant.contrib.digest import gauss
def hopping(site0, site1, phi):
x0, y0 = site0.pos
x1, y1 = site1.pos
return -cmath.exp(-0.5j * phi * (x0 - x1) * (y0 + y1))
def onsite(site, phi):
return 0.05 * gauss(repr(site)) + 4
def make_system(L=50):
def central_region(pos):
x, y = pos
return -L < x < L and \
abs(y) < L - 37.5 * math.exp(-x**2 / 12**2)
lat = kwant.lattice.square()
sys = kwant.Builder()
sys[lat.shape(central_region, (0, 0))] = onsite
sys[lat.nearest] = hopping
sym = kwant.TranslationalSymmetry((-1, 0))
lead = kwant.Builder(sym)
lead[(lat(0, y) for y in range(-L + 1, L))] = 4
lead[lat.nearest] = hopping
sys.attach_lead(lead)
sys.attach_lead(lead.reversed())
return sys.finalized()
def lesser_gf(sys, args):
wf = kwant.solvers.default.wave_function(sys, 0.15, args=args)
return (abs(wf(0))**2).sum(axis=0)
sys = make_system()
kwant.plotter.map(sys, lesser_gf(sys, args=[1/40.0]))
--- ---
__template__: home.mako __template__: home.mako
--- ---
.. image:: kwant_logo.png
Numerics of tight binding models made easy Numerics of tight binding models made easy
========================================== ==========================================
...@@ -17,6 +14,7 @@ carefully tested. ...@@ -17,6 +14,7 @@ carefully tested.
.. image:: collage.png .. image:: collage.png
:scale: 30% :scale: 30%
:target: collage.png
Image: various applications of kwant: Image: various applications of kwant:
......
...@@ -10,18 +10,19 @@ ...@@ -10,18 +10,19 @@
<%block name="extra_head" />\ <%block name="extra_head" />\
</head> </head>
<div id="header" class="meta">
<body> <body>
<div id="header" class="meta">
<img alt="kwant_logo.png" src="/common/kwant_logo.png" />
<h3 class="hidden_structure">Navigation</h3> <h3 class="hidden_structure">Navigation</h3>
<ul class="navigation"> <ul class="navigation">
<li><a href="/">home</a></li> <li><a href="/">home</a></li>
<li><a href="/gallery/">gallery</a></li>
<li><a href="/docs/">documentation</a></li> <li><a href="/docs/">documentation</a></li>
<li><a href="/downloads.html">downloads</a></li> <li><a href="/download.html">download</a></li>
<li><a href="/community.html">community</a></li> <li><a href="/contact.html">contact</a></li>
<li><a href="/citing.html">citing</a></li> <li><a href="/citing.html">citing</a></li>
</ul> </ul>
</div> </div>
<br />
${next.body()}\ ${next.body()}\
<%block name="tail"></%block>\ <%block name="tail"></%block>\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment