#include <simulation.h>
|
void | simulate (const Ising &model) |
| performs a production-run.
More...
|
|
float | metropolisSweep (const Ising &model) |
| performs one Monte-Carlo step, updating the entire grid associated with a certain model and calculates the energy difference More...
|
|
Definition at line 60 of file simulation.h.
◆ MetropolisSimulationQt()
HB::MetropolisSimulationQt::MetropolisSimulationQt |
( |
const Grid< short int > & |
grid, |
|
|
const float |
beta |
|
) |
| |
|
inline |
◆ metropolisSweep()
float HB::MetropolisSimulationQt::metropolisSweep |
( |
const Ising & |
model | ) |
|
|
private |
performs one Monte-Carlo step, updating the entire grid associated with a certain model and calculates the energy difference
- Parameters
-
Reference | to the model |
beta | Inverse Temperature |
rng | Pointer to the state of the GSL RNG |
- Returns
- Energy difference
◆ operator()()
void HB::MetropolisSimulationQt::operator() |
( |
const Ising & |
model | ) |
const |
|
inline |
◆ simulate()
void HB::MetropolisSimulationQt::simulate |
( |
const Ising & |
model | ) |
|
|
private |
performs a production-run.
A production run consists of a number of MC sweeps producing correlated energies
- Parameters
-
Reference | to the model |
beta | Inverse temperature |
V | Volume |
steps | Number of MC sweeps |
energies | Gets overridden with a standard vector of correlated energies (initial and one for each step) |
◆ mBeta
float HB::MetropolisSimulationQt::mBeta {1.0f} |
|
private |
◆ mGrid
std::shared_ptr<Grid<short int> > HB::MetropolisSimulationQt::mGrid {} |
|
private |
◆ mSteps
size_t HB::MetropolisSimulationQt::mSteps {1000} |
|
private |
The documentation for this class was generated from the following file: