mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
add WellInterfaceIndices
while not a lot of class in this layer, having it helps in downstream well code.
This commit is contained in:
@@ -59,7 +59,7 @@ namespace Opm {
|
||||
#include <opm/material/densead/Math.hpp>
|
||||
#include <opm/material/densead/Evaluation.hpp>
|
||||
|
||||
#include <opm/simulators/wells/WellInterfaceFluidSystem.hpp>
|
||||
#include <opm/simulators/wells/WellInterfaceIndices.hpp>
|
||||
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
@@ -71,7 +71,9 @@ namespace Opm
|
||||
{
|
||||
|
||||
template<typename TypeTag>
|
||||
class WellInterface : public WellInterfaceFluidSystem<GetPropType<TypeTag, Properties::FluidSystem>>
|
||||
class WellInterface : public WellInterfaceIndices<GetPropType<TypeTag, Properties::FluidSystem>,
|
||||
GetPropType<TypeTag, Properties::Indices>,
|
||||
GetPropType<TypeTag, Properties::Scalar>>
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -292,10 +294,6 @@ protected:
|
||||
|
||||
bool changed_to_stopped_this_step_ = false;
|
||||
|
||||
int flowPhaseToEbosCompIdx( const int phaseIdx ) const;
|
||||
|
||||
int ebosCompIdxToFlowCompIdx( const unsigned compIdx ) const;
|
||||
|
||||
double wpolymer() const;
|
||||
|
||||
double wfoam() const;
|
||||
@@ -310,8 +308,6 @@ protected:
|
||||
// Component fractions for each phase for the well
|
||||
const std::vector<double>& compFrac() const;
|
||||
|
||||
double scalingFactor(const int comp_idx) const;
|
||||
|
||||
std::vector<double> initialWellRateFractions(const Simulator& ebosSimulator, const WellState& well_state) const;
|
||||
|
||||
// check whether the well is operable under BHP limit with current reservoir condition
|
||||
|
||||
Reference in New Issue
Block a user