Alsvinn
0.5.3
The fast FVM simulator with UQ support
|
#include <alsuq/stats/TimeIntegratedWriter.hpp>
Public Member Functions | |
TimeIntegratedWriter (alsfvm::shared_ptr< Statistics > &writer, real time, real timeRadius) | |
virtual void | combineStatistics () override |
To be called when the statistics should be combined. More... | |
virtual void | addWriter (const std::string &name, std::shared_ptr< alsfvm::io::Writer > &writer) override |
virtual std::vector< std::string > | getStatisticsNames () const override |
void | writeStatistics (const alsfvm::grid::Grid &grid) override |
virtual void | finalizeStatistics () override |
![]() | |
virtual | ~Statistics () |
virtual void | write (const alsfvm::volume::Volume &conservedVariables, const alsfvm::grid::Grid &grid, const alsfvm::simulator::TimestepInformation ×tepInformation) override |
![]() | |
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) |
Protected Member Functions | |
virtual void | computeStatistics (const alsfvm::volume::Volume &conservedVariables, const alsfvm::grid::Grid &grid, const alsfvm::simulator::TimestepInformation ×tepInformation) override |
Additional Inherited Members | |
![]() | |
static std::string | getClassName () |
![]() | |
std::map< std::string, boost::property_tree::ptree > | attributesMap |
Decorator to compute time averaged statistics. This will roughly work in the following way:
It will call the underlying statistics class for each time tau where |tau-time|<timeRadius.
alsuq::stats::TimeIntegratedWriter::TimeIntegratedWriter | ( | alsfvm::shared_ptr< Statistics > & | writer, |
real | time, | ||
real | timeRadius | ||
) |
writer | the underlying writer to actually use. |
time | the time for which to write the statistics |
timeRadius | the radius of the time interval |
|
overridevirtual |
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 |
Implements alsuq::stats::Statistics.
|
overridevirtual |
To be called when the statistics should be combined.
Implements alsuq::stats::Statistics.
|
overrideprotectedvirtual |
Implements alsuq::stats::Statistics.
|
overridevirtual |
To be called in the end, this could be to eg compute the variance through M_2-mean^2 or any other postprocessing needed
Implements alsuq::stats::Statistics.
|
overridevirtual |
Returns a list of the names of the statistics being computed, typically this could be ['mean', 'variance']
Implements alsuq::stats::Statistics.
|
overridevirtual |
Implements alsuq::stats::Statistics.