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

From ALPS

(→Specific Heat) |
(→Using Python) |
||

Line 44: | Line 44: | ||

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 | 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/tutorial1a.py tutorial1a.py]: |

## Revision as of 15:15, 27 August 2013

## Contents

# 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 20^{2} 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 20^{2} lattice with square geometry, we use the script
tutorial1a.py: