mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4136 Command File : Export of flow characteristics
This commit is contained in:
@@ -141,6 +141,8 @@ void RimFlowCharacteristicsPlot::setFromFlowSolution(RimFlowDiagSolution* flowSo
|
||||
|
||||
m_flowDiagSolution = flowSolution;
|
||||
m_showWindow = true;
|
||||
m_timeStepToFlowResultMap.clear();
|
||||
m_currentlyPlottedTimeSteps.clear();
|
||||
|
||||
onLoadDataAndUpdate();
|
||||
}
|
||||
@@ -173,6 +175,57 @@ void RimFlowCharacteristicsPlot::updateCurrentTimeStep()
|
||||
this->onLoadDataAndUpdate();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFlowCharacteristicsPlot::setTimeSteps(const std::vector<int>& timeSteps)
|
||||
{
|
||||
m_selectedTimeSteps = timeSteps;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFlowCharacteristicsPlot::setInjectorsAndProducers(const std::vector<QString>& injectors,
|
||||
const std::vector<QString>& producers)
|
||||
{
|
||||
std::vector<QString> allTracers;
|
||||
|
||||
allTracers = producers;
|
||||
allTracers.insert(allTracers.end(), injectors.begin(), injectors.end());
|
||||
|
||||
if (producers.empty() && !injectors.empty())
|
||||
{
|
||||
m_cellFilter = RigFlowDiagResults::CELLS_FLOODED;
|
||||
}
|
||||
else if (!producers.empty() && injectors.empty())
|
||||
{
|
||||
m_cellFilter = RigFlowDiagResults::CELLS_DRAINED;
|
||||
}
|
||||
else if (!producers.empty() && !injectors.empty())
|
||||
{
|
||||
m_cellFilter = RigFlowDiagResults::CELLS_COMMUNICATION;
|
||||
}
|
||||
|
||||
m_selectedTracerNames = allTracers;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFlowCharacteristicsPlot::setMinimumCommunication(double minimumCommunication)
|
||||
{
|
||||
m_minCommunication = minimumCommunication;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFlowCharacteristicsPlot::setAquiferCellThreshold(double aquiferCellThreshold)
|
||||
{
|
||||
m_maxPvFraction = aquiferCellThreshold;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -74,6 +74,11 @@ public:
|
||||
ALL_AVAILABLE,
|
||||
SELECTED,
|
||||
};
|
||||
|
||||
void setTimeSteps(const std::vector<int>& timeSteps);
|
||||
void setInjectorsAndProducers(const std::vector<QString>& injectors, const std::vector<QString>& producers);
|
||||
void setMinimumCommunication(double minimumCommunication);
|
||||
void setAquiferCellThreshold(double aquiferCellThreshold);
|
||||
|
||||
protected:
|
||||
// RimViewWindow overrides
|
||||
|
||||
Reference in New Issue
Block a user