#3603 Export completions. Move export CARFIN into RicWellPathExportCompletionDataFeatureImpl

This commit is contained in:
Magne Sjaastad
2018-11-09 09:40:30 +01:00
parent 8eead5c2f7
commit 0a9f00248b
3 changed files with 25 additions and 12 deletions

View File

@@ -136,16 +136,6 @@ void RicWellPathExportCompletionDataFeature::prepareExportSettingsAndExportCompl
RiaApplication::instance()->setLastUsedDialogDirectory("COMPLETIONS", exportSettings->folder);
RicWellPathExportCompletionDataFeatureImpl::exportCompletions(wellPaths, simWells, *exportSettings);
const auto mainGrid = exportSettings->caseToApply->mainGrid();
if (!mainGrid) return;
const auto& lgrInfosForWells = RicExportLgrFeature::createLgrInfoListForTemporaryLgrs(mainGrid);
for (const auto& lgrInfoForWell : lgrInfosForWells)
{
RicExportLgrFeature::exportLgrs(exportSettings->folder, lgrInfoForWell.first, lgrInfoForWell.second);
}
}
}

View File

@@ -23,11 +23,13 @@
#include "RiaLogging.h"
#include "RiaPreferences.h"
#include "../ExportCommands/RicExportLgrFeature.h"
#include "RicExportCompletionDataSettingsUi.h"
#include "RicExportFeatureImpl.h"
#include "RicExportFractureCompletionsImpl.h"
#include "RicFishbonesTransmissibilityCalculationFeatureImp.h"
#include "RicWellPathFractureReportItem.h"
#include "RicWellPathFractureTextReportFeatureImpl.h"
#include "RifEclipseDataTableFormatter.h"
@@ -38,6 +40,7 @@
#include "RigPerforationTransmissibilityEquations.h"
#include "RigResultAccessorFactory.h"
#include "RigTransmissibilityEquations.h"
#include "RigVirtualPerforationTransmissibilities.h"
#include "RigWellLogExtractionTools.h"
#include "RigWellLogExtractor.h"
#include "RigWellPath.h"
@@ -67,8 +70,6 @@
#include "cvfPlane.h"
#include "RicWellPathFractureTextReportFeatureImpl.h"
#include "RigVirtualPerforationTransmissibilities.h"
#include <QDir>
//--------------------------------------------------------------------------------------------------
@@ -133,6 +134,8 @@ void RicWellPathExportCompletionDataFeatureImpl::exportCompletions(const std::ve
return;
}
exportCarfinForTemporaryLgrs(exportSettings.caseToApply(), exportSettings.folder);
if (exportSettings.compdatExport == RicExportCompletionDataSettingsUi::TRANSMISSIBILITIES ||
exportSettings.compdatExport == RicExportCompletionDataSettingsUi::WPIMULT_AND_DEFAULT_CONNECTION_FACTORS)
{
@@ -2651,6 +2654,23 @@ QString RicWellPathExportCompletionDataFeatureImpl::createPressureDepletionFileN
return suffix;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicWellPathExportCompletionDataFeatureImpl::exportCarfinForTemporaryLgrs(const RimEclipseCase* sourceCase,
const QString& folder)
{
if (!sourceCase || !sourceCase->mainGrid()) return;
const auto mainGrid = sourceCase->mainGrid();
const auto& lgrInfosForWells = RicExportLgrFeature::createLgrInfoListForTemporaryLgrs(mainGrid);
for (const auto& lgrInfoForWell : lgrInfosForWells)
{
RicExportLgrFeature::exportLgrs(folder, lgrInfoForWell.first, lgrInfoForWell.second);
}
}
//--------------------------------------------------------------------------------------------------
/// Internal function
//--------------------------------------------------------------------------------------------------

View File

@@ -232,4 +232,7 @@ private:
const RimWellPath* wellPath,
const std::vector<const RimPerforationInterval*>& perforationIntervals);
static QString createPressureDepletionFileNameSuffix(const RicExportCompletionDataSettingsUi& exportSettings);
static void exportCarfinForTemporaryLgrs(const RimEclipseCase* sourceCase, const QString& folder);
};