mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 17:32:13 -05:00
#6596 Rename from FractureModel to StimPlanModel.
This commit is contained in:
1 parent
c8c32efba2
commit
2ec4e5a6c4
96 files changed
+1221
-1221
No files matched your search
@@ -54,11 +54,11 @@ ${CMAKE_CURRENT_LIST_DIR}/RifSurfaceImporter.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifRoffReader.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifColorLegendData.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifElasticPropertiesReader.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifFractureModelExporter.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifFractureModelGeologicalFrkExporter.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifFractureModelDeviationFrkExporter.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifFractureModelPerfsFrkExporter.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifFractureModelAsymmetricFrkExporter.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifStimPlanModelExporter.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifStimPlanModelGeologicalFrkExporter.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifStimPlanModelDeviationFrkExporter.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifStimPlanModelPerfsFrkExporter.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifStimPlanModelAsymmetricFrkExporter.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifSurfaceExporter.h
|
||||
|
||||
|
||||
@@ -119,11 +119,11 @@ ${CMAKE_CURRENT_LIST_DIR}/RifSurfaceImporter.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifRoffReader.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifColorLegendData.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifElasticPropertiesReader.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifFractureModelExporter.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifFractureModelGeologicalFrkExporter.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifFractureModelDeviationFrkExporter.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifFractureModelPerfsFrkExporter.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifFractureModelAsymmetricFrkExporter.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifStimPlanModelExporter.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifStimPlanModelGeologicalFrkExporter.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifStimPlanModelDeviationFrkExporter.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifStimPlanModelPerfsFrkExporter.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifStimPlanModelAsymmetricFrkExporter.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifSurfaceExporter.cpp
|
||||
|
||||
# HDF5 file reader is directly included in ResInsight main CmakeList.txt
|
||||
|
||||
+11
-11
@@ -16,9 +16,9 @@
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RifFractureModelAsymmetricFrkExporter.h"
|
||||
#include "RifStimPlanModelAsymmetricFrkExporter.h"
|
||||
|
||||
#include "RimFractureModel.h"
|
||||
#include "RimStimPlanModel.h"
|
||||
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
@@ -26,7 +26,7 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RifFractureModelAsymmetricFrkExporter::writeToFile( RimFractureModel* fractureModel, const QString& filepath )
|
||||
bool RifStimPlanModelAsymmetricFrkExporter::writeToFile( RimStimPlanModel* stimPlanModel, const QString& filepath )
|
||||
{
|
||||
QFile data( filepath );
|
||||
if ( !data.open( QFile::WriteOnly | QFile::Truncate ) )
|
||||
@@ -37,11 +37,11 @@ bool RifFractureModelAsymmetricFrkExporter::writeToFile( RimFractureModel* fract
|
||||
QTextStream stream( &data );
|
||||
appendHeaderToStream( stream );
|
||||
|
||||
double bedDipDeg = fractureModel->formationDip();
|
||||
bool hasBarrier = fractureModel->hasBarrier();
|
||||
double distanceToBarrier = fractureModel->distanceToBarrier();
|
||||
double barrierDip = fractureModel->barrierDip();
|
||||
int wellPenetrationLayer = fractureModel->wellPenetrationLayer();
|
||||
double bedDipDeg = stimPlanModel->formationDip();
|
||||
bool hasBarrier = stimPlanModel->hasBarrier();
|
||||
double distanceToBarrier = stimPlanModel->distanceToBarrier();
|
||||
double barrierDip = stimPlanModel->barrierDip();
|
||||
int wellPenetrationLayer = stimPlanModel->wellPenetrationLayer();
|
||||
|
||||
appendBarrierDataToStream( stream,
|
||||
bedDipDeg,
|
||||
@@ -58,7 +58,7 @@ bool RifFractureModelAsymmetricFrkExporter::writeToFile( RimFractureModel* fract
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifFractureModelAsymmetricFrkExporter::appendHeaderToStream( QTextStream& stream )
|
||||
void RifStimPlanModelAsymmetricFrkExporter::appendHeaderToStream( QTextStream& stream )
|
||||
{
|
||||
stream << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << endl << "<asymmetric>" << endl;
|
||||
}
|
||||
@@ -66,7 +66,7 @@ void RifFractureModelAsymmetricFrkExporter::appendHeaderToStream( QTextStream& s
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifFractureModelAsymmetricFrkExporter::appendBarrierDataToStream( QTextStream& stream,
|
||||
void RifStimPlanModelAsymmetricFrkExporter::appendBarrierDataToStream( QTextStream& stream,
|
||||
double bedDipDeg,
|
||||
bool hasBarrier,
|
||||
double distanceToBarrier,
|
||||
@@ -93,7 +93,7 @@ void RifFractureModelAsymmetricFrkExporter::appendBarrierDataToStream( QTextStre
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifFractureModelAsymmetricFrkExporter::appendFooterToStream( QTextStream& stream )
|
||||
void RifStimPlanModelAsymmetricFrkExporter::appendFooterToStream( QTextStream& stream )
|
||||
{
|
||||
stream << "</asymmetric>" << endl;
|
||||
}
|
||||
+3
-3
@@ -18,7 +18,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
class RimFractureModel;
|
||||
class RimStimPlanModel;
|
||||
|
||||
class QString;
|
||||
class QTextStream;
|
||||
@@ -26,10 +26,10 @@ class QTextStream;
|
||||
//==================================================================================================
|
||||
//
|
||||
//==================================================================================================
|
||||
class RifFractureModelAsymmetricFrkExporter
|
||||
class RifStimPlanModelAsymmetricFrkExporter
|
||||
{
|
||||
public:
|
||||
static bool writeToFile( RimFractureModel* fractureModel, const QString& filepath );
|
||||
static bool writeToFile( RimStimPlanModel* stimPlanModel, const QString& filepath );
|
||||
|
||||
private:
|
||||
static void appendHeaderToStream( QTextStream& stream );
|
||||
+9
-9
@@ -16,9 +16,9 @@
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RifFractureModelDeviationFrkExporter.h"
|
||||
#include "RifStimPlanModelDeviationFrkExporter.h"
|
||||
|
||||
#include "RimFractureModel.h"
|
||||
#include "RimStimPlanModel.h"
|
||||
#include "RimWellPath.h"
|
||||
|
||||
#include "RigWellPathGeometryExporter.h"
|
||||
@@ -29,9 +29,9 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RifFractureModelDeviationFrkExporter::writeToFile( RimFractureModel* fractureModel, const QString& filepath )
|
||||
bool RifStimPlanModelDeviationFrkExporter::writeToFile( RimStimPlanModel* stimPlanModel, const QString& filepath )
|
||||
{
|
||||
RimWellPath* wellPath = fractureModel->wellPath();
|
||||
RimWellPath* wellPath = stimPlanModel->wellPath();
|
||||
if ( !wellPath )
|
||||
{
|
||||
return false;
|
||||
@@ -71,7 +71,7 @@ bool RifFractureModelDeviationFrkExporter::writeToFile( RimFractureModel* fractu
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifFractureModelDeviationFrkExporter::appendHeaderToStream( QTextStream& stream )
|
||||
void RifStimPlanModelDeviationFrkExporter::appendHeaderToStream( QTextStream& stream )
|
||||
{
|
||||
stream << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << endl << "<deviation>" << endl;
|
||||
}
|
||||
@@ -79,7 +79,7 @@ void RifFractureModelDeviationFrkExporter::appendHeaderToStream( QTextStream& st
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifFractureModelDeviationFrkExporter::appendToStream( QTextStream& stream,
|
||||
void RifStimPlanModelDeviationFrkExporter::appendToStream( QTextStream& stream,
|
||||
const QString& label,
|
||||
const std::vector<double>& values )
|
||||
{
|
||||
@@ -106,7 +106,7 @@ void RifFractureModelDeviationFrkExporter::appendToStream( QTextStream&
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifFractureModelDeviationFrkExporter::appendFooterToStream( QTextStream& stream )
|
||||
void RifStimPlanModelDeviationFrkExporter::appendFooterToStream( QTextStream& stream )
|
||||
{
|
||||
stream << "</deviation>" << endl;
|
||||
}
|
||||
@@ -114,7 +114,7 @@ void RifFractureModelDeviationFrkExporter::appendFooterToStream( QTextStream& st
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifFractureModelDeviationFrkExporter::convertFromMeterToFeet( std::vector<double>& data )
|
||||
void RifStimPlanModelDeviationFrkExporter::convertFromMeterToFeet( std::vector<double>& data )
|
||||
{
|
||||
for ( size_t i = 0; i < data.size(); i++ )
|
||||
{
|
||||
@@ -125,7 +125,7 @@ void RifFractureModelDeviationFrkExporter::convertFromMeterToFeet( std::vector<d
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifFractureModelDeviationFrkExporter::fixupDepthValuesForExport( const std::vector<double>& tvdValues,
|
||||
void RifStimPlanModelDeviationFrkExporter::fixupDepthValuesForExport( const std::vector<double>& tvdValues,
|
||||
const std::vector<double>& mdValues,
|
||||
std::vector<double>& exportTvdValues,
|
||||
std::vector<double>& exportMdValues )
|
||||
+3
-3
@@ -20,17 +20,17 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
class RimFractureModel;
|
||||
class RimStimPlanModel;
|
||||
class QString;
|
||||
class QTextStream;
|
||||
|
||||
//==================================================================================================
|
||||
//
|
||||
//==================================================================================================
|
||||
class RifFractureModelDeviationFrkExporter
|
||||
class RifStimPlanModelDeviationFrkExporter
|
||||
{
|
||||
public:
|
||||
static bool writeToFile( RimFractureModel* fractureModel, const QString& filepath );
|
||||
static bool writeToFile( RimStimPlanModel* stimPlanModel, const QString& filepath );
|
||||
|
||||
static void fixupDepthValuesForExport( const std::vector<double>& tvdValues,
|
||||
const std::vector<double>& mdValues,
|
||||
+11
-11
@@ -16,26 +16,26 @@
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RifFractureModelExporter.h"
|
||||
#include "RifStimPlanModelExporter.h"
|
||||
|
||||
#include "RifFractureModelAsymmetricFrkExporter.h"
|
||||
#include "RifFractureModelDeviationFrkExporter.h"
|
||||
#include "RifFractureModelGeologicalFrkExporter.h"
|
||||
#include "RifFractureModelPerfsFrkExporter.h"
|
||||
#include "RifStimPlanModelAsymmetricFrkExporter.h"
|
||||
#include "RifStimPlanModelDeviationFrkExporter.h"
|
||||
#include "RifStimPlanModelGeologicalFrkExporter.h"
|
||||
#include "RifStimPlanModelPerfsFrkExporter.h"
|
||||
|
||||
#include "RimFractureModel.h"
|
||||
#include "RimStimPlanModel.h"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RifFractureModelExporter::writeToDirectory( RimFractureModel* fractureModel,
|
||||
bool RifStimPlanModelExporter::writeToDirectory( RimStimPlanModel* stimPlanModel,
|
||||
bool useDetailedFluidLoss,
|
||||
const QString& directoryPath )
|
||||
{
|
||||
return RifFractureModelGeologicalFrkExporter::writeToFile( fractureModel,
|
||||
return RifStimPlanModelGeologicalFrkExporter::writeToFile( stimPlanModel,
|
||||
useDetailedFluidLoss,
|
||||
directoryPath + "/Geological.frk" ) &&
|
||||
RifFractureModelDeviationFrkExporter::writeToFile( fractureModel, directoryPath + "/Deviation.frk" ) &&
|
||||
RifFractureModelPerfsFrkExporter::writeToFile( fractureModel, directoryPath + "/Perfs.frk" ) &&
|
||||
RifFractureModelAsymmetricFrkExporter::writeToFile( fractureModel, directoryPath + "/Asymmetric.frk" );
|
||||
RifStimPlanModelDeviationFrkExporter::writeToFile( stimPlanModel, directoryPath + "/Deviation.frk" ) &&
|
||||
RifStimPlanModelPerfsFrkExporter::writeToFile( stimPlanModel, directoryPath + "/Perfs.frk" ) &&
|
||||
RifStimPlanModelAsymmetricFrkExporter::writeToFile( stimPlanModel, directoryPath + "/Asymmetric.frk" );
|
||||
}
|
||||
+3
-3
@@ -20,15 +20,15 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
class RimFractureModel;
|
||||
class RimStimPlanModel;
|
||||
class QString;
|
||||
class QTextStream;
|
||||
|
||||
//==================================================================================================
|
||||
//
|
||||
//==================================================================================================
|
||||
class RifFractureModelExporter
|
||||
class RifStimPlanModelExporter
|
||||
{
|
||||
public:
|
||||
static bool writeToDirectory( RimFractureModel* fractureModel, bool useDetailedFluidLoss, const QString& directoryPath );
|
||||
static bool writeToDirectory( RimStimPlanModel* stimPlanModel, bool useDetailedFluidLoss, const QString& directoryPath );
|
||||
};
|
||||
+25
-25
@@ -16,10 +16,10 @@
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RifFractureModelGeologicalFrkExporter.h"
|
||||
#include "RifStimPlanModelGeologicalFrkExporter.h"
|
||||
|
||||
#include "RimFractureModel.h"
|
||||
#include "RimFractureModelCalculator.h"
|
||||
#include "RimStimPlanModel.h"
|
||||
#include "RimStimPlanModelCalculator.h"
|
||||
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
@@ -27,7 +27,7 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RifFractureModelGeologicalFrkExporter::writeToFile( RimFractureModel* fractureModel,
|
||||
bool RifStimPlanModelGeologicalFrkExporter::writeToFile( RimStimPlanModel* stimPlanModel,
|
||||
bool useDetailedLoss,
|
||||
const QString& filepath )
|
||||
{
|
||||
@@ -91,24 +91,24 @@ bool RifFractureModelGeologicalFrkExporter::writeToFile( RimFractureModel* fract
|
||||
}
|
||||
|
||||
std::map<QString, std::vector<double>> values;
|
||||
values["dpthlyr"] = fractureModel->calculator()->calculateTrueVerticalDepth();
|
||||
values["strs"] = fractureModel->calculator()->calculateStress();
|
||||
values["strsg"] = fractureModel->calculator()->calculateStressGradient();
|
||||
values["elyr"] = fractureModel->calculator()->calculateYoungsModulus();
|
||||
values["poissonr"] = fractureModel->calculator()->calculatePoissonsRatio();
|
||||
values["tuflyr"] = fractureModel->calculator()->calculateKIc();
|
||||
values["clyrc"] = fractureModel->calculator()->calculateFluidLossCoefficient();
|
||||
values["clyrs"] = fractureModel->calculator()->calculateSpurtLoss();
|
||||
values["pembed"] = fractureModel->calculator()->calculateProppandEmbedment();
|
||||
values["zoneResPres"] = fractureModel->calculator()->calculateReservoirPressure();
|
||||
values["zoneWaterSat"] = fractureModel->calculator()->calculateImmobileFluidSaturation();
|
||||
values["zonePorosity"] = fractureModel->calculator()->calculatePorosity();
|
||||
values["zoneHorizPerm"] = fractureModel->calculator()->calculateHorizontalPermeability();
|
||||
values["zoneVertPerm"] = fractureModel->calculator()->calculateVerticalPermeability();
|
||||
values["zoneTemp"] = fractureModel->calculator()->calculateTemperature();
|
||||
values["zoneRelPerm"] = fractureModel->calculator()->calculateRelativePermeabilityFactor();
|
||||
values["zonePoroElas"] = fractureModel->calculator()->calculatePoroElasticConstant();
|
||||
values["zoneThermalExp"] = fractureModel->calculator()->calculateThermalExpansionCoefficient();
|
||||
values["dpthlyr"] = stimPlanModel->calculator()->calculateTrueVerticalDepth();
|
||||
values["strs"] = stimPlanModel->calculator()->calculateStress();
|
||||
values["strsg"] = stimPlanModel->calculator()->calculateStressGradient();
|
||||
values["elyr"] = stimPlanModel->calculator()->calculateYoungsModulus();
|
||||
values["poissonr"] = stimPlanModel->calculator()->calculatePoissonsRatio();
|
||||
values["tuflyr"] = stimPlanModel->calculator()->calculateKIc();
|
||||
values["clyrc"] = stimPlanModel->calculator()->calculateFluidLossCoefficient();
|
||||
values["clyrs"] = stimPlanModel->calculator()->calculateSpurtLoss();
|
||||
values["pembed"] = stimPlanModel->calculator()->calculateProppandEmbedment();
|
||||
values["zoneResPres"] = stimPlanModel->calculator()->calculateReservoirPressure();
|
||||
values["zoneWaterSat"] = stimPlanModel->calculator()->calculateImmobileFluidSaturation();
|
||||
values["zonePorosity"] = stimPlanModel->calculator()->calculatePorosity();
|
||||
values["zoneHorizPerm"] = stimPlanModel->calculator()->calculateHorizontalPermeability();
|
||||
values["zoneVertPerm"] = stimPlanModel->calculator()->calculateVerticalPermeability();
|
||||
values["zoneTemp"] = stimPlanModel->calculator()->calculateTemperature();
|
||||
values["zoneRelPerm"] = stimPlanModel->calculator()->calculateRelativePermeabilityFactor();
|
||||
values["zonePoroElas"] = stimPlanModel->calculator()->calculatePoroElasticConstant();
|
||||
values["zoneThermalExp"] = stimPlanModel->calculator()->calculateThermalExpansionCoefficient();
|
||||
|
||||
QFile data( filepath );
|
||||
if ( !data.open( QFile::WriteOnly | QFile::Truncate ) )
|
||||
@@ -129,12 +129,12 @@ bool RifFractureModelGeologicalFrkExporter::writeToFile( RimFractureModel* fract
|
||||
return true;
|
||||
}
|
||||
|
||||
void RifFractureModelGeologicalFrkExporter::appendHeaderToStream( QTextStream& stream )
|
||||
void RifStimPlanModelGeologicalFrkExporter::appendHeaderToStream( QTextStream& stream )
|
||||
{
|
||||
stream << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << endl << "<geologic>" << endl;
|
||||
}
|
||||
|
||||
void RifFractureModelGeologicalFrkExporter::appendToStream( QTextStream& stream,
|
||||
void RifStimPlanModelGeologicalFrkExporter::appendToStream( QTextStream& stream,
|
||||
const QString& label,
|
||||
const std::vector<double>& values )
|
||||
{
|
||||
@@ -157,7 +157,7 @@ void RifFractureModelGeologicalFrkExporter::appendToStream( QTextStream&
|
||||
stream << "</data>" << endl << "</cNamedSet>" << endl;
|
||||
}
|
||||
|
||||
void RifFractureModelGeologicalFrkExporter::appendFooterToStream( QTextStream& stream )
|
||||
void RifStimPlanModelGeologicalFrkExporter::appendFooterToStream( QTextStream& stream )
|
||||
{
|
||||
stream << "</geologic>" << endl;
|
||||
}
|
||||
+3
-3
@@ -20,17 +20,17 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
class RimFractureModel;
|
||||
class RimStimPlanModel;
|
||||
class QString;
|
||||
class QTextStream;
|
||||
|
||||
//==================================================================================================
|
||||
//
|
||||
//==================================================================================================
|
||||
class RifFractureModelGeologicalFrkExporter
|
||||
class RifStimPlanModelGeologicalFrkExporter
|
||||
{
|
||||
public:
|
||||
static bool writeToFile( RimFractureModel* plot, bool useDetailedFluidLoss, const QString& filepath );
|
||||
static bool writeToFile( RimStimPlanModel* plot, bool useDetailedFluidLoss, const QString& filepath );
|
||||
|
||||
private:
|
||||
static void appendHeaderToStream( QTextStream& stream );
|
||||
+13
-13
@@ -16,11 +16,11 @@
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RifFractureModelPerfsFrkExporter.h"
|
||||
#include "RifStimPlanModelPerfsFrkExporter.h"
|
||||
|
||||
#include "RiaLogging.h"
|
||||
|
||||
#include "RimFractureModel.h"
|
||||
#include "RimStimPlanModel.h"
|
||||
#include "RimWellPath.h"
|
||||
|
||||
#include "RigWellPath.h"
|
||||
@@ -34,9 +34,9 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RifFractureModelPerfsFrkExporter::writeToFile( RimFractureModel* fractureModel, const QString& filepath )
|
||||
bool RifStimPlanModelPerfsFrkExporter::writeToFile( RimStimPlanModel* stimPlanModel, const QString& filepath )
|
||||
{
|
||||
RimWellPath* wellPath = fractureModel->wellPath();
|
||||
RimWellPath* wellPath = stimPlanModel->wellPath();
|
||||
if ( !wellPath )
|
||||
{
|
||||
return false;
|
||||
@@ -52,15 +52,15 @@ bool RifFractureModelPerfsFrkExporter::writeToFile( RimFractureModel* fractureMo
|
||||
appendHeaderToStream( stream );
|
||||
|
||||
bool isTransverse =
|
||||
( fractureModel->fractureOrientation() == RimFractureModel::FractureOrientation::TRANSVERSE_WELL_PATH ||
|
||||
fractureModel->fractureOrientation() == RimFractureModel::FractureOrientation::AZIMUTH );
|
||||
( stimPlanModel->fractureOrientation() == RimStimPlanModel::FractureOrientation::TRANSVERSE_WELL_PATH ||
|
||||
stimPlanModel->fractureOrientation() == RimStimPlanModel::FractureOrientation::AZIMUTH );
|
||||
|
||||
appendFractureOrientationToStream( stream, isTransverse );
|
||||
|
||||
// Unit: meter
|
||||
double perforationLength = fractureModel->perforationLength();
|
||||
double perforationLength = stimPlanModel->perforationLength();
|
||||
|
||||
double anchorPositionMD = computeMeasuredDepthForPosition( wellPath, fractureModel->anchorPosition() );
|
||||
double anchorPositionMD = computeMeasuredDepthForPosition( wellPath, stimPlanModel->anchorPosition() );
|
||||
double topMD = anchorPositionMD - ( perforationLength / 2.0 );
|
||||
double bottomMD = anchorPositionMD + ( perforationLength / 2.0 );
|
||||
|
||||
@@ -77,7 +77,7 @@ bool RifFractureModelPerfsFrkExporter::writeToFile( RimFractureModel* fractureMo
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifFractureModelPerfsFrkExporter::appendHeaderToStream( QTextStream& stream )
|
||||
void RifStimPlanModelPerfsFrkExporter::appendHeaderToStream( QTextStream& stream )
|
||||
{
|
||||
stream << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << endl << "<perfs>" << endl;
|
||||
}
|
||||
@@ -85,7 +85,7 @@ void RifFractureModelPerfsFrkExporter::appendHeaderToStream( QTextStream& stream
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifFractureModelPerfsFrkExporter::appendFractureOrientationToStream( QTextStream& stream, bool isTransverse )
|
||||
void RifStimPlanModelPerfsFrkExporter::appendFractureOrientationToStream( QTextStream& stream, bool isTransverse )
|
||||
{
|
||||
stream << "<transverse>" << endl << static_cast<int>( isTransverse ) << endl << "</transverse>" << endl;
|
||||
}
|
||||
@@ -93,7 +93,7 @@ void RifFractureModelPerfsFrkExporter::appendFractureOrientationToStream( QTextS
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifFractureModelPerfsFrkExporter::appendPerforationToStream( QTextStream& stream, int index, double topMD, double bottomMD )
|
||||
void RifStimPlanModelPerfsFrkExporter::appendPerforationToStream( QTextStream& stream, int index, double topMD, double bottomMD )
|
||||
{
|
||||
stream << "<perf frac=\"" << index << "\">" << endl
|
||||
<< "<topMD>" << endl
|
||||
@@ -108,7 +108,7 @@ void RifFractureModelPerfsFrkExporter::appendPerforationToStream( QTextStream& s
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifFractureModelPerfsFrkExporter::appendFooterToStream( QTextStream& stream )
|
||||
void RifStimPlanModelPerfsFrkExporter::appendFooterToStream( QTextStream& stream )
|
||||
{
|
||||
stream << "</perfs>" << endl;
|
||||
}
|
||||
@@ -116,7 +116,7 @@ void RifFractureModelPerfsFrkExporter::appendFooterToStream( QTextStream& stream
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RifFractureModelPerfsFrkExporter::computeMeasuredDepthForPosition( const RimWellPath* wellPath,
|
||||
double RifStimPlanModelPerfsFrkExporter::computeMeasuredDepthForPosition( const RimWellPath* wellPath,
|
||||
const cvf::Vec3d& position )
|
||||
{
|
||||
const RigWellPath* wellPathGeometry = wellPath->wellPathGeometry();
|
||||
+3
-3
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "cvfVector3.h"
|
||||
|
||||
class RimFractureModel;
|
||||
class RimStimPlanModel;
|
||||
class RimWellPath;
|
||||
|
||||
class QString;
|
||||
@@ -29,10 +29,10 @@ class QTextStream;
|
||||
//==================================================================================================
|
||||
//
|
||||
//==================================================================================================
|
||||
class RifFractureModelPerfsFrkExporter
|
||||
class RifStimPlanModelPerfsFrkExporter
|
||||
{
|
||||
public:
|
||||
static bool writeToFile( RimFractureModel* fractureModel, const QString& filepath );
|
||||
static bool writeToFile( RimStimPlanModel* stimPlanModel, const QString& filepath );
|
||||
|
||||
private:
|
||||
static void appendHeaderToStream( QTextStream& stream );
|
||||
Reference in new issue
Block a user