BlackoilModel.hpp
Go to the documentation of this file.
1 /*
2  Copyright 2013, 2015 SINTEF ICT, Applied Mathematics.
3  Copyright 2014, 2015 Statoil ASA.
4  Copyright 2014, 2015 Dr. Markus Blatt - HPC-Simulation-Software & Services
5  Copyright 2015 NTNU
6 
7  This file is part of the Open Porous Media project (OPM).
8 
9  OPM is free software: you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  (at your option) any later version.
13 
14  OPM is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with OPM. If not, see <http://www.gnu.org/licenses/>.
21 */
22 
23 #ifndef OPM_BLACKOILMODEL_HEADER_INCLUDED
24 #define OPM_BLACKOILMODEL_HEADER_INCLUDED
25 
27 #include <opm/core/simulator/BlackoilState.hpp>
30 
31 namespace Opm {
32 
42  template<class Grid>
43  class BlackoilModel : public BlackoilModelBase<Grid, BlackoilModel<Grid> >
44  {
45  public:
47 
62  BlackoilModel(const typename Base::ModelParameters& param,
63  const Grid& grid,
64  const BlackoilPropsAdInterface& fluid,
65  const DerivedGeology& geo,
66  const RockCompressibility* rock_comp_props,
67  const Wells* wells_arg,
68  const NewtonIterationBlackoilInterface& linsolver,
69  Opm::EclipseStateConstPtr eclState,
70  const bool has_disgas,
71  const bool has_vapoil,
72  const bool terminal_output)
73  : Base(param, grid, fluid, geo, rock_comp_props, wells_arg, linsolver,
74  eclState, has_disgas, has_vapoil, terminal_output)
75  {
76  }
77  };
78 
79 
81  template <class Grid>
82  struct ModelTraits< BlackoilModel<Grid> >
83  {
84  typedef BlackoilState ReservoirState;
88  };
89 
90 } // namespace Opm
91 
92 
93 #endif // OPM_BLACKOILMODEL_HEADER_INCLUDED
Definition: GeoProps.hpp:53
Definition: BlackoilPropsAdInterface.hpp:38
Definition: AdditionalObjectDeleter.hpp:22
ModelTraits< BlackoilModel< Grid > >::ModelParameters ModelParameters
Definition: BlackoilModelBase.hpp:108
Definition: WellStateFullyImplicitBlackoil.hpp:41
BlackoilModelParameters ModelParameters
Definition: BlackoilModel.hpp:86
BlackoilModel(const typename Base::ModelParameters &param, const Grid &grid, const BlackoilPropsAdInterface &fluid, const DerivedGeology &geo, const RockCompressibility *rock_comp_props, const Wells *wells_arg, const NewtonIterationBlackoilInterface &linsolver, Opm::EclipseStateConstPtr eclState, const bool has_disgas, const bool has_vapoil, const bool terminal_output)
Definition: BlackoilModel.hpp:62
Definition: BlackoilModelBase.hpp:98
Struct for containing iteration variables.
Definition: BlackoilModelBase.hpp:51
Solver parameters for the BlackoilModel.
Definition: BlackoilModelParameters.hpp:29
Interface class for (linear) solvers for the fully implicit black-oil system.
Definition: NewtonIterationBlackoilInterface.hpp:31
BlackoilModelBase< Grid, BlackoilModel< Grid > > Base
Definition: BlackoilModel.hpp:46
BlackoilState ReservoirState
Definition: BlackoilModel.hpp:84
DefaultBlackoilSolutionState SolutionState
Definition: BlackoilModel.hpp:87
Definition: BlackoilModel.hpp:43
Definition: BlackoilModelBase.hpp:83
WellStateFullyImplicitBlackoil WellState
Definition: BlackoilModel.hpp:85