Algorithms::Metropolis Class Reference

Metropolis algorithm. More...

List of all members.

Public Member Functions

 Metropolis (Surface::Lattice::iterator first, Surface::Lattice::iterator last, const Interactions::TwoBody::Geometry &neighbors)
 Constructor.
 Metropolis (Surface::Lattice::iterator first, Surface::Lattice::iterator last, const Interactions::TwoBody::Geometry &neighbors, const Surface::Species species)
 Constructor.
void operator() () const
 Perform one Metropolis step.


Detailed Description

Usage:
Implemented as a functor
 Surface::Lattice lattice(128);
 // ... define lattice ...
 Interactions::TwoBody::Geometry first_nearest_neighbors("1st NN");
 // ... define neighbors ...
 Metropolis metropolis(Lattice::lattice.begin(), Lattice::lattice.end(),
                       first_nearest_neighbors);
 metropolis(); // perform one metropolis step
 metropolis(); // etc.
Reference:
Metropolis et al., J Chem Phys 21 1087
Author:
Mathias Laurin <mathias_laurin@users.sourceforge.net>
Date:
2008-11

Constructor & Destructor Documentation

Algorithms::Metropolis::Metropolis ( Surface::Lattice::iterator  first,
Surface::Lattice::iterator  last,
const Interactions::TwoBody::Geometry neighbors 
) [inline]

Parameters:
[in] first element of the lattice
[in] last element of the lattice
[in] neighbors on which to walk

Algorithms::Metropolis::Metropolis ( Surface::Lattice::iterator  first,
Surface::Lattice::iterator  last,
const Interactions::TwoBody::Geometry neighbors,
const Surface::Species  species 
) [inline]

Parameters:
[in] first element of the lattice
[in] last element of the lattice
[in] neighbors on which to walk
[in] species that performs the walk
Parameters:
neighbors  neighbors on which to walk


The documentation for this class was generated from the following file:

SourceForge.net Logo Project's page
Generated on Mon Nov 17 00:23:06 2008 for dmcut2 by doxygen 1.5.7