2013-05-24 04:40:58 -05:00
|
|
|
/*
|
2015-10-02 02:19:07 -05:00
|
|
|
Copyright 2013, 2015 SINTEF ICT, Applied Mathematics.
|
2015-05-28 10:26:02 -05:00
|
|
|
Copyright 2015 Andreas Lauser
|
2013-05-24 04:40:58 -05:00
|
|
|
|
|
|
|
This file is part of the Open Porous Media project (OPM).
|
|
|
|
|
|
|
|
OPM is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
OPM is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef OPM_SIMULATORFULLYIMPLICITBLACKOIL_HEADER_INCLUDED
|
|
|
|
#define OPM_SIMULATORFULLYIMPLICITBLACKOIL_HEADER_INCLUDED
|
|
|
|
|
2015-10-02 02:19:07 -05:00
|
|
|
#include <opm/autodiff/SimulatorBase.hpp>
|
|
|
|
#include <opm/autodiff/NonlinearSolver.hpp>
|
2015-05-28 05:24:39 -05:00
|
|
|
|
2015-05-27 06:26:39 -05:00
|
|
|
namespace Opm {
|
2015-05-28 10:26:02 -05:00
|
|
|
|
|
|
|
template <class GridT>
|
2015-05-27 16:12:34 -05:00
|
|
|
class SimulatorFullyImplicitBlackoil;
|
2016-05-09 10:44:59 -05:00
|
|
|
class StandardWells;
|
2015-05-27 16:12:34 -05:00
|
|
|
|
2015-05-28 10:26:02 -05:00
|
|
|
template <class GridT>
|
2015-05-27 16:12:34 -05:00
|
|
|
struct SimulatorTraits<SimulatorFullyImplicitBlackoil<GridT> >
|
|
|
|
{
|
|
|
|
typedef WellStateFullyImplicitBlackoil WellState;
|
|
|
|
typedef BlackoilState ReservoirState;
|
|
|
|
typedef BlackoilOutputWriter OutputWriter;
|
|
|
|
typedef GridT Grid;
|
|
|
|
typedef BlackoilModel<Grid> Model;
|
2015-10-02 02:19:07 -05:00
|
|
|
typedef NonlinearSolver<Model> Solver;
|
2016-05-09 10:44:59 -05:00
|
|
|
typedef StandardWells WellModel;
|
2015-05-27 16:12:34 -05:00
|
|
|
};
|
2013-05-24 04:40:58 -05:00
|
|
|
|
2015-05-27 06:26:39 -05:00
|
|
|
/// a simulator for the blackoil model
|
2015-05-28 10:26:02 -05:00
|
|
|
template <class GridT>
|
2015-05-27 06:26:39 -05:00
|
|
|
class SimulatorFullyImplicitBlackoil
|
2015-05-27 16:12:34 -05:00
|
|
|
: public SimulatorBase<SimulatorFullyImplicitBlackoil<GridT> >
|
2013-05-24 04:40:58 -05:00
|
|
|
{
|
2015-05-27 16:12:34 -05:00
|
|
|
typedef SimulatorBase<SimulatorFullyImplicitBlackoil<GridT> > Base;
|
2015-05-27 06:26:39 -05:00
|
|
|
public:
|
|
|
|
// forward the constructor to the base class
|
|
|
|
SimulatorFullyImplicitBlackoil(const parameter::ParameterGroup& param,
|
|
|
|
const typename Base::Grid& grid,
|
2015-11-20 06:23:12 -06:00
|
|
|
DerivedGeology& geo,
|
2015-05-27 06:26:39 -05:00
|
|
|
BlackoilPropsAdInterface& props,
|
|
|
|
const RockCompressibility* rock_comp_props,
|
|
|
|
NewtonIterationBlackoilInterface& linsolver,
|
|
|
|
const double* gravity,
|
|
|
|
const bool disgas,
|
|
|
|
const bool vapoil,
|
|
|
|
std::shared_ptr<EclipseState> eclipse_state,
|
|
|
|
BlackoilOutputWriter& output_writer,
|
|
|
|
const std::vector<double>& threshold_pressures_by_face)
|
|
|
|
: Base(param, grid, geo, props, rock_comp_props, linsolver, gravity, disgas, vapoil,
|
|
|
|
eclipse_state, output_writer, threshold_pressures_by_face)
|
|
|
|
{}
|
|
|
|
};
|
2013-05-24 04:40:58 -05:00
|
|
|
|
|
|
|
} // namespace Opm
|
|
|
|
|
|
|
|
#endif // OPM_SIMULATORFULLYIMPLICITBLACKOIL_HEADER_INCLUDED
|