2017-01-10 02:30:39 -06: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
|
|
|
|
|
|
|
|
#include "cvfBase.h"
|
|
|
|
#include "cvfObject.h"
|
|
|
|
#include "cvfLibCore.h"
|
|
|
|
|
|
|
|
#include "ert/ecl/ecl_kw.h"
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
|
|
|
|
class QFile;
|
2017-01-30 07:47:56 -06:00
|
|
|
class QTextStream;
|
2017-05-16 03:55:31 -05:00
|
|
|
class RigFracturedEclipseCellExportData;
|
2017-02-02 01:46:05 -06:00
|
|
|
class RigMainGrid;
|
|
|
|
class RimEclipseCase;
|
2017-01-30 07:47:56 -06:00
|
|
|
class RimEclipseWell;
|
|
|
|
class RimFracture;
|
2017-02-02 01:46:05 -06:00
|
|
|
class RimFracture;
|
|
|
|
class RimWellPath;
|
2017-01-10 02:30:39 -06:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
//
|
|
|
|
// Class for access to Eclipse "keyword" files using libecl
|
|
|
|
//
|
|
|
|
//==================================================================================================
|
2017-05-18 07:40:47 -05:00
|
|
|
class RifFractureExportTools
|
2017-01-10 02:30:39 -06:00
|
|
|
{
|
|
|
|
public:
|
2017-05-18 07:40:47 -05:00
|
|
|
RifFractureExportTools();
|
|
|
|
virtual ~RifFractureExportTools();
|
2017-01-10 02:30:39 -06:00
|
|
|
|
2017-05-19 02:15:39 -05:00
|
|
|
static bool exportFracturesToEclipseDataInputFile(const QString& fileName,
|
|
|
|
const std::vector<RimFracture*>& fractures,
|
|
|
|
RimEclipseCase* caseToApply);
|
2017-01-10 02:30:39 -06:00
|
|
|
|
2017-05-19 07:14:08 -05:00
|
|
|
static void exportWellPathFracturesToEclipseDataInputFile(const QString& fileName,
|
|
|
|
const RimWellPath* wellPath,
|
|
|
|
const RimEclipseCase* caseToApply);
|
|
|
|
|
|
|
|
|
2017-05-16 03:55:31 -05:00
|
|
|
private:
|
2017-05-19 04:07:53 -05:00
|
|
|
|
2017-05-19 07:38:55 -05:00
|
|
|
static void printCOMPDATvalues(QTextStream & out,
|
|
|
|
double transmissibility,
|
|
|
|
size_t i, size_t j, size_t k,
|
|
|
|
const QString& fractureName,
|
|
|
|
double skinFactor,
|
|
|
|
const QString& wellName);
|
|
|
|
|
2017-05-19 01:45:51 -05:00
|
|
|
static void printStimPlanCellsMatrixTransContributions(const std::vector<RimFracture *>& fractures,
|
|
|
|
RimEclipseCase* caseToApply,
|
|
|
|
QTextStream &out,
|
|
|
|
const QString& wellName,
|
|
|
|
const RigMainGrid* mainGrid);
|
2017-04-18 06:34:32 -05:00
|
|
|
static void printStimPlanFractureTrans(const std::vector<RimFracture *>& fractures, QTextStream &out);
|
2017-05-19 01:45:51 -05:00
|
|
|
static void printTransmissibilityFractureToWell(const std::vector<RimFracture *>& fractures,
|
|
|
|
QTextStream &out,
|
|
|
|
RimEclipseCase* caseToApply);
|
2017-04-18 06:34:32 -05:00
|
|
|
|
2017-03-20 04:38:58 -05:00
|
|
|
|
2017-01-30 07:47:56 -06:00
|
|
|
static void printBackgroundDataHeaderLine(QTextStream & out);
|
|
|
|
|
2017-05-19 01:45:51 -05:00
|
|
|
static void printBackgroundData(QTextStream & out,
|
|
|
|
const QString& wellName,
|
|
|
|
RimFracture* fracture,
|
|
|
|
const RigMainGrid* mainGrid,
|
|
|
|
RigFracturedEclipseCellExportData &fracData);
|
2017-01-10 02:30:39 -06:00
|
|
|
};
|