modified the simulator more general.

This commit is contained in:
Liu Ming
2013-12-17 20:28:32 +08:00
parent 970fe665d8
commit 6d5b90df54
3 changed files with 251 additions and 37 deletions

View File

@@ -32,6 +32,8 @@ namespace Opm
class LinearSolverInterface;
class SimulatorTimer;
class TwophaseState;
class WellsManager;
class WellState;
struct SimulatorReport;
/// Class collecting all necessary components for a two-phase simulation.
@@ -60,8 +62,10 @@ namespace Opm
SimulatorFullyImplicitTwophase(const parameter::ParameterGroup& param,
const UnstructuredGrid& grid,
const IncompPropsAdInterface& props,
WellsManager& wells_manager,
LinearSolverInterface& linsolver,
std::vector<double>& src);
std::vector<double>& src,
const double* gravity);
/// Run the simulation.
/// This will run succesive timesteps until timer.done() is true. It will
@@ -72,7 +76,8 @@ namespace Opm
/// \return simulation report, with timing data
SimulatorReport run(SimulatorTimer& timer,
TwophaseState& state,
std::vector<double>& src);
std::vector<double>& src,
WellState& well_state);
private:
class Impl;