mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3603 Export completions. Move export CARFIN into RicWellPathExportCompletionDataFeatureImpl
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -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);
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user