2017-06-13 02:58:33 -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-07-03 04:00:06 -05:00
|
|
|
#include "RiaEclipseUnitTools.h"
|
2017-06-13 02:58:33 -05:00
|
|
|
|
|
|
|
#include "cvfBase.h"
|
|
|
|
#include "cvfObject.h"
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class RigStimPlanFractureDefinition;
|
|
|
|
class QXmlStreamReader;
|
|
|
|
|
|
|
|
class RifStimPlanXmlReader
|
|
|
|
{
|
|
|
|
public:
|
2017-08-03 06:39:52 -05:00
|
|
|
static cvf::ref<RigStimPlanFractureDefinition> readStimPlanXMLFile(const QString& stimPlanFileName, double conductivityScalingFactor, QString * errorMessage);
|
2017-06-13 02:58:33 -05:00
|
|
|
|
|
|
|
private:
|
2018-01-31 05:25:58 -06:00
|
|
|
static size_t readStimplanGridAndTimesteps(QXmlStreamReader &xmlStream, RigStimPlanFractureDefinition* stimPlanFileData);
|
2017-06-13 02:58:33 -05:00
|
|
|
|
|
|
|
static double getAttributeValueDouble(QXmlStreamReader &xmlStream, QString parameterName);
|
|
|
|
static QString getAttributeValueString(QXmlStreamReader &xmlStream, QString parameterName);
|
|
|
|
static void getGriddingValues(QXmlStreamReader &xmlStream, std::vector<double>& gridValues, size_t& startNegValues);
|
|
|
|
|
|
|
|
static std::vector<std::vector<double>> getAllDepthDataAtTimeStep(QXmlStreamReader &xmlStream, size_t startingNegValuesXs);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|