SimulatorCompressibleTwophase.hpp
Go to the documentation of this file.
1 /*
2  Copyright 2012 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_SIMULATORCOMPRESSIBLETWOPHASE_HEADER_INCLUDED
21 #define OPM_SIMULATORCOMPRESSIBLETWOPHASE_HEADER_INCLUDED
22 
23 #include <memory>
24 #include <vector>
25 
26 struct UnstructuredGrid;
27 struct Wells;
29 
30 namespace Opm
31 {
32  namespace parameter { class ParameterGroup; }
33  class BlackoilPropertiesInterface;
34  class RockCompressibility;
35  class WellsManager;
36  class LinearSolverInterface;
37  class SimulatorTimer;
38  class BlackoilState;
39  class WellState;
40  struct SimulatorReport;
41 
44  {
45  public:
71  const UnstructuredGrid& grid,
72  const BlackoilPropertiesInterface& 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 
88  BlackoilState& state,
89  WellState& well_state);
90 
91  private:
92  class Impl;
93  // Using shared_ptr instead of unique_ptr since unique_ptr requires complete type for Impl.
94  std::shared_ptr<Impl> pimpl_;
95  };
96 
97 } // namespace Opm
98 
99 #endif // OPM_SIMULATORCOMPRESSIBLETWOPHASE_HEADER_INCLUDED
Definition: wells.h:50
Definition: grid.h:98
Definition: flow_bc.h:39
Definition: AnisotropicEikonal.hpp:43
Definition: ParameterGroup.hpp:109
SimulatorCompressibleTwophase(const parameter::ParameterGroup &param, const UnstructuredGrid &grid, const BlackoilPropertiesInterface &props, const RockCompressibility *rock_comp_props, WellsManager &wells_manager, const std::vector< double > &src, const FlowBoundaryConditions *bcs, LinearSolverInterface &linsolver, const double *gravity)
Definition: BlackoilPropertiesInterface.hpp:37
SimulatorReport run(SimulatorTimer &timer, BlackoilState &state, WellState &well_state)
Definition: RockCompressibility.hpp:33
Definition: WellsManager.hpp:59
Simulator state for a blackoil simulator.
Definition: BlackoilState.hpp:33
The state of a set of wells.
Definition: WellState.hpp:36
const double gravity
Definition: Units.hpp:120
A struct for returning timing data from a simulator to its caller.
Definition: SimulatorReport.hpp:29
Definition: SimulatorTimer.hpp:34
const UnstructuredGrid & grid
Definition: ColumnExtract.hpp:31
Class collecting all necessary components for a two-phase simulation.
Definition: SimulatorCompressibleTwophase.hpp:43
Abstract interface for linear solvers.
Definition: LinearSolverInterface.hpp:32