2017-03-21 07:43:44 -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-03-21 09:29:22 -05:00
|
|
|
|
#include "RimDefines.h"
|
|
|
|
|
|
|
|
|
|
#include "cafAppEnum.h"
|
|
|
|
|
|
2017-03-21 07:43:44 -05:00
|
|
|
|
#include "cvfBase.h"
|
|
|
|
|
#include "cvfMath.h"
|
|
|
|
|
#include "cvfVector3.h"
|
2017-03-21 09:29:22 -05:00
|
|
|
|
#include "cvfMatrix4.h"
|
|
|
|
|
#include "cvfPlane.h"
|
2017-03-21 07:43:44 -05:00
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
|
|
class RimFracture;
|
|
|
|
|
class RimEclipseCase;
|
2017-03-29 03:18:14 -05:00
|
|
|
|
class RigStimPlanCell;
|
2017-03-29 02:13:07 -05:00
|
|
|
|
class RimStimPlanFractureTemplate;
|
2017-03-21 07:43:44 -05:00
|
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
///
|
|
|
|
|
//==================================================================================================
|
2017-03-21 09:29:22 -05:00
|
|
|
|
class RigFractureTransCalc
|
2017-03-21 07:43:44 -05:00
|
|
|
|
{
|
|
|
|
|
public:
|
2017-03-21 09:29:22 -05:00
|
|
|
|
explicit RigFractureTransCalc(RimEclipseCase* caseToApply, RimFracture* fracture);
|
2017-03-21 07:43:44 -05:00
|
|
|
|
|
2017-03-29 02:43:36 -05:00
|
|
|
|
void computeTransmissibility();
|
|
|
|
|
bool planeCellIntersectionPolygons(size_t cellindex, std::vector<std::vector<cvf::Vec3d> > & polygons, cvf::Vec3d & localX, cvf::Vec3d & localY, cvf::Vec3d & localZ);
|
2017-03-28 06:49:03 -05:00
|
|
|
|
|
|
|
|
|
|
2017-03-29 02:43:36 -05:00
|
|
|
|
void computeUpscaledPropertyFromStimPlan(QString resultName, QString resultUnit, size_t timeStepIndex);
|
|
|
|
|
std::pair<double, double> flowAcrossLayersUpscaling(QString resultName, QString resultUnit, size_t timeStepIndex, RimDefines::UnitSystem unitSystem, size_t eclipseCellIndex);
|
2017-03-29 03:18:14 -05:00
|
|
|
|
double computeHAupscale(RimStimPlanFractureTemplate* fracTemplateStimPlan, std::vector<RigStimPlanCell *> stimPlanCells, std::vector<cvf::Vec3d> planeCellPolygon, cvf::Vec3d directionAlongLayers, cvf::Vec3d directionAcrossLayers);
|
|
|
|
|
double computeAHupscale(RimStimPlanFractureTemplate* fracTemplateStimPlan, std::vector<RigStimPlanCell *> stimPlanCells, std::vector<cvf::Vec3d> planeCellPolygon, cvf::Vec3d directionAlongLayers, cvf::Vec3d directionAcrossLayers);
|
2017-03-28 06:49:03 -05:00
|
|
|
|
|
2017-03-29 02:43:36 -05:00
|
|
|
|
static double arithmeticAverage(std::vector<double> values);
|
2017-03-28 06:49:03 -05:00
|
|
|
|
|
2017-03-29 02:43:36 -05:00
|
|
|
|
void computeFlowInFracture();
|
|
|
|
|
void computeFlowIntoTransverseWell();
|
2017-03-21 07:43:44 -05:00
|
|
|
|
|
|
|
|
|
|
2017-03-29 03:18:14 -05:00
|
|
|
|
static std::vector<RigStimPlanCell*> getRowOfStimPlanCells(std::vector<RigStimPlanCell*> allStimPlanCells, size_t i);
|
|
|
|
|
static std::vector<RigStimPlanCell*> getColOfStimPlanCells(std::vector<RigStimPlanCell*> allStimPlanCells, size_t j);
|
2017-03-28 06:49:03 -05:00
|
|
|
|
|
2017-03-31 03:25:24 -05:00
|
|
|
|
private:
|
|
|
|
|
double convertConductivtyValue(double Kw, RimDefines::UnitSystem fromUnit, RimDefines::UnitSystem toUnit);
|
2017-03-28 06:49:03 -05:00
|
|
|
|
|
2017-03-21 07:43:44 -05:00
|
|
|
|
private:
|
2017-03-21 09:29:22 -05:00
|
|
|
|
RimEclipseCase* m_case;
|
|
|
|
|
RimFracture* m_fracture;
|
|
|
|
|
RimDefines::UnitSystem m_unitForCalculation;
|
2017-03-21 07:43:44 -05:00
|
|
|
|
|
2017-03-31 03:25:24 -05:00
|
|
|
|
//TODO: Legge til rigFractureData vektor her...
|
|
|
|
|
//TODO: Funksjoner for <20> sette / hente data basert p<> celleindex
|
|
|
|
|
|
2017-03-21 07:43:44 -05:00
|
|
|
|
};
|
|
|
|
|
|