20 #ifndef SRC_CORECOMPONENTS_PHYSICSSOLVERS_FLUIDFLOW_COMPOSITIONALMULTIPHASESTATISTICSTASK_HPP_
21 #define SRC_CORECOMPONENTS_PHYSICSSOLVERS_FLUIDFLOW_COMPOSITIONALMULTIPHASESTATISTICSTASK_HPP_
32 class CompositionalMultiphaseBase;
34 namespace compositionalMultiphaseStatistics
52 static string catalogName() {
return "CompositionalMultiphaseStatistics"; }
65 real64 const eventProgress,
71 {
return *m_aggregator; }
74 {
return *m_aggregator; }
86 constexpr
static char const * setNamesString() {
return "setNames"; }
88 constexpr
static char const * computeCFLNumbersString() {
return "computeCFLNumbers"; }
90 constexpr
static char const * computeRegionStatisticsString() {
return "computeRegionStatistics"; }
92 constexpr
static char const * relpermThresholdString() {
return "relpermThreshold"; }
95 void postInputInitialization()
override;
97 void registerDataOnMesh(
Group & meshBodies )
override;
99 void prepareFluidMetaData();
101 void prepareLogTableLayouts(
string_view tableName );
103 void prepareCsvTableLayouts(
string_view tableName );
105 string getCsvFileName(
string_view meshName )
const;
107 void outputLogStats(
real64 statsTime,
109 RegionStatistics & meshSetsStatistics );
111 void outputCsvStats(
real64 statsTime,
113 RegionStatistics & meshSetsStatistics );
116 stdMap< string, std::unique_ptr< TableTextFormatter > > m_logFormatters;
119 stdMap< string, std::unique_ptr< TableCSVFormatter > > m_csvFormatters;
122 std::unique_ptr< StatsAggregator > m_aggregator;
131 integer m_computeRegionStatistics;
134 real64 m_relpermThreshold;
140 stdVector< string > m_phaseNames;
141 stdVector< string > m_compNames;
142 stdVector< string > m_phaseCompNames;
150 {
return m_phaseCompNames[phaseId * m_numComps + compId]; }
Partition of the decomposed physical domain. It also manages the connexion information to its neighbo...
Reponsible of computing physical statistics over the grid, registering the result in the data reposit...
static string catalogName()
Accessor for the catalog name.
StatsTask(const string &name, dataRepository::Group *const parent)
Constructor for the statistics class.
Group()=delete
Deleted default constructor.
virtual bool execute(real64 const time_n, real64 const dt, integer const cycleNumber, integer const eventCounter, real64 const eventProgress, DomainPartition &domain) override
Main extension point of executable targets.
stdVector< string > string_array
A 1-dimensional array of geos::string types.
double real64
64-bit floating point type.
int integer
Signed integer type.
std::string_view string_view
String type.