90 #ifndef SRC_CORECOMPONENTS_PHYSICSSOLVERS_FLUIDFLOW_SINGLEPHASESTATISTICSAGGREGATOR_HPP_
91 #define SRC_CORECOMPONENTS_PHYSICSSOLVERS_FLUIDFLOW_SINGLEPHASESTATISTICSAGGREGATOR_HPP_
98 class SinglePhaseBase;
100 namespace singlePhaseStatistics
102 class StatsAggregator;
103 class RegionStatistics;
113 namespace singlePhaseStatistics
169 bool statsOutputEnabled );
197 bool statsOutputEnabled );
214 SetType
const & targetSet )
const;
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 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 computeSubRegionRankStats(CellElementSubRegion &subRegion, StatsGroupType &subRegionStats, SetType const &targetSet) const
Compute the rank-local stats for the given sub-region and store the results in the given stats group.
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....
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
globalIndex m_elemCount
Element Count.
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
RegionStatistics(string const &targetName, dataRepository::Group *const parent, string_view setName, bool statsOutputEnabled)
Construct a new Region Statistics object.
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(string_array const &setNames=string_array())
Enable the computation of region statistics, initialize data structure to collect them....
stdVector< string > string_array
A 1-dimensional array of geos::string types.
GEOS_GLOBALINDEX_TYPE globalIndex
Global index type (for indexing objects across MPI partitions).
double real64
64-bit floating point type.
std::string_view string_view
String type.