mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Closes #1176 Well Alloc Plot: Show well Injector/Producer status
This commit is contained in:
parent
1f184837f1
commit
06ace5d3b0
@ -252,7 +252,34 @@ void RimWellAllocationPlot::updateFromWell()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setDescription("Well Allocation: " + m_wellName +", " + m_case->timeStepStrings()[m_timeStep] + " (" + m_case->caseUserDescription() + ")");
|
QString wellStatusText;
|
||||||
|
|
||||||
|
{
|
||||||
|
QString wellStatus;
|
||||||
|
|
||||||
|
RimFlowDiagSolution::TracerStatusType wellStatusForTimeStep = m_flowDiagSolution->tracerStatusInTimeStep(m_wellName, m_timeStep);
|
||||||
|
switch (wellStatusForTimeStep)
|
||||||
|
{
|
||||||
|
case RimFlowDiagSolution::CLOSED:
|
||||||
|
wellStatus = "Closed";
|
||||||
|
break;
|
||||||
|
case RimFlowDiagSolution::PRODUCER:
|
||||||
|
wellStatus = "Producer";
|
||||||
|
break;
|
||||||
|
case RimFlowDiagSolution::INJECTOR:
|
||||||
|
wellStatus = "Injector";
|
||||||
|
break;
|
||||||
|
case RimFlowDiagSolution::UNDEFINED:
|
||||||
|
wellStatus = "Undefined";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
wellStatusText = QString("(%1)").arg(wellStatus);
|
||||||
|
}
|
||||||
|
|
||||||
|
setDescription("Well Allocation: " + m_wellName + " " + wellStatusText + ", " + m_case->timeStepStrings()[m_timeStep] + " (" + m_case->caseUserDescription() + ")");
|
||||||
|
|
||||||
/// Pie chart
|
/// Pie chart
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user