36#ifndef OPENRS_EULERUPSTREAM_HEADER
37#define OPENRS_EULERUPSTREAM_HEADER
41#include <boost/unordered_map.hpp>
43#include <opm/core/utility/parameters/ParameterGroup.hpp>
44#include <opm/core/utility/SparseVector.hpp>
51 template <
class Gr
idInterface,
class ReservoirProperties,
class BoundaryConditions>
62 const ReservoirProperties& resprop,
63 const BoundaryConditions& boundary);
67 void init(
const Opm::parameter::ParameterGroup& param);
71 void init(
const Opm::parameter::ParameterGroup& param,
72 const GridInterface& grid,
73 const ReservoirProperties& resprop,
74 const BoundaryConditions& boundary);
78 void initObj(
const GridInterface& grid,
79 const ReservoirProperties& resprop,
80 const BoundaryConditions& boundary);
97 template <
class PressureSolution>
100 const typename GridInterface::Vector& gravity,
101 const PressureSolution& pressure_sol,
102 const Opm::SparseVector<double>& injection_rates)
const;
105 typedef typename GridInterface::CellIterator
CIt;
106 typedef typename CIt::FaceIterator
FIt;
110 template <
class PressureSolution>
113 const typename GridInterface::Vector& gravity,
114 const PressureSolution& pressure_sol)
const;
116 template <
class PressureSolution>
119 const typename GridInterface::Vector& gravity,
120 const PressureSolution& pressure_sol,
121 const Opm::SparseVector<double>& injection_rates)
const;
Definition: EulerUpstream.hpp:53
void transportSolve(std::vector< double > &saturation, const double time, const typename GridInterface::Vector &gravity, const PressureSolution &pressure_sol, const Opm::SparseVector< double > &injection_rates) const
Solve transport equation, evolving.
void setCourantNumber(double cn)
Set the Courant number. That is dt = dt_cfl*courant_number. For this explicit method it should be < 1...
Definition: EulerUpstream_impl.hpp:144
bool use_cfl_gravity_
Definition: EulerUpstream.hpp:134
double computeCflTime(const std::vector< double > &saturation, const double time, const typename GridInterface::Vector &gravity, const PressureSolution &pressure_sol) const
FIt::Vector Vector
Definition: EulerUpstream.hpp:107
bool check_sat_
Definition: EulerUpstream.hpp:140
bool clamp_sat_
Definition: EulerUpstream.hpp:141
CIt::FaceIterator FIt
Definition: EulerUpstream.hpp:106
std::vector< double > residual_
Definition: EulerUpstream.hpp:145
void initObj(const GridInterface &grid, const ReservoirProperties &resprop, const BoundaryConditions &boundary)
Definition: EulerUpstream_impl.hpp:120
bool use_cfl_viscous_
Definition: EulerUpstream.hpp:133
void init(const Opm::parameter::ParameterGroup ¶m, const GridInterface &grid, const ReservoirProperties &resprop, const BoundaryConditions &boundary)
EulerUpstream()
Definition: EulerUpstream_impl.hpp:60
bool use_cfl_capillary_
Definition: EulerUpstream.hpp:135
bool method_capillary_
Definition: EulerUpstream.hpp:132
int maximum_small_steps_
Definition: EulerUpstream.hpp:139
EulerUpstream(const GridInterface &grid, const ReservoirProperties &resprop, const BoundaryConditions &boundary)
void init(const Opm::parameter::ParameterGroup ¶m)
Definition: EulerUpstream_impl.hpp:95
double courant_number_
Definition: EulerUpstream.hpp:137
GridInterface::CellIterator CIt
Definition: EulerUpstream.hpp:105
void display()
Definition: EulerUpstream_impl.hpp:132
bool method_viscous_
Definition: EulerUpstream.hpp:130
void smallTimeStep(std::vector< double > &saturation, const double time, const typename GridInterface::Vector &gravity, const PressureSolution &pressure_sol, const Opm::SparseVector< double > &injection_rates) const
EulerUpstreamResidual< GridInterface, ReservoirProperties, BoundaryConditions > residual_computer_
Definition: EulerUpstream.hpp:128
std::vector< double > porevol_
Definition: EulerUpstream.hpp:142
int minimum_small_steps_
Definition: EulerUpstream.hpp:138
bool method_gravity_
Definition: EulerUpstream.hpp:131
void checkAndPossiblyClampSat(std::vector< double > &s) const
Definition: EulerUpstream_impl.hpp:337
Definition: EulerUpstreamResidual.hpp:60
Definition: BlackoilFluid.hpp:32