mirror of
https://github.com/LCPQ/DEHam
synced 2024-09-01 00:43:41 +02:00
Added image and updated readme.
This commit is contained in:
parent
6a58cff064
commit
62d820b64f
10
README.md
10
README.md
@ -82,6 +82,16 @@ true # Restrict the hole to the 1'st (i.e. half of natom) Family of states.
|
||||
mpiexec -n [nprocs] ./ex1 inpfile
|
||||
```
|
||||
|
||||
_Sample Application_
|
||||
--------------------
|
||||
|
||||
A 2D t-J model Hamiltonian description and setup for using DEHam to solve for few low lying states
|
||||
is provided in the notbooks folder. Please have a look about the details of using DEHam to study
|
||||
t-J Hamiltonians.
|
||||
|
||||
![4x4 Lattice](https://raw.githubusercontent.com/v1j4y/DEHam/master/notebook/graph.png)
|
||||
|
||||
|
||||
_Publications using this code_
|
||||
-------------------------------
|
||||
|
||||
|
BIN
notebooks/graph.png
Normal file
BIN
notebooks/graph.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 332 KiB |
@ -160,7 +160,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 138,
|
||||
"execution_count": 150,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
@ -178,11 +178,14 @@
|
||||
"import matplotlib as mplt\n",
|
||||
"import networkx as nx\n",
|
||||
"import numpy as np\n",
|
||||
"import matplotlib.pyplot as plt\n",
|
||||
"\n",
|
||||
"Lx = 4\n",
|
||||
"Ly = 4\n",
|
||||
"\n",
|
||||
"draw2DLattice(Lx,Ly)"
|
||||
"#fig = plt.figure()\n",
|
||||
"#draw2DLattice(Lx,Ly,fig)\n",
|
||||
"draw2DLattice(Lx,Ly)\n",
|
||||
"#fig.savefig(\"/tmp/graph.png\",dpi=1000)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -291,7 +294,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 17,
|
||||
"execution_count": 149,
|
||||
"metadata": {
|
||||
"jupyter": {
|
||||
"source_hidden": true
|
||||
@ -364,6 +367,8 @@
|
||||
" countcolor+=1\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"# nx.draw(G, pos=pos, labels=labelscenter, node_color=color_map, font_color=\"white\", ax=fig.add_subplot(111));\n",
|
||||
"# nx.draw_networkx_edge_labels(G,pos,edge_labels=edgescenter,font_color=\"black\", ax=fig.add_subplot(111));\n",
|
||||
" nx.draw(G, pos=pos, labels=labelscenter, node_color=color_map, font_color=\"white\");\n",
|
||||
" nx.draw_networkx_edge_labels(G,pos,edge_labels=edgescenter,font_color=\"black\");\n"
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user