mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2517 Export COMPDATL : Include diameter for LGR grids
This commit is contained in:
parent
79a32af209
commit
9b1b94a4ae
@ -334,6 +334,7 @@ RigCompletionData
|
||||
|
||||
RigCompletionData resultCompletion(wellName, cellIndexIJK, firstCompletion.firstOrderingValue());
|
||||
resultCompletion.setSecondOrderingValue(firstCompletion.secondOrderingValue());
|
||||
resultCompletion.setDiameter(firstCompletion.diameter());
|
||||
|
||||
bool anyNonDarcyFlowPresent = false;
|
||||
for (const auto& c : completions)
|
||||
@ -703,6 +704,17 @@ void RicWellPathExportCompletionDataFeatureImpl::generateCompdatTable(RifEclipse
|
||||
else
|
||||
{
|
||||
formatter.add(data.transmissibility());
|
||||
|
||||
// Based on feedback from Shunping
|
||||
// Include diameter when COMPDATL is exported
|
||||
// See https://github.com/OPM/ResInsight/issues/2517
|
||||
if (!gridName.isEmpty())
|
||||
{
|
||||
if (RigCompletionData::isDefaultValue(data.diameter()))
|
||||
formatter.add("1*");
|
||||
else
|
||||
formatter.add(data.diameter());
|
||||
}
|
||||
}
|
||||
|
||||
formatter.rowCompleted();
|
||||
|
@ -121,6 +121,14 @@ void RigCompletionData::setSecondOrderingValue(double orderingValue)
|
||||
m_secondOrderingValue = orderingValue;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigCompletionData::setDiameter(double diameter)
|
||||
{
|
||||
m_diameter = diameter;
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
//==================================================================================================
|
||||
|
@ -77,6 +77,7 @@ public:
|
||||
|
||||
void setFromFracture(double transmissibility, double skinFactor, double diameter);
|
||||
void setSecondOrderingValue(double orderingValue);
|
||||
void setDiameter(double diameter);
|
||||
|
||||
void setTransAndWPImultBackgroundDataFromFishbone(double transmissibility,
|
||||
double skinFactor,
|
||||
|
Loading…
Reference in New Issue
Block a user