36 std::shared_ptr<alsfvm::io::Writer>& writer)
override;
49 std::map<real, std::map<std::string, StatisticsSnapshot> >
snapshots;
68 size_t nx,
size_t ny,
size_t nz,
const std::string& platform =
"default");
74 std::map<std::string, std::vector<std::shared_ptr<alsfvm::io::Writer> > >
79 std::unique_ptr<alsfvm::grid::Grid> ownGrid{{
nullptr}};
std::map< real, std::map< std::string, StatisticsSnapshot > > snapshots
Definition: StatisticsHelper.hpp:49
Holds a snapshot (in time) of the current statistics.
Definition: StatisticsSnapshot.hpp:24
simulator::SimulatorParameters & parameters
Definition: CellComputerFactory.cpp:60
StatisticsHelper(const StatisticsParameters ¶meters)
Definition: StatisticsHelper.cpp:23
The Volume class represents a volume (a collection of cells with values for each cell (eg...
Definition: Volume.hpp:30
size_t nx
Definition: VolumeFactory.cpp:87
virtual void combineStatistics() override
Should be called at the end of the simulation.
Definition: StatisticsHelper.cpp:35
alsfvm::shared_ptr< Configuration > ConfigurationPtr
Definition: Configuration.hpp:53
std::string name
Definition: EquationParameterFactory.cpp:39
virtual void writeStatistics(const alsfvm::grid::Grid &grid) override
Writes the statistics to file.
Definition: StatisticsHelper.cpp:81
size_t ny
Definition: VolumeFactory.cpp:88
const grid::Grid & grid
Definition: NumericalFluxFactory.cpp:104
Definition: StatisticsParameters.hpp:24
Definition: StatisticsHelper.hpp:25
size_t nz
Definition: VolumeFactory.cpp:89
Definition: Statistics.hpp:25
StatisticsSnapshot & findOrCreateSnapshot(const std::string &name, const alsfvm::simulator::TimestepInformation ×tepInformation, const alsfvm::volume::Volume &conservedVariables)
Definition: StatisticsHelper.cpp:102
void addWriter(const std::string &name, std::shared_ptr< alsfvm::io::Writer > &writer) override
Definition: StatisticsHelper.cpp:30
void makeOwnGrid(size_t nx, size_t ny, size_t nz)
Definition: StatisticsHelper.cpp:163