mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 15:26:48 -06:00
#3038 Fracture Completion Summary : Add report item
This commit is contained in:
parent
91088f546a
commit
18c3ab025f
@ -11,6 +11,7 @@ ${CMAKE_CURRENT_LIST_DIR}/RicExportCompletionsForVisibleWellPathsFeature.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicExportCompletionsForVisibleSimWellsFeature.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicWellPathFractureTextReportFeature.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicWellPathFractureTextReportFeatureImpl.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicWellPathFractureReportItem.h
|
||||
)
|
||||
|
||||
|
||||
@ -26,6 +27,7 @@ ${CMAKE_CURRENT_LIST_DIR}/RicExportCompletionsForVisibleWellPathsFeature.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicExportCompletionsForVisibleSimWellsFeature.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicWellPathFractureTextReportFeature.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicWellPathFractureTextReportFeatureImpl.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicWellPathFractureReportItem.cpp
|
||||
)
|
||||
|
||||
list(APPEND CODE_HEADER_FILES
|
||||
|
@ -0,0 +1,168 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2018 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.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RicWellPathFractureReportItem.h"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RicWellPathFractureReportItem::RicWellPathFractureReportItem(const QString& wellPathName,
|
||||
const QString& fractureName,
|
||||
const QString& fractureTemplateName)
|
||||
: m_wellPath(wellPathName)
|
||||
, m_wellPathFracture(fractureName)
|
||||
, m_wellPathFractureTemplate(fractureTemplateName)
|
||||
{
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicWellPathFractureReportItem::setData(double trans, size_t connCount, double fcd, double area)
|
||||
{
|
||||
m_transmissibility = trans;
|
||||
m_connectionCount = connCount;
|
||||
m_fcd = fcd;
|
||||
m_area = area;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicWellPathFractureReportItem::setWidthAndConductivity(double width, double conductivity)
|
||||
{
|
||||
m_wf = width;
|
||||
m_kf = conductivity;
|
||||
|
||||
m_kfwf = m_kf * m_wf;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicWellPathFractureReportItem::setHeightAndHalfLength(double height, double halfLength)
|
||||
{
|
||||
m_h = height;
|
||||
m_xf = halfLength;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicWellPathFractureReportItem::setAreaWeightedTransmissibility(double transmissibility)
|
||||
{
|
||||
m_km = transmissibility;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RicWellPathFractureReportItem::wellPathName() const
|
||||
{
|
||||
return m_wellPath;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicWellPathFractureReportItem::getNames(QString& wellPathName, QString& fractureName, QString& fractureTemplateName) const
|
||||
{
|
||||
wellPathName = m_wellPath;
|
||||
fractureName = m_wellPathFracture;
|
||||
fractureTemplateName = m_wellPathFractureTemplate;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RicWellPathFractureReportItem::transmissibility() const
|
||||
{
|
||||
return m_transmissibility;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t RicWellPathFractureReportItem::connectionCount() const
|
||||
{
|
||||
return m_connectionCount;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RicWellPathFractureReportItem::fcd() const
|
||||
{
|
||||
return m_fcd;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RicWellPathFractureReportItem::area() const
|
||||
{
|
||||
return m_area;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RicWellPathFractureReportItem::kfwf() const
|
||||
{
|
||||
return m_kfwf;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RicWellPathFractureReportItem::kf() const
|
||||
{
|
||||
return m_kf;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RicWellPathFractureReportItem::wf() const
|
||||
{
|
||||
return m_wf;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RicWellPathFractureReportItem::xf() const
|
||||
{
|
||||
return m_xf;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RicWellPathFractureReportItem::h() const
|
||||
{
|
||||
return m_h;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RicWellPathFractureReportItem::km() const
|
||||
{
|
||||
return m_km;
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2018 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 <QString>
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
//==================================================================================================
|
||||
class RicWellPathFractureReportItem
|
||||
{
|
||||
public:
|
||||
RicWellPathFractureReportItem(const QString& wellPathName, const QString& fractureName, const QString& fractureTemplateName);
|
||||
|
||||
void setData(double trans, size_t connCount, double fcd, double area);
|
||||
void setWidthAndConductivity(double width, double conductivity);
|
||||
void setHeightAndHalfLength(double height, double halfLength);
|
||||
void setAreaWeightedTransmissibility(double transmissibility);
|
||||
|
||||
QString wellPathName() const;
|
||||
|
||||
void getNames(QString& wellPathName, QString& fractureName, QString& fractureTemplateName) const;
|
||||
|
||||
double transmissibility() const;
|
||||
size_t connectionCount() const;
|
||||
double fcd() const;
|
||||
double area() const;
|
||||
|
||||
double kfwf() const;
|
||||
double kf() const;
|
||||
double wf() const;
|
||||
double xf() const;
|
||||
double h() const;
|
||||
double km() const;
|
||||
|
||||
private:
|
||||
QString m_wellPath;
|
||||
QString m_wellPathFracture;
|
||||
QString m_wellPathFractureTemplate;
|
||||
|
||||
double m_transmissibility;
|
||||
size_t m_connectionCount;
|
||||
double m_fcd;
|
||||
double m_area;
|
||||
|
||||
double m_kfwf;
|
||||
double m_kf;
|
||||
double m_wf;
|
||||
double m_xf;
|
||||
double m_h;
|
||||
double m_km;
|
||||
};
|
Loading…
Reference in New Issue
Block a user