#4136 Command File : Export of flow characteristics

This commit is contained in:
Magne Sjaastad
2019-06-25 17:49:38 +02:00
parent 58b8ca6ff4
commit b2857676c8
5 changed files with 227 additions and 0 deletions

View File

@@ -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;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -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