From d9cbe2cbf8e66b77d93903ff756ef1faa6eb7b20 Mon Sep 17 00:00:00 2001 From: arng40 Date: Mon, 16 Dec 2024 16:12:31 +0100 Subject: [PATCH] update --- .../physicsSolvers/fluidFlow/SinglePhaseStatistics.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/coreComponents/physicsSolvers/fluidFlow/SinglePhaseStatistics.cpp b/src/coreComponents/physicsSolvers/fluidFlow/SinglePhaseStatistics.cpp index b51e1b83b5..617f4ab795 100644 --- a/src/coreComponents/physicsSolvers/fluidFlow/SinglePhaseStatistics.cpp +++ b/src/coreComponents/physicsSolvers/fluidFlow/SinglePhaseStatistics.cpp @@ -253,14 +253,20 @@ void SinglePhaseStatistics::computeRegionStatistics( real64 const time, GEOS_WARNING( GEOS_FMT( "{}, {}: Cannot compute average pressure & temperature because region pore volume is zero.", getName(), regionNames[i] ) ); } + string_view massUnit = units::getSymbol( m_solver->getMassUnit() ); + TableData singPhaseStatsData; singPhaseStatsData.addRow( "Pressure[Pa]", stats.minPressure, stats.averagePressure, stats.maxPressure ); singPhaseStatsData.addRow( "Delta pressure [Pa]", stats.minDeltaPressure, "/", stats.maxDeltaPressure ); singPhaseStatsData.addRow( "Temperature [K]", stats.minTemperature, stats.averageTemperature, stats.maxTemperature ); singPhaseStatsData.addSeparator(); + singPhaseStatsData.addSeparator(); + singPhaseStatsData.addRow( "statistics", "phase", CellType::MergeNext, "value" ); + singPhaseStatsData.addSeparator(); - singPhaseStatsData.addRow( "Total dynamic pore volume [rm^3]", CellType::MergeNext, CellType::MergeNext, stats.totalPoreVolume ); - singPhaseStatsData.addRow( "Total fluid mass [kg]", CellType::MergeNext, CellType::MergeNext, stats.totalMass ); + singPhaseStatsData.addRow( "Total dynamic pore volume [rm^3]", "all", CellType::MergeNext, stats.totalPoreVolume ); + singPhaseStatsData.addSeparator(); + singPhaseStatsData.addRow( GEOS_FMT("Total fluid mass [{}]", massUnit), "all", CellType::MergeNext, stats.totalMass ); string const title = GEOS_FMT( "{}, {} (time {} s):", getName(), regionNames[i], time ); TableLayout const singPhaseStatsLayout( title, { "statistics", "min", "average", "max" } );