mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 18:32:10 -05:00
#3669 Write Pressure Depletion scaling parameters as comment table in fracture export.
This commit is contained in:
1 parent
e5b8dc49c1
commit
12e8c3b9b2
5 files changed
+94
No files matched your search
+44
@@ -165,6 +165,12 @@ QString RicWellPathFractureTextReportFeatureImpl::wellPathFractureReport(
|
||||
textStream << lineStart << "\n";
|
||||
}
|
||||
|
||||
{
|
||||
QString tableText = createFracturePressureDepletionSummaryText(wellPathFractureReportItems);
|
||||
textStream << tableText;
|
||||
textStream << lineStart << "\n";
|
||||
}
|
||||
|
||||
{
|
||||
textStream << lineStart << " Maximum number of connections per well\n";
|
||||
textStream << lineStart << "\n";
|
||||
@@ -689,6 +695,44 @@ QString RicWellPathFractureTextReportFeatureImpl::createFractureCompletionSummar
|
||||
return tableText;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RicWellPathFractureTextReportFeatureImpl::createFracturePressureDepletionSummaryText(const std::vector<RicWellPathFractureReportItem>& wellPathFractureReportItems) const
|
||||
{
|
||||
QString tableText;
|
||||
|
||||
QTextStream stream(&tableText);
|
||||
RifEclipseDataTableFormatter formatter(stream);
|
||||
configureFormatter(&formatter);
|
||||
|
||||
std::vector<RifEclipseOutputTableColumn> header = {
|
||||
RifEclipseOutputTableColumn("Well"),
|
||||
RifEclipseOutputTableColumn("Fracture"),
|
||||
RifEclipseOutputTableColumn("PDD Scaling"),
|
||||
RifEclipseOutputTableColumn("Initial WBHP"),
|
||||
RifEclipseOutputTableColumn("Current WBHP")
|
||||
};
|
||||
|
||||
formatter.header(header);
|
||||
formatter.addHorizontalLine('-');
|
||||
|
||||
for (const auto& reportItem : wellPathFractureReportItems)
|
||||
{
|
||||
formatter.add(reportItem.wellPathNameForExport());
|
||||
formatter.add(reportItem.fractureName());
|
||||
formatter.add(reportItem.pressureDepletionScaling());
|
||||
formatter.add(reportItem.pressureDepletionInitialWBHP());
|
||||
formatter.add(reportItem.pressureDepletionCurrentWBHP());
|
||||
|
||||
formatter.rowCompleted();
|
||||
}
|
||||
|
||||
formatter.tableCompleted();
|
||||
|
||||
return tableText;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user