18 std::string indent = std::string(depth * 2,
' ');
26 ThermostatInterceptor::operator std::string()
const {
return ""; }
const std::string ansi_end
const std::string ansi_orange_bold
static std::shared_ptr< spdlog::logger > logger
Publically accessible shared pointer to the logger.
size_t every_nth_iteration
Class to run a simulation.
std::unique_ptr< ParticleContainer > particle_container
Reference to the ParticleContainer on whose content the simulation is performed.
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.