71 #ifndef SRC_CORECOMPONENTS_PHYSICSSOLVERS_FLUIDFLOW_SINGLEPHASESTATISTICSAGGREGATOR_HPP_
72 #define SRC_CORECOMPONENTS_PHYSICSSOLVERS_FLUIDFLOW_SINGLEPHASESTATISTICSAGGREGATOR_HPP_
79 class SinglePhaseBase;
81 namespace singlePhaseStatistics
83 class StatsAggregator;
84 class RegionStatistics;
94 namespace singlePhaseStatistics
149 bool statsOutputEnabled );
177 bool statsOutputEnabled );
Output data group to contain the result of a given stat aggregator on the dataRepository....
Reponsible of computing physical statistics over the grid, registering the result in the data reposit...
void computeSubRegionRankStats(CellElementSubRegion &subRegion, StatsGroupType &subRegionStats) const
Compute the rank-local stats for the given sub-region and store the results in the given stats group.
void initStats(StatsGroupType &stats, real64 time) const
Initialize all statistics values to aggregable default values, before any computation / reduction for...
void postAggregateStats(StatsGroupType &stats)
Do the final computations for the statistics. Must be called after computations & aggregations.
void mpiAggregateStats(StatsGroupType &stats) const
Aggregate all instance statistics with those of other ranks.
void aggregateStats(StatsGroupType &stats, StatsGroupType const &other) const
Aggregate all instance statistics with those of another instance on the current rank.
Output data group to contain the result of a given stat aggregator on the dataRepository....
RegionStatistics(string const &targetName, dataRepository::Group *const parent, bool statsOutputEnabled)
Construct a new Region Statistics object.
real64 m_time
Time of statistics computation.
real64 m_minPressure
minimum region pressure
real64 m_totalUncompactedPoreVolume
total region uncompacted pore volume (not necessarily output, useful for weighting cell pressure data...
real64 m_maxPressure
maximum region pressure
real64 m_totalDynamicPoreVolume
total region pore volume
real64 m_maxDeltaPressure
maximum region delta pressure
real64 m_averageTemperature
average region temperature (numerator value before postAggregateCompute())
real64 m_totalMass
fluid mass
real64 m_averagePressure
average region pressure (numerator value before postAggregateCompute())
real64 m_maxTemperature
maximum region temperature
real64 m_minTemperature
minimum region temperature
real64 m_minDeltaPressure
minimum region delta pressure
Reponsible of computing physical statistics over the grid, registering the result in the data reposit...
StatsAggregator(dataRepository::DataContext const &ownerDataContext, dataRepository::Group &meshBodies, bool statsOutputEnabled)
Construct a new Stats Aggregator object.
void enableRegionStatisticsAggregation()
Enable the computation of region statistics, initialize data structure to collect them....
double real64
64-bit floating point type.