TransportSolverTwophaseImplicit.hpp
Go to the documentation of this file.
1 /*
2  Copyright 2011 SINTEF ICT, Applied Mathematics.
3  Copyright 2011 Statoil ASA.
4 
5  This file is part of the Open Porous Media Project (OPM).
6 
7  OPM is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  OPM is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with OPM. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
21 #ifndef OPM_TRANSPORTSOLVERTWOPHASEIMPLICIT_HEADER_INCLUDED
22 #define OPM_TRANSPORTSOLVERTWOPHASEIMPLICIT_HEADER_INCLUDED
23 
37 #include <opm/core/grid.h>
39 
40 #include <memory>
41 #include <vector>
42 
43 
44 
45 namespace Opm
46 {
47 
48  // Implicit transport solver using Newton-Raphson.
50  {
51  public:
60  const Opm::IncompPropertiesInterface& props,
61  const std::vector<double>& porevol,
62  const double* gravity,
63  const std::vector<double>& half_trans,
64  const parameter::ParameterGroup& param);
65 
67 
74  virtual void solve(const double* porevolume,
75  const double* source,
76  const double dt,
77  TwophaseState& state);
78 
79  private:
80  // Disallow copying and assignment.
83 
84  // Defining types for the underlying transport solver.
89  template <class Vector>
90  class MaxNorm {
91  public:
92  static double
93  norm(const Vector& v) {
95  }
96  };
97  typedef Opm::ImplicitTransport<TransportModel,
98  JacSys ,
99  MaxNorm ,
104 
105  // Data members.
109  TransportSolver tsolver_;
110  const UnstructuredGrid& grid_;
112  const Opm::IncompPropertiesInterface& props_;
113  TransportSource* tsrc_;
114  double initial_porevolume_cell0_;
115  };
116 
117 } // namespace Opm
118 
119 #endif // OPM_TRANSPORTSOLVERTWOPHASEIMPLICIT_HEADER_INCLUDED
Definition: JacobianSystem.hpp:78
Definition: IncompPropertiesInterface.hpp:35
Definition: SinglePointUpwindTwoPhase.hpp:278
Definition: grid.h:98
Definition: CSRMatrixUmfpackSolver.hpp:47
Definition: AnisotropicEikonal.hpp:43
TransportSolverTwophaseImplicit(const UnstructuredGrid &grid, const Opm::IncompPropertiesInterface &props, const std::vector< double > &porevol, const double *gravity, const std::vector< double > &half_trans, const parameter::ParameterGroup &param)
Definition: ParameterGroup.hpp:109
Definition: JacobianSystem.hpp:65
virtual void solve(const double *porevolume, const double *source, const double dt, TwophaseState &state)
Definition: JacobianSystem.hpp:89
Definition: SimpleFluid2pWrappingProps.hpp:37
Definition: transport_source.h:43
Simulator state for a two-phase simulator.
Definition: TwophaseState.hpp:30
Definition: ImplicitTransport.hpp:45
Base class for two-phase incompressible transport solvers.
Definition: TransportSolverTwophaseInterface.hpp:30
Definition: JacobianSystem.hpp:109
const double gravity
Definition: Units.hpp:120
Definition: TransportSolverTwophaseImplicit.hpp:49
Definition: JacobianSystem.hpp:223
const UnstructuredGrid & grid
Definition: ColumnExtract.hpp:31
Definition: ImplicitTransport.hpp:105