#3038 Fracture Completion Summary : Remove obsolete helper feature

This commit is contained in:
Magne Sjaastad
2018-08-09 11:36:43 +02:00
parent f3d27e0af8
commit ce085a03ca
7 changed files with 10 additions and 135 deletions

View File

@@ -9,7 +9,6 @@ ${CMAKE_CURRENT_LIST_DIR}/RicCaseAndFileExportSettingsUi.h
${CMAKE_CURRENT_LIST_DIR}/RicExportFractureCompletionsImpl.h
${CMAKE_CURRENT_LIST_DIR}/RicExportCompletionsForVisibleWellPathsFeature.h
${CMAKE_CURRENT_LIST_DIR}/RicExportCompletionsForVisibleSimWellsFeature.h
${CMAKE_CURRENT_LIST_DIR}/RicWellPathFractureTextReportFeature.h
${CMAKE_CURRENT_LIST_DIR}/RicWellPathFractureTextReportFeatureImpl.h
${CMAKE_CURRENT_LIST_DIR}/RicWellPathFractureReportItem.h
)
@@ -25,7 +24,6 @@ ${CMAKE_CURRENT_LIST_DIR}/RicCaseAndFileExportSettingsUi.cpp
${CMAKE_CURRENT_LIST_DIR}/RicExportFractureCompletionsImpl.cpp
${CMAKE_CURRENT_LIST_DIR}/RicExportCompletionsForVisibleWellPathsFeature.cpp
${CMAKE_CURRENT_LIST_DIR}/RicExportCompletionsForVisibleSimWellsFeature.cpp
${CMAKE_CURRENT_LIST_DIR}/RicWellPathFractureTextReportFeature.cpp
${CMAKE_CURRENT_LIST_DIR}/RicWellPathFractureTextReportFeatureImpl.cpp
${CMAKE_CURRENT_LIST_DIR}/RicWellPathFractureReportItem.cpp
)

View File

@@ -403,10 +403,10 @@ std::vector<RigCompletionData>
transmissibility += c.transmissibility();
}
auto areaPerEclipseCell = eclToFractureCalc.areaPerEclipseCell();
for (const auto& areaPerEclipseCell : areaPerEclipseCell)
auto cellAreas = eclToFractureCalc.eclipseCellAreas();
for (const auto& cellArea : cellAreas)
{
area += areaPerEclipseCell.second;
area += cellArea.second;
}
reportItem.setData(transmissibility, allCompletionsForOneFracture.size(), fcd, area);
@@ -469,15 +469,15 @@ std::vector<RigCompletionData>
if (tranxAccessObject.notNull() && tranyAccessObject.notNull() && tranzAccessObject.notNull())
{
for (const auto& areaPerEclipseCell : areaPerEclipseCell)
for (const auto& cellArea : cellAreas)
{
double tranx = tranxAccessObject->cellScalarGlobIdx(areaPerEclipseCell.first);
double trany = tranyAccessObject->cellScalarGlobIdx(areaPerEclipseCell.first);
double tranz = tranzAccessObject->cellScalarGlobIdx(areaPerEclipseCell.first);
double tranx = tranxAccessObject->cellScalarGlobIdx(cellArea.first);
double trany = tranyAccessObject->cellScalarGlobIdx(cellArea.first);
double tranz = tranzAccessObject->cellScalarGlobIdx(cellArea.first);
double transmissibilityForCell = RigTransmissibilityEquations::totalConnectionFactor(tranx, trany, tranz);
areaWeightedEclipseTransmissibility += transmissibilityForCell * areaPerEclipseCell.second / area;
areaWeightedEclipseTransmissibility += transmissibilityForCell * cellArea.second / area;
}
}
}

View File

@@ -1,88 +0,0 @@
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2018 Statoil ASA
//
// ResInsight is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#include "RicWellPathFractureTextReportFeature.h"
#include "RicWellPathFractureTextReportFeatureImpl.h"
#include "RiaApplication.h"
#include "RimCase.h"
#include "RimEclipseCase.h"
#include "RimProject.h"
#include "RimTools.h"
#include "RimWellPathCollection.h"
#include "RimWellPathFracture.h"
#include "RimWellPathFractureCollection.h"
#include "RiuTextDialog.h"
#include <QAction>
#include "RicWellPathFractureReportItem.h"
CAF_CMD_SOURCE_INIT(RicWellPathFractureTextReportFeature, "RicWellPathFractureTextReportFeature");
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RicWellPathFractureTextReportFeature::isCommandEnabled()
{
return true;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicWellPathFractureTextReportFeature::onActionTriggered(bool isChecked)
{
RimEclipseCase* eclipseCase = nullptr;
{
RimProject* proj = RiaApplication::instance()->project();
std::vector<RimCase*> cases;
proj->allCases(cases);
for (auto c : cases)
{
if (dynamic_cast<RimEclipseCase*>(c))
{
eclipseCase = dynamic_cast<RimEclipseCase*>(c);
break;
}
}
}
auto wellPaths = RicWellPathFractureTextReportFeatureImpl::wellPathsWithFractures();
RicWellPathFractureTextReportFeatureImpl impl;
std::vector<RicWellPathFractureReportItem> wellPathFractureReportItems;
QString reportText = impl.wellPathFractureReport(eclipseCase, wellPaths, wellPathFractureReportItems);
RiuTextDialog* textDialog = new RiuTextDialog(nullptr);
textDialog->resize(QSize(1000, 1000));
textDialog->setWindowTitle("Fracture Report");
textDialog->setText(reportText);
textDialog->show();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicWellPathFractureTextReportFeature::setupActionLook(QAction* actionToSetup)
{
actionToSetup->setText("Show Fracture Completion Header for Well Paths");
}

View File

@@ -1,34 +0,0 @@
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2018 Statoil ASA
//
// ResInsight is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "cafCmdFeature.h"
//==================================================================================================
///
//==================================================================================================
class RicWellPathFractureTextReportFeature : public caf::CmdFeature
{
CAF_CMD_HEADER_INIT;
private:
bool isCommandEnabled() override;
void onActionTriggered(bool isChecked) override;
void setupActionLook(QAction* actionToSetup) override;
};

View File

@@ -252,7 +252,6 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
menuBuilder << "RicReloadWellPathFormationNamesFeature";
menuBuilder << "RicWellPathImportPerforationIntervalsFeature";
menuBuilder.subMenuEnd();
menuBuilder << "RicWellPathFractureTextReportFeature";
}
else if (dynamic_cast<RimWellPath*>(uiItem))
{

View File

@@ -122,7 +122,7 @@ void RigEclipseToStimPlanCalculator::appendDataToTransmissibilityCondenser(RimFr
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::map<size_t, double> RigEclipseToStimPlanCalculator::areaPerEclipseCell() const
std::map<size_t, double> RigEclipseToStimPlanCalculator::eclipseCellAreas() const
{
std::map<size_t, double> areaForEclipseReservoirCells;

View File

@@ -52,7 +52,7 @@ public:
RigTransmissibilityCondenser* condenser) const;
// Returns the area of each stimplan cell intersecting eclipse cells
std::map<size_t, double> areaPerEclipseCell() const;
std::map<size_t, double> eclipseCellAreas() const;
private:
void computeValues();