Difference between revisions of "ALPS 2 Tutorials:DWA-01 SpecificHeat"

From ALPS
Jump to: navigation, search
(Using the command line)
(Specific Heat)
Line 5: Line 5:
 
=== Using the command line ===
 
=== Using the command line ===
  
We consider, for instance, the parameter file  [http://alps.comp-phys.org/static/tutorials2.1.0/dwa-01-specific-heat/parm1a parm1a] that sets up the directed worm algorithm for simulating the boson Hubbard model of a 20<sup>2</sup> lattice with square geometry.
+
We consider, for instance, the parameter file  [http://alps.comp-phys.org/static/tutorials2.1.0/dwa-01-specific-heat/parm1a parm1a] that sets up, in command line, the directed worm algorithm for simulating the boson Hubbard model of a 20<sup>2</sup> lattice with square geometry.
  
 
  LATTICE="square lattice"
 
  LATTICE="square lattice"
Line 40: Line 40:
 
  parameter2xml parm1a
 
  parameter2xml parm1a
 
  dwa parm1a.in.xml
 
  dwa parm1a.in.xml
 +
 +
=== Using Python ===
 +
 +
To set up, in Python, the directed worm algorithm for simulating the boson Hubbard model of a 20<sup>2</sup> lattice with square geometry, we use the script
 +
[http://alps.comp-phys.org/static/tutorials2.1.0/dwa-01-specific-heat/parm1a parm1a]

Revision as of 15:14, 27 August 2013

Specific Heat

with fixed chemical potential

Using the command line

We consider, for instance, the parameter file parm1a that sets up, in command line, the directed worm algorithm for simulating the boson Hubbard model of a 202 lattice with square geometry.

LATTICE="square lattice"
MODEL="boson Hubbard"

L=20  
Nmax=20

t=1.
U=16.
mu=32.

THERMALIZATION=10000
SWEEPS=100000 
SKIP=400

{T=0.7}
{T=0.8}
{T=0.9}
{T=1.0}
{T=1.1}
{T=1.2}
{T=1.3}
{T=1.4}
{T=1.5}
{T=1.6}
{T=1.7}
{T=1.8}
{T=1.9}
{T=2.0}

We first convert the input parameters to XML and then run the application dwa:

parameter2xml parm1a
dwa parm1a.in.xml

Using Python

To set up, in Python, the directed worm algorithm for simulating the boson Hubbard model of a 202 lattice with square geometry, we use the script

parm1a