Alsvinn
0.5.3
The fast FVM simulator with UQ support
|
#include <alsuq/stats/Statistics.hpp>
Public Member Functions | |
virtual | ~Statistics () |
virtual void | write (const alsfvm::volume::Volume &conservedVariables, const alsfvm::grid::Grid &grid, const alsfvm::simulator::TimestepInformation ×tepInformation) override |
virtual void | combineStatistics ()=0 |
To be called when the statistics should be combined. More... | |
virtual void | addWriter (const std::string &name, std::shared_ptr< alsfvm::io::Writer > &writer)=0 |
virtual std::vector< std::string > | getStatisticsNames () const =0 |
virtual void | computeStatistics (const alsfvm::volume::Volume &conservedVariables, const alsfvm::grid::Grid &grid, const alsfvm::simulator::TimestepInformation ×tepInformation)=0 |
virtual void | finalizeStatistics ()=0 |
virtual void | writeStatistics (const alsfvm::grid::Grid &grid)=0 |
![]() | |
virtual | ~Writer () |
virtual void | finalize (const grid::Grid &grid, const simulator::TimestepInformation ×tepInformation) |
This method should be called at the end of the simulation. More... | |
void | addAttributes (const std::string &nameOfAttributes, const boost::property_tree::ptree &attributes) |
Additional Inherited Members | |
![]() | |
static std::string | getClassName () |
![]() | |
std::map< std::string, boost::property_tree::ptree > | attributesMap |
Abstract base class for computing statistics (mean, variance, structure functions, etc)
|
inlinevirtual |
|
pure virtual |
Adds a write for the given statistics name
name | the name of the statitics (one of the names returned in getStatiticsNames() |
writer | the writer to use |
Implemented in alsuq::stats::FixedIntervalStatistics, alsuq::stats::TimeIntegratedWriter, alsuq::stats::StatisticsTimer, and alsuq::stats::StatisticsHelper.
|
pure virtual |
To be called when the statistics should be combined.
Implemented in alsuq::stats::FixedIntervalStatistics, alsuq::stats::TimeIntegratedWriter, alsuq::stats::StatisticsHelper, and alsuq::stats::StatisticsTimer.
|
pure virtual |
Implemented in alsuq::stats::FixedIntervalStatistics, alsuq::stats::TimeIntegratedWriter, alsuq::stats::StatisticsTimer, alsuq::stats::TimeIntegratedFunctionalStatistics, alsuq::stats::FunctionalStatistics, alsuq::stats::StructureBasicCUDA, alsuq::stats::StructureBasic, alsuq::stats::StructureTwoPoints, alsuq::stats::StructureCubeCUDA, alsuq::stats::StructureSurface, alsuq::stats::StructureCube, alsuq::stats::BoundedVariation, alsuq::stats::BoundedVariationDirection, alsuq::stats::OnePointMoment, and alsuq::stats::MeanVariance.
|
pure virtual |
To be called in the end, this could be to eg compute the variance through M_2-mean^2 or any other postprocessing needed
Implemented in alsuq::stats::FixedIntervalStatistics, alsuq::stats::TimeIntegratedWriter, alsuq::stats::StatisticsTimer, alsuq::stats::TimeIntegratedFunctionalStatistics, alsuq::stats::FunctionalStatistics, alsuq::stats::StructureBasicCUDA, alsuq::stats::StructureBasic, alsuq::stats::StructureTwoPoints, alsuq::stats::StructureCubeCUDA, alsuq::stats::StructureSurface, alsuq::stats::StructureCube, alsuq::stats::BoundedVariation, alsuq::stats::BoundedVariationDirection, alsuq::stats::OnePointMoment, and alsuq::stats::MeanVariance.
|
pure virtual |
Returns a list of the names of the statistics being computed, typically this could be ['mean', 'variance']
Implemented in alsuq::stats::FixedIntervalStatistics, alsuq::stats::TimeIntegratedWriter, alsuq::stats::StatisticsTimer, alsuq::stats::TimeIntegratedFunctionalStatistics, alsuq::stats::FunctionalStatistics, alsuq::stats::StructureBasicCUDA, alsuq::stats::StructureBasic, alsuq::stats::StructureTwoPoints, alsuq::stats::StructureCubeCUDA, alsuq::stats::StructureSurface, alsuq::stats::StructureCube, alsuq::stats::BoundedVariation, alsuq::stats::BoundedVariationDirection, alsuq::stats::OnePointMoment, and alsuq::stats::MeanVariance.
|
overridevirtual |
Passes the information onto computeStats
Implements alsfvm::io::Writer.
|
pure virtual |