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:
parent
b0b43e97b6
commit
ec28c46842
@ -1,6 +1,8 @@
|
||||
#include "BlackoilState.hpp"
|
||||
#include <opm/common/util/numeric/cmp.hpp>
|
||||
#include <opm/core/props/BlackoilPropertiesInterface.hpp>
|
||||
#include <opm/core/simulator/WellState.hpp>
|
||||
#include <opm/output/Wells.hpp>
|
||||
|
||||
|
||||
using namespace Opm;
|
||||
|
@ -22,6 +22,8 @@
|
||||
|
||||
#include <opm/core/wells.h>
|
||||
#include <opm/core/well_controls.h>
|
||||
#include <opm/output/Wells.hpp>
|
||||
|
||||
#include <array>
|
||||
#include <map>
|
||||
#include <string>
|
||||
@ -208,6 +210,18 @@ namespace Opm
|
||||
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:
|
||||
std::vector<double> bhp_;
|
||||
std::vector<double> thp_;
|
||||
|
Loading…
Reference in New Issue
Block a user