faunus
Public Member Functions | List of all members
Faunus::Energy::Example2D Class Reference

Oscillating energy on a single particle. More...

#include <energy.h>

Inheritance diagram for Faunus::Energy::Example2D:
Inheritance graph
[legend]
Collaboration diagram for Faunus::Energy::Example2D:
Collaboration graph
[legend]

Public Member Functions

 Example2D (const json &j, Space &spc)
 
double energy (const Change &change) override
 energy due to change
 
- Public Member Functions inherited from Faunus::Energy::EnergyTerm
virtual void sync (EnergyTerm *other_energy, const Change &change)
 Sync (copy from) another energy instance. More...
 
virtual void init ()
 reset and initialize
 
virtual void updateState (const Change &change)
 Update internal state to reflect change in e.g. Space. More...
 
virtual void force (PointVector &forces)
 update forces on all particles
 

Additional Inherited Members

- Public Types inherited from Faunus::Energy::EnergyTerm
enum  MonteCarloState { ACCEPTED, TRIAL, NONE }
 
- Public Attributes inherited from Faunus::Energy::EnergyTerm
MonteCarloState state = MonteCarloState::NONE
 
std::string name
 Meaningful name.
 
std::string citation_information
 Possible reference; may be left empty.
 
TimeRelativeOfTotal< std::chrono::microseconds > timer
 Timer for measuring speed.
 

Detailed Description

Oscillating energy on a single particle.

This is 2D version of the oscillating potential used to illustrate parallel tempering in the book "Understanding Molecular Simulation" by D. Frenkel.


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