49 explicit operator std::string()
const override;
Class to run a simulation.
void onSimulationEnd(size_t iteration, Simulation &simulation) override
This function is empty as the thermostat doesnt need to do anything at the end of the simulation.
std::shared_ptr< Thermostat > thermostat
The thermostat that is used to scale the temperature.
void operator()(size_t iteration, Simulation &simulation) override
This function is called on every nth iteration. It scales the temperature of the particles in accorda...
ThermostatInterceptor(std::shared_ptr< Thermostat > thermostat, size_t application_interval)
Construct a new Thermostat Interceptor object.
void onSimulationStart(Simulation &simulation) override
This function is empty as the thermostat doesnt need initialization.
size_t application_interval
The interval at which the thermostat is applied.
void logSummary(int depth) const override
Logs the summary of the thermostat.