#3038 Fracture Completion Summary : Remove of obsolete and unused code

This commit is contained in:
Magne Sjaastad 2018-08-09 13:38:49 +02:00
parent ce085a03ca
commit 529632f2e1
5 changed files with 12 additions and 34 deletions

View File

@ -84,26 +84,6 @@ std::vector<RigCompletionData> RicExportFractureCompletionsImpl::generateCompdat
outputStreamForIntermediateResultsText);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<RigCompletionData> RicExportFractureCompletionsImpl::generateCompdatValuesForWellPathSingleFracture(
RimWellPath* wellPath,
RimEclipseCase* caseToApply,
RimFracture* fracture,
QTextStream* outputStreamForIntermediateResultsText)
{
std::vector<RimFracture*> fracturesAlongWellPath;
fracturesAlongWellPath.push_back(fracture);
return generateCompdatValues(caseToApply,
wellPath->completions()->wellNameForExport(),
wellPath->wellPathGeometry(),
fracturesAlongWellPath,
nullptr,
outputStreamForIntermediateResultsText);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -43,12 +43,6 @@ public:
std::vector<RicWellPathFractureReportItem>* fractureDataForReport,
QTextStream* outputStreamForIntermediateResultsText);
static std::vector<RigCompletionData>
generateCompdatValuesForWellPathSingleFracture(RimWellPath* wellPath,
RimEclipseCase* caseToApply,
RimFracture* fracture,
QTextStream* outputStreamForIntermediateResultsText);
static std::vector<RigCompletionData> generateCompdatValuesForSimWell(RimEclipseCase* eclipseCase,
const RimSimWellInView* well,
QTextStream* outputStreamForIntermediateResultsText);

View File

@ -27,6 +27,16 @@ RicWellPathFractureReportItem::RicWellPathFractureReportItem(const QString& well
: m_wellPath(wellPathName)
, m_wellPathFracture(fractureName)
, m_wellPathFractureTemplate(fractureTemplateName)
, m_transmissibility(0.0)
, m_connectionCount(0)
, m_fcd(0.0)
, m_area(0.0)
, m_kfwf(0.0)
, m_kf(0.0)
, m_wf(0.0)
, m_xf(0.0)
, m_h(0.0)
, m_km(0.0)
{
}
@ -62,7 +72,7 @@ void RicWellPathFractureReportItem::setHeightAndHalfLength(double height, double
}
//--------------------------------------------------------------------------------------------------
///
///
//--------------------------------------------------------------------------------------------------
void RicWellPathFractureReportItem::setAreaWeightedTransmissibility(double transmissibility)
{

View File

@ -612,9 +612,6 @@ QString RicWellPathFractureTextReportFeatureImpl::createFractureCompletionSummar
formatter.addHorizontalLine('-');
// Cache the fracture template area, as this is a heavy operation
std::map<RimFractureTemplate*, double> templateAreaMap;
for (const auto& reportItem : wellPathFractureReportItems)
{
QString wellPathName, fractureName, fractureTemplateName;

View File

@ -747,11 +747,10 @@ void RimStimPlanFractureTemplate::updateFractureGrid()
std::vector<double> areaPerCell;
double totalArea = 0.0;
double cellArea = 0.0;
for (const auto& c : m_fractureGrid->fractureCells())
{
cellArea = c.cellSizeX() * c.cellSizeZ();
double cellArea = c.cellSizeX() * c.cellSizeZ();
areaPerCell.push_back(cellArea);
totalArea += cellArea;
@ -774,8 +773,6 @@ void RimStimPlanFractureTemplate::updateFractureGrid()
for (size_t i = 0; i < areaPerCell.size(); i++)
{
const auto& c = m_fractureGrid->fractureCells()[i];
double perCellValue = resultValues[i] * areaPerCell[i] / totalArea;
m_areaWeightedWidth += perCellValue;