mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2546 Well CF Visualization : Fix computation of transmissibilty
This commit is contained in:
@@ -114,30 +114,30 @@ const std::map<RigCompletionDataGridCell, std::vector<RigCompletionData>>&
|
|||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RigVirtualPerforationTransmissibilities::computeMinMax(double* minValue, double* maxValue, double* posClosestToZero, double* negClosestToZero) const
|
void RigVirtualPerforationTransmissibilities::computeMinMax(double* minValue,
|
||||||
|
double* maxValue,
|
||||||
|
double* posClosestToZero,
|
||||||
|
double* negClosestToZero) const
|
||||||
{
|
{
|
||||||
MinMaxAccumulator minMaxAccumulator;
|
MinMaxAccumulator minMaxAccumulator;
|
||||||
PosNegAccumulator posNegAccumulator;
|
PosNegAccumulator posNegAccumulator;
|
||||||
|
|
||||||
for (const auto& item : m_mapFromWellToCompletionData)
|
for (const auto& item : m_mapFromWellToCompletionData)
|
||||||
{
|
{
|
||||||
auto completionDataFrame = item.second;
|
auto dataForWellPath = item.second;
|
||||||
for (const auto& data : completionDataFrame)
|
|
||||||
{
|
|
||||||
for (const auto& data : completionDataFrame)
|
|
||||||
{
|
|
||||||
auto compl = data.multipleCompletionsPerEclipseCell();
|
|
||||||
for (const auto& c : compl)
|
|
||||||
{
|
|
||||||
for (const auto& d : c.second)
|
|
||||||
{
|
|
||||||
double trans = d.transmissibility();
|
|
||||||
|
|
||||||
minMaxAccumulator.addValue(trans);
|
for (const auto& timeStepFrame : dataForWellPath)
|
||||||
posNegAccumulator.addValue(trans);
|
{
|
||||||
}
|
for (const auto& allCompletionsForWell : timeStepFrame.multipleCompletionsPerEclipseCell())
|
||||||
|
{
|
||||||
|
for (const auto& completionData : allCompletionsForWell.second)
|
||||||
|
{
|
||||||
|
double transmissibility = completionData.transmissibility();
|
||||||
|
|
||||||
|
minMaxAccumulator.addValue(transmissibility);
|
||||||
|
posNegAccumulator.addValue(transmissibility);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user