adding the updateWellState to StandardWell

this function is very long and need to debug very carefully and it
should be split for better readability for sure.
This commit is contained in:
Kai Bao
2017-06-22 15:37:54 +02:00
parent 1174d2de54
commit 1d9d70ee02
3 changed files with 320 additions and 2 deletions

View File

@@ -23,8 +23,6 @@
#define OPM_STANDARDWELL_HEADER_INCLUDED
#include "config.h"
#include <opm/autodiff/WellInterface.hpp>
#include<dune/common/fmatrix.hh>
@@ -134,6 +132,11 @@ namespace Opm
const double gravity_arg,
const int num_cells);
// Update the well_state based on solution
void updateWellState(const BVector& dwells,
const BlackoilModelParameters& param,
WellState& well_state) const;
using WellInterface<TypeTag>::phaseUsage;
using WellInterface<TypeTag>::active;
using WellInterface<TypeTag>::numberOfPerforations;
@@ -157,6 +160,7 @@ namespace Opm
protected:
// TODO: maybe this function can go to some helper file.
void localInvert(Mat& istlA) const;
using WellInterface<TypeTag>::vfp_properties_;