use WellStateFullyImplicitBlackoil instead of WellState.

This commit is contained in:
Liu Ming 2014-10-29 10:25:06 +08:00
parent d44e8e6d9f
commit 3102c4dab2
2 changed files with 12 additions and 12 deletions

View File

@ -25,12 +25,12 @@
#include <opm/autodiff/AutoDiffHelpers.hpp>
#include <opm/autodiff/BlackoilPropsAdInterface.hpp>
#include <opm/autodiff/GeoProps.hpp>
#include <opm/autodiff/WellStateFullyImplicitBlackoil.hpp>
#include <opm/core/grid.h>
#include <opm/core/linalg/LinearSolverInterface.hpp>
#include <opm/core/props/rock/RockCompressibility.hpp>
#include <opm/polymer/PolymerBlackoilState.hpp>
#include <opm/core/simulator/WellState.hpp>
#include <opm/core/utility/ErrorMacros.hpp>
#include <opm/core/well_controls.h>
#include <cassert>
@ -197,7 +197,7 @@ namespace {
FullyImplicitCompressiblePolymerSolver::
step(const double dt,
PolymerBlackoilState& x ,
WellState& xw,
WellStateFullyImplicitBlackoil& xw,
const std::vector<double>& polymer_inflow,
std::vector<double>& src)
{
@ -306,7 +306,7 @@ namespace {
FullyImplicitCompressiblePolymerSolver::SolutionState
FullyImplicitCompressiblePolymerSolver::constantState(const PolymerBlackoilState& x,
const WellState& xw)
const WellStateFullyImplicitBlackoil& xw)
{
const int nc = grid_.number_of_cells;
const int np = x.numPhases();
@ -368,7 +368,7 @@ namespace {
FullyImplicitCompressiblePolymerSolver::SolutionState
FullyImplicitCompressiblePolymerSolver::variableState(const PolymerBlackoilState& x,
const WellState& xw)
const WellStateFullyImplicitBlackoil& xw)
{
const int nc = grid_.number_of_cells;
const int np = x.numPhases();
@ -495,7 +495,7 @@ namespace {
FullyImplicitCompressiblePolymerSolver::
assemble(const double dt,
const PolymerBlackoilState& x ,
const WellState& xw,
const WellStateFullyImplicitBlackoil& xw,
const std::vector<double>& polymer_inflow,
std::vector<double>& src)
{
@ -695,7 +695,7 @@ namespace {
void FullyImplicitCompressiblePolymerSolver::
updateState(const V& dx,
PolymerBlackoilState& state,
WellState& well_state) const
WellStateFullyImplicitBlackoil& well_state) const
{
const int np = fluid_.numPhases();
const int nc = grid_.number_of_cells;

View File

@ -38,7 +38,7 @@ namespace Opm {
class RockCompressibility;
class NewtonIterationBlackoilInterface;
class PolymerBlackoilState;
class WellState;
class WellStateFullyImplicitBlackoil;
/// A fully implicit solver for the oil-water with polymer problem.
///
@ -83,7 +83,7 @@ namespace Opm {
void
step(const double dt,
PolymerBlackoilState& state ,
WellState& wstate,
WellStateFullyImplicitBlackoil& wstate,
const std::vector<double>& polymer_inflow,
std::vector<double>& src);
@ -146,11 +146,11 @@ namespace Opm {
// Private methods.
SolutionState
constantState(const PolymerBlackoilState& x,
const WellState& xw);
const WellStateFullyImplicitBlackoil& xw);
SolutionState
variableState(const PolymerBlackoilState& x,
const WellState& xw);
const WellStateFullyImplicitBlackoil& xw);
void
computeAccum(const SolutionState& state,
@ -159,7 +159,7 @@ namespace Opm {
void
assemble(const double dt,
const PolymerBlackoilState& x,
const WellState& xw,
const WellStateFullyImplicitBlackoil& xw,
const std::vector<double>& polymer_inflow,
std::vector<double>& src);
@ -167,7 +167,7 @@ namespace Opm {
void updateState(const V& dx,
PolymerBlackoilState& state,
WellState& well_state) const;
WellStateFullyImplicitBlackoil& well_state) const;
std::vector<ADB>
computeRelPerm(const SolutionState& state) const;