handing the numComponents in WellInterface

This commit is contained in:
Kai Bao
2017-06-19 16:46:06 +02:00
parent 266442b0bd
commit 7223163155
4 changed files with 78 additions and 11 deletions

View File

@@ -44,8 +44,10 @@ namespace Opm
public:
// using WellInterface<TypeTag>::Simulator;
// using WellInterface<TypeTag>::WellState;
typedef typename WellInterface<TypeTag>::Simulator Simulator;
typedef typename WellInterface<TypeTag>::WellState WellState;
using Simulator = typename WellInterface<TypeTag>::Simulator;
using WellState = typename WellInterface<TypeTag>::WellState;
using IntensiveQuantities = typename WellInterface<TypeTag>::IntensiveQuantities;
// the positions of the primary variables for StandardWell
// there are three primary variables, the second and the third ones are F_w and F_g
// the first one can be total rate (G_t) or bhp, based on the control
@@ -111,6 +113,12 @@ namespace Opm
EvalWell extendEval(const Eval& in) const;
// TODO: to check whether all the paramters are required
void computePerfRate(const IntensiveQuantities& intQuants,
const std::vector<EvalWell>& mob_perfcells_dense,
const EvalWell& bhp, const double& cdp,
const bool& allow_cf, std::vector<EvalWell>& cq_s) const;
using WellInterface<TypeTag>::phaseUsage;
using WellInterface<TypeTag>::active;
using WellInterface<TypeTag>::numberOfPerforations;
@@ -122,6 +130,7 @@ namespace Opm
using WellInterface<TypeTag>::numberOfPhases;
using WellInterface<TypeTag>::perfDepth;
using WellInterface<TypeTag>::flowToEbosPvIdx;
using WellInterface<TypeTag>::numComponents;
protected: