2017-05-16 09:18:56 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2017 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
|
|
|
|
|
2017-08-14 12:27:44 -05:00
|
|
|
#include "RiaPorosityModel.h"
|
2017-05-16 09:18:56 -05:00
|
|
|
|
|
|
|
#include "cvfBase.h"
|
2017-08-14 12:27:44 -05:00
|
|
|
#include "cvfObject.h"
|
2017-05-16 09:18:56 -05:00
|
|
|
#include "cvfMatrix4.h"
|
|
|
|
|
2017-08-14 12:27:44 -05:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class QString;
|
|
|
|
|
2017-05-16 09:18:56 -05:00
|
|
|
class RimEclipseCase;
|
2017-05-30 04:52:19 -05:00
|
|
|
class RigFractureCell;
|
2017-08-14 12:27:44 -05:00
|
|
|
class RigEclipseCaseData;
|
|
|
|
class RigResultAccessor;
|
2017-05-16 09:18:56 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
|
|
|
|
|
|
|
class RigEclipseToStimPlanCellTransmissibilityCalculator
|
|
|
|
{
|
|
|
|
public:
|
2017-06-22 03:42:07 -05:00
|
|
|
explicit RigEclipseToStimPlanCellTransmissibilityCalculator(RimEclipseCase* caseToApply,
|
2017-06-23 03:16:39 -05:00
|
|
|
cvf::Mat4d fractureTransform,
|
2017-05-16 09:40:37 -05:00
|
|
|
double skinFactor,
|
|
|
|
double cDarcy,
|
2017-05-30 04:52:19 -05:00
|
|
|
const RigFractureCell& stimPlanCell);
|
2017-05-16 09:18:56 -05:00
|
|
|
|
2017-05-16 09:40:37 -05:00
|
|
|
const std::vector<size_t>& globalIndeciesToContributingEclipseCells();
|
|
|
|
const std::vector<double>& contributingEclipseCellTransmissibilities();
|
2017-05-16 09:18:56 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
void calculateStimPlanCellsMatrixTransmissibility();
|
2017-05-16 09:40:37 -05:00
|
|
|
std::vector<size_t> getPotentiallyFracturedCellsForPolygon(std::vector<cvf::Vec3d> polygon);
|
2017-05-19 03:56:06 -05:00
|
|
|
|
2017-08-14 12:27:44 -05:00
|
|
|
static cvf::ref<RigResultAccessor>
|
|
|
|
loadResultAndCreateResultAccessor(RimEclipseCase* eclipseCase,
|
|
|
|
RiaDefines::PorosityModelType porosityModel,
|
|
|
|
const QString& uiResultName);
|
2017-06-14 04:25:43 -05:00
|
|
|
|
2017-06-14 00:25:34 -05:00
|
|
|
private:
|
2017-06-22 03:42:07 -05:00
|
|
|
RimEclipseCase* m_case;
|
2017-05-16 09:18:56 -05:00
|
|
|
double m_cDarcy;
|
|
|
|
double m_fractureSkinFactor;
|
2017-06-23 03:16:39 -05:00
|
|
|
cvf::Mat4d m_fractureTransform;
|
2017-06-01 09:34:30 -05:00
|
|
|
const RigFractureCell& m_stimPlanCell;
|
2017-05-16 09:18:56 -05:00
|
|
|
|
|
|
|
std::vector<size_t> m_globalIndeciesToContributingEclipseCells;
|
|
|
|
std::vector<double> m_contributingEclipseCellTransmissibilities;
|
|
|
|
};
|
|
|
|
|