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 * computeCFLNumbersString() {
return "computeCFLNumbers"; }
88 constexpr
static char const * computeRegionStatisticsString() {
return "computeRegionStatistics"; }
90 constexpr
static char const * relpermThresholdString() {
return "relpermThreshold"; }
93 void postInputInitialization()
override;
95 void registerDataOnMesh(
Group & meshBodies )
override;
97 void prepareFluidMetaData();
99 void prepareLogTableLayouts(
string_view tableName );
101 void prepareCsvTableLayouts(
string_view tableName );
103 string getCsvFileName(
string_view meshName )
const;
105 void outputLogStats(
real64 statsTime,
107 RegionStatistics & meshRegionsStatistics );
109 void outputCsvStats(
real64 statsTime,
111 RegionStatistics & meshRegionsStatistics );
114 stdMap< string, std::unique_ptr< TableTextFormatter > > m_logFormatters;
117 stdMap< string, std::unique_ptr< TableCSVFormatter > > m_csvFormatters;
120 std::unique_ptr< StatsAggregator > m_aggregator;
126 integer m_computeRegionStatistics;
129 real64 m_relpermThreshold;
135 stdVector< string > m_phaseNames;
136 stdVector< string > m_compNames;
137 stdVector< string > m_phaseCompNames;
145 {
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.
double real64
64-bit floating point type.
int integer
Signed integer type.
std::string_view string_view
String type.