SimulatorCompressiblePolymer.hpp
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_SIMULATORCOMPRESSIBLEPOLYMER_HEADER_INCLUDED
21 #define OPM_SIMULATORCOMPRESSIBLEPOLYMER_HEADER_INCLUDED
22 
23 #include <opm/core/simulator/SimulatorReport.hpp>
24 #include <boost/shared_ptr.hpp>
25 #include <vector>
26 
27 struct UnstructuredGrid;
28 struct Wells;
29 struct FlowBoundaryConditions;
30 
31 namespace Opm
32 {
33  class ParameterGroup;
34  class BlackoilPropertiesInterface;
35  class PolymerProperties;
36  class RockCompressibility;
37  class WellsManager;
38  class PolymerInflowInterface;
39  class LinearSolverInterface;
40  class SimulatorTimer;
41  class PolymerBlackoilState;
42  class WellState;
43  struct SimulatorReport;
44 
47  {
48  public:
73  SimulatorCompressiblePolymer(const ParameterGroup& param,
74  const UnstructuredGrid& grid,
75  const BlackoilPropertiesInterface& props,
76  const PolymerProperties& poly_props,
77  const RockCompressibility* rock_comp_props,
78  WellsManager& wells_manager,
79  const PolymerInflowInterface& polymer_inflow,
80  LinearSolverInterface& linsolver,
81  const double* gravity);
82 
91  SimulatorReport run(SimulatorTimer& timer,
92  PolymerBlackoilState& state,
93  WellState& well_state);
94 
99  const SimulatorReport& failureReport() const
100  { return failureReport_; }
101 
102  private:
103  class Impl;
104 
105  SimulatorReport failureReport_;
106 
107  // Using shared_ptr instead of scoped_ptr since scoped_ptr requires complete type for Impl.
108  boost::shared_ptr<Impl> pimpl_;
109  };
110 
111 } // namespace Opm
112 
113 #endif // OPM_SIMULATORCOMPRESSIBLEPOLYMER_HEADER_INCLUDED
SimulatorCompressiblePolymer(const ParameterGroup &param, const UnstructuredGrid &grid, const BlackoilPropertiesInterface &props, const PolymerProperties &poly_props, const RockCompressibility *rock_comp_props, WellsManager &wells_manager, const PolymerInflowInterface &polymer_inflow, LinearSolverInterface &linsolver, const double *gravity)
Initialise from parameters and objects to observe.
Definition: SimulatorCompressiblePolymer.cpp:143
Definition: PolymerProperties.hpp:43
Interface for classes encapsulating polymer inflow information.
Definition: PolymerInflow.hpp:38
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: AdditionalObjectDeleter.hpp:22
Class collecting all necessary components for a two-phase simulation.
Definition: SimulatorCompressiblePolymer.hpp:46
SimulatorReport run(SimulatorTimer &timer, PolymerBlackoilState &state, WellState &well_state)
Run the simulation.
Definition: SimulatorCompressiblePolymer.cpp:160
Simulator state for a compressible two-phase simulator with polymer.
Definition: PolymerBlackoilState.hpp:33
Definition: SimulatorTimer.hpp:34
const SimulatorReport & failureReport() const
return the statistics if the nonlinearIteration() method failed.
Definition: SimulatorCompressiblePolymer.hpp:99