Added image and updated readme.

This commit is contained in:
vijay gopal chilkuri 2020-03-17 10:57:10 +01:00
parent 6a58cff064
commit 62d820b64f
3 changed files with 19 additions and 4 deletions

View File

@ -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 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_ _Publications using this code_
------------------------------- -------------------------------

BIN
notebooks/graph.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 KiB

View File

@ -160,7 +160,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 138, "execution_count": 150,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -178,11 +178,14 @@
"import matplotlib as mplt\n", "import matplotlib as mplt\n",
"import networkx as nx\n", "import networkx as nx\n",
"import numpy as np\n", "import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"\n", "\n",
"Lx = 4\n", "Lx = 4\n",
"Ly = 4\n", "Ly = 4\n",
"\n", "#fig = plt.figure()\n",
"draw2DLattice(Lx,Ly)" "#draw2DLattice(Lx,Ly,fig)\n",
"draw2DLattice(Lx,Ly)\n",
"#fig.savefig(\"/tmp/graph.png\",dpi=1000)"
] ]
}, },
{ {
@ -291,7 +294,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 17, "execution_count": 149,
"metadata": { "metadata": {
"jupyter": { "jupyter": {
"source_hidden": true "source_hidden": true
@ -364,6 +367,8 @@
" countcolor+=1\n", " countcolor+=1\n",
"\n", "\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(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" " nx.draw_networkx_edge_labels(G,pos,edge_labels=edgescenter,font_color=\"black\");\n"
] ]