37 real timeInterval,
real endTime,
bool writeInitialTimestep =
true);
52 std::shared_ptr<alsfvm::io::Writer>& writer)
override;
71 alsfvm::shared_ptr<Statistics> statistics;
72 const real timeInterval;
74 size_t numberSaved = 0;
75 const bool writeInitialTimestep;
Definition: FixedIntervalStatistics.hpp:26
virtual void addWriter(const std::string &name, std::shared_ptr< alsfvm::io::Writer > &writer) override
Definition: FixedIntervalStatistics.cpp:47
virtual std::vector< std::string > getStatisticsNames() const override
Definition: FixedIntervalStatistics.cpp:52
The Volume class represents a volume (a collection of cells with values for each cell (eg...
Definition: Volume.hpp:30
virtual void finalizeStatistics() override
Definition: FixedIntervalStatistics.cpp:60
double real
Definition: types.hpp:65
virtual void computeStatistics(const alsfvm::volume::Volume &conservedVariables, const alsfvm::grid::Grid &grid, const alsfvm::simulator::TimestepInformation ×tepInformation) override
Definition: FixedIntervalStatistics.cpp:64
virtual real adjustTimestep(real dt, const alsfvm::simulator::TimestepInformation ×tepInformation) const override
adjustTimestep returns the new timestep that the simulator should use
Definition: FixedIntervalStatistics.cpp:33
std::string name
Definition: EquationParameterFactory.cpp:39
const grid::Grid & grid
Definition: NumericalFluxFactory.cpp:104
void writeStatistics(const alsfvm::grid::Grid &grid) override
Definition: FixedIntervalStatistics.cpp:56
FixedIntervalStatistics(alsfvm::shared_ptr< Statistics > &writer, real timeInterval, real endTime, bool writeInitialTimestep=true)
Definition: FixedIntervalStatistics.cpp:22
The TimestepAdjuster class is an abstract interface for adjusting timesteps.
Definition: TimestepAdjuster.hpp:31
Definition: Statistics.hpp:25
virtual void combineStatistics() override
To be called when the statistics should be combined.
Definition: FixedIntervalStatistics.cpp:43