2018-08-09 04:12:05 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// 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 "RiaPorosityModel.h"
|
|
|
|
|
|
|
|
#include "RigEclipseToStimPlanCellTransmissibilityCalculator.h"
|
|
|
|
|
|
|
|
#include "cvfBase.h"
|
|
|
|
#include "cvfMatrix4.h"
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
class QString;
|
|
|
|
|
|
|
|
class RimEclipseCase;
|
|
|
|
class RigFractureGrid;
|
|
|
|
class RigTransmissibilityCondenser;
|
|
|
|
class RimFracture;
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
|
|
|
class RigEclipseToStimPlanCalculator
|
|
|
|
{
|
|
|
|
public:
|
2018-08-24 03:06:58 -05:00
|
|
|
explicit RigEclipseToStimPlanCalculator(const RimEclipseCase* caseToApply,
|
2018-08-09 04:12:05 -05:00
|
|
|
cvf::Mat4d fractureTransform,
|
|
|
|
double skinFactor,
|
|
|
|
double cDarcy,
|
2018-09-11 06:22:57 -05:00
|
|
|
const RigFractureGrid& fractureGrid,
|
|
|
|
const RimFracture* fracture);
|
2018-08-09 04:12:05 -05:00
|
|
|
|
2018-09-11 06:22:57 -05:00
|
|
|
void appendDataToTransmissibilityCondenser(bool useFiniteConductivityInFracture,
|
2018-08-09 04:12:05 -05:00
|
|
|
RigTransmissibilityCondenser* condenser) const;
|
|
|
|
|
2018-09-11 06:22:57 -05:00
|
|
|
// Returns the area intersecting eclipse cells open for flow, from both active and inactive cells
|
|
|
|
// Truncated parts of the fracture are not included
|
|
|
|
double totalEclipseAreaOpenForFlow() const;
|
|
|
|
|
|
|
|
double areaWeightedMatrixTransmissibility() const;
|
|
|
|
double areaWeightedWidth() const;
|
|
|
|
double areaWeightedConductivity() const;
|
|
|
|
double longestYSectionOpenForFlow() const;
|
2018-08-09 04:12:05 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
void computeValues();
|
|
|
|
|
|
|
|
private:
|
2018-08-24 03:06:58 -05:00
|
|
|
const RimEclipseCase* m_case;
|
2018-09-11 06:22:57 -05:00
|
|
|
const RimFracture* m_fracture;
|
2018-08-09 04:12:05 -05:00
|
|
|
double m_cDarcy;
|
|
|
|
double m_fractureSkinFactor;
|
|
|
|
cvf::Mat4d m_fractureTransform;
|
|
|
|
const RigFractureGrid& m_fractureGrid;
|
|
|
|
|
2018-09-11 06:22:57 -05:00
|
|
|
std::map<size_t, RigEclipseToStimPlanCellTransmissibilityCalculator> m_singleFractureCellCalculators;
|
2018-08-09 04:12:05 -05:00
|
|
|
};
|