49 explicit operator std::string()
const override;
Class to run a simulation.
double sample_every_x_percent
TemperatureSensorInterceptor(std::shared_ptr< Thermostat > thermostat, double sample_every_x_percent)
Construct a new TemperatureSensor Interceptor object.
void onSimulationStart(Simulation &simulation) override
This function is empty as the thermostat doesnt need initialization.
std::unique_ptr< CSVWriter > csv_writer
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...
std::shared_ptr< Thermostat > thermostat
The thermostat that is used to scale the temperature.
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.
void logSummary(int depth) const override
Logs the summary of the thermostat.