|
faunus
|
Class to describe a system state. More...
#include <montecarlo.h>
Public Member Functions | |
| void | sync (const State &other, const Change &change) |
| Sync with another state (the other state is not modified) | |
Public Attributes | |
| std::unique_ptr< Space > | spc |
| Simulation space (positions, geometry, molecules) | |
| std::unique_ptr< Energy::Hamiltonian > | pot |
| Hamiltonian for calc. potential energy. | |
Class to describe a system state.
The state stores:
A MC simulation consists of two states, the "default", old state and the "trial" state. Moves operate directly on the latter. After the move, the two states can be synchronized using the sync() function.
1.8.13