SimulatorIncompTwophaseAd.hpp
Go to the documentation of this file.
1 /*
2  Copyright 2013 SINTEF ICT, Applied Mathematics.
3 
4  This file is part of the Open Porous Media project (OPM).
5 
6  OPM is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  OPM is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with OPM. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #ifndef OPM_SIMULATORINCOMPTWOPHASEAD_HEADER_INCLUDED
21 #define OPM_SIMULATORINCOMPTWOPHASEAD_HEADER_INCLUDED
22 
23 #include <memory>
24 #include <vector>
25 
26 struct UnstructuredGrid;
27 struct Wells;
28 struct FlowBoundaryConditions;
29 
30 namespace Opm
31 {
32  namespace parameter { class ParameterGroup; }
33  class IncompPropertiesInterface;
34  class RockCompressibility;
35  class WellsManager;
36  class LinearSolverInterface;
37  class SimulatorTimer;
38  class TwophaseState;
39  class WellState;
40  struct SimulatorReport;
41 
44  {
45  public:
70  SimulatorIncompTwophaseAd(const parameter::ParameterGroup& param,
71  const UnstructuredGrid& grid,
72  const IncompPropertiesInterface& props,
73  const RockCompressibility* rock_comp_props,
74  WellsManager& wells_manager,
75  const std::vector<double>& src,
76  const FlowBoundaryConditions* bcs,
77  LinearSolverInterface& linsolver,
78  const double* gravity);
79 
87  SimulatorReport run(SimulatorTimer& timer,
88  TwophaseState& state,
89  WellState& well_state);
90 
91  private:
92  class Impl;
93  // Using shared_ptr instead of scoped_ptr since scoped_ptr requires complete type for Impl.
94  std::shared_ptr<Impl> pimpl_;
95  };
96 
97 } // namespace Opm
98 
99 #endif // OPM_SIMULATORINCOMPTWOPHASEAD_HEADER_INCLUDED
Definition: AdditionalObjectDeleter.hpp:22
SimulatorIncompTwophaseAd(const parameter::ParameterGroup &param, const UnstructuredGrid &grid, const IncompPropertiesInterface &props, const RockCompressibility *rock_comp_props, WellsManager &wells_manager, const std::vector< double > &src, const FlowBoundaryConditions *bcs, LinearSolverInterface &linsolver, const double *gravity)
Class collecting all necessary components for a two-phase simulation.
Definition: SimulatorIncompTwophaseAd.hpp:43
SimulatorReport run(SimulatorTimer &timer, TwophaseState &state, WellState &well_state)