mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3433 Fracture header : Simplify interface to ReportItems
This commit is contained in:
parent
f23fa64235
commit
927e65cb44
@ -1176,7 +1176,7 @@ void RicWellPathExportCompletionDataFeatureImpl::exportWellPathFractureReport(
|
|||||||
{
|
{
|
||||||
for (const auto& reportItem : wellPathFractureReportItems)
|
for (const auto& reportItem : wellPathFractureReportItems)
|
||||||
{
|
{
|
||||||
if (reportItem.wellPathName() == wellPath->name())
|
if (reportItem.wellPathNameForExport() == wellPath->completions()->wellNameForExport())
|
||||||
{
|
{
|
||||||
wellPathsSet.insert(wellPath);
|
wellPathsSet.insert(wellPath);
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
RicWellPathFractureReportItem::RicWellPathFractureReportItem(const QString& wellPathName,
|
RicWellPathFractureReportItem::RicWellPathFractureReportItem(const QString& wellPathName,
|
||||||
const QString& fractureName,
|
const QString& fractureName,
|
||||||
const QString& fractureTemplateName)
|
const QString& fractureTemplateName)
|
||||||
: m_wellPath(wellPathName)
|
: m_wellPathNameForExport(wellPathName)
|
||||||
, m_wellPathFracture(fractureName)
|
, m_wellPathFracture(fractureName)
|
||||||
, m_wellPathFractureTemplate(fractureTemplateName)
|
, m_wellPathFractureTemplate(fractureTemplateName)
|
||||||
, m_transmissibility(0.0)
|
, m_transmissibility(0.0)
|
||||||
@ -82,19 +82,25 @@ void RicWellPathFractureReportItem::setAreaWeightedTransmissibility(double trans
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
QString RicWellPathFractureReportItem::wellPathName() const
|
QString RicWellPathFractureReportItem::wellPathNameForExport() const
|
||||||
{
|
{
|
||||||
return m_wellPath;
|
return m_wellPathNameForExport;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RicWellPathFractureReportItem::getNames(QString& wellPathName, QString& fractureName, QString& fractureTemplateName) const
|
QString RicWellPathFractureReportItem::fractureName() const
|
||||||
{
|
{
|
||||||
wellPathName = m_wellPath;
|
return m_wellPathFracture;
|
||||||
fractureName = m_wellPathFracture;
|
}
|
||||||
fractureTemplateName = m_wellPathFractureTemplate;
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
QString RicWellPathFractureReportItem::fractureTemplateName() const
|
||||||
|
{
|
||||||
|
return m_wellPathFractureTemplate;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -34,12 +34,12 @@ public:
|
|||||||
void setWidthAndConductivity(double width, double conductivity);
|
void setWidthAndConductivity(double width, double conductivity);
|
||||||
void setHeightAndHalfLength(double height, double halfLength);
|
void setHeightAndHalfLength(double height, double halfLength);
|
||||||
void setAreaWeightedTransmissibility(double transmissibility);
|
void setAreaWeightedTransmissibility(double transmissibility);
|
||||||
|
void setUnitSystem(RiaEclipseUnitTools::UnitSystem unitSystem);
|
||||||
|
|
||||||
QString wellPathName() const;
|
QString wellPathNameForExport() const;
|
||||||
|
QString fractureName() const;
|
||||||
|
QString fractureTemplateName() const;
|
||||||
|
|
||||||
void getNames(QString& wellPathName, QString& fractureName, QString& fractureTemplateName) const;
|
|
||||||
|
|
||||||
void setUnitSystem(RiaEclipseUnitTools::UnitSystem unitSystem);
|
|
||||||
RiaEclipseUnitTools::UnitSystem unitSystem() const;
|
RiaEclipseUnitTools::UnitSystem unitSystem() const;
|
||||||
|
|
||||||
double transmissibility() const;
|
double transmissibility() const;
|
||||||
@ -56,9 +56,9 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
RiaEclipseUnitTools::UnitSystem m_unitSystem;
|
RiaEclipseUnitTools::UnitSystem m_unitSystem;
|
||||||
QString m_wellPath;
|
QString m_wellPathNameForExport;
|
||||||
QString m_wellPathFracture;
|
QString m_wellPathFracture;
|
||||||
QString m_wellPathFractureTemplate;
|
QString m_wellPathFractureTemplate;
|
||||||
|
|
||||||
double m_transmissibility;
|
double m_transmissibility;
|
||||||
size_t m_connectionCount;
|
size_t m_connectionCount;
|
||||||
|
@ -626,12 +626,9 @@ QString RicWellPathFractureTextReportFeatureImpl::createFractureCompletionSummar
|
|||||||
|
|
||||||
for (const auto& reportItem : wellPathFractureReportItems)
|
for (const auto& reportItem : wellPathFractureReportItems)
|
||||||
{
|
{
|
||||||
QString wellPathName, fractureName, fractureTemplateName;
|
formatter.add(reportItem.wellPathNameForExport());
|
||||||
reportItem.getNames(wellPathName, fractureName, fractureTemplateName);
|
formatter.add(reportItem.fractureName());
|
||||||
|
formatter.add(reportItem.fractureTemplateName());
|
||||||
formatter.add(wellPathName);
|
|
||||||
formatter.add(fractureName);
|
|
||||||
formatter.add(fractureTemplateName);
|
|
||||||
|
|
||||||
formatter.add(reportItem.transmissibility());
|
formatter.add(reportItem.transmissibility());
|
||||||
formatter.add(reportItem.connectionCount());
|
formatter.add(reportItem.connectionCount());
|
||||||
@ -676,8 +673,7 @@ QString RicWellPathFractureTextReportFeatureImpl::createConnectionsPerWellText(c
|
|||||||
std::map<QString /*Well*/, size_t> wellConnectionCounts;
|
std::map<QString /*Well*/, size_t> wellConnectionCounts;
|
||||||
for (const auto& reportItem : wellPathFractureReportItems)
|
for (const auto& reportItem : wellPathFractureReportItems)
|
||||||
{
|
{
|
||||||
QString wellPathName, fractureName, fractureTemplateName;
|
QString wellPathName = reportItem.wellPathNameForExport();
|
||||||
reportItem.getNames(wellPathName, fractureName, fractureTemplateName);
|
|
||||||
if (wellConnectionCounts.find(wellPathName) == wellConnectionCounts.end())
|
if (wellConnectionCounts.find(wellPathName) == wellConnectionCounts.end())
|
||||||
{
|
{
|
||||||
wellConnectionCounts.insert(std::make_pair(wellPathName, 0));
|
wellConnectionCounts.insert(std::make_pair(wellPathName, 0));
|
||||||
|
Loading…
Reference in New Issue
Block a user