mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
WellState::report() to make opm-output Well data
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
#include "BlackoilState.hpp"
|
#include "BlackoilState.hpp"
|
||||||
#include <opm/common/util/numeric/cmp.hpp>
|
#include <opm/common/util/numeric/cmp.hpp>
|
||||||
#include <opm/core/props/BlackoilPropertiesInterface.hpp>
|
#include <opm/core/props/BlackoilPropertiesInterface.hpp>
|
||||||
|
#include <opm/core/simulator/WellState.hpp>
|
||||||
|
#include <opm/output/Wells.hpp>
|
||||||
|
|
||||||
|
|
||||||
using namespace Opm;
|
using namespace Opm;
|
||||||
|
|||||||
@@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
#include <opm/core/wells.h>
|
#include <opm/core/wells.h>
|
||||||
#include <opm/core/well_controls.h>
|
#include <opm/core/well_controls.h>
|
||||||
|
#include <opm/output/Wells.hpp>
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <string>
|
#include <string>
|
||||||
@@ -208,6 +210,18 @@ namespace Opm
|
|||||||
return wellRates().size() / numWells();
|
return wellRates().size() / numWells();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual data::Wells report() const
|
||||||
|
{
|
||||||
|
return { { /* WellState offers no completion data, so that has to be added later */ },
|
||||||
|
this->bhp(),
|
||||||
|
this->temperature(),
|
||||||
|
this->wellRates(),
|
||||||
|
this->perfPress(),
|
||||||
|
this->perfRates() };
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual ~WellState() {}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::vector<double> bhp_;
|
std::vector<double> bhp_;
|
||||||
std::vector<double> thp_;
|
std::vector<double> thp_;
|
||||||
|
|||||||
Reference in New Issue
Block a user