Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions > Class Template Reference

#include <EulerUpstreamImplicit.hpp>

Public Member Functions

 EulerUpstreamImplicit ()
 
 EulerUpstreamImplicit (const GridInterface &grid, const ReservoirProperties &resprop, const BoundaryConditions &boundary)
 
void init (const Opm::parameter::ParameterGroup &param)
 
void init (const Opm::parameter::ParameterGroup &param, const GridInterface &grid, const ReservoirProperties &resprop, const BoundaryConditions &boundary)
 
void initObj (const GridInterface &grid, const ReservoirProperties &resprop, const BoundaryConditions &boundary)
 
void display ()
 
template<class PressureSolution >
bool 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. More...
 
template<class PressureSolution >
bool transportSolve (std::vector< double > &saturation, const double time, const typename GI::Vector &gravity, const PressureSolution &pressure_sol, const Opm::SparseVector< double > &injection_rates) const
 

Protected Types

typedef Opm::TwophaseFluidWrapper TwophaseFluid
 
typedef
Opm::SinglePointUpwindTwoPhase
< TwophaseFluid
TransportModel
 
typedef Dune::FieldVector
< double, 1 > 
ScalarVectorBlockType
 
typedef Dune::FieldMatrix
< double, 1, 1 > 
ScalarMatrixBlockType
 
typedef Dune::BlockVector
< ScalarVectorBlockType
ScalarBlockVector
 
typedef Dune::BCRSMatrix
< ScalarMatrixBlockType
ScalarBCRSMatrix
 
typedef
Opm::ImplicitTransportDefault::NewtonVectorCollection
< ScalarBlockVector
NVecColl
 
typedef
Opm::ImplicitTransportDefault::JacobianSystem
< ScalarBCRSMatrix, NVecColl
JacSys
 
typedef Opm::LinearSolverBICGSTAB LinearSolver
 
typedef Opm::ImplicitTransport
< TransportModel, JacSys,
Opm::MaxNormDune,
Opm::ImplicitTransportDefault::VectorNegater,
Opm::ImplicitTransportDefault::VectorZero,
Opm::ImplicitTransportDefault::MatrixZero,
Opm::ImplicitTransportDefault::VectorAssign > 
TransportSolver
 

Protected Member Functions

template<class PressureSolution >
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
 
void checkAndPossiblyClampSat (std::vector< double > &s) const
 

Protected Attributes

GridAdapter mygrid_
 
ReservoirProperties myrp_
 
bool check_sat_
 
bool clamp_sat_
 
int max_repeats_
 
std::vector< double > porevol_
 
std::vector< int > periodic_cells_
 
std::vector< int > periodic_faces_
 
std::vector< int > periodic_nbfaces_
 
std::vector< int > periodic_hfaces_
 
std::vector< int > direclet_cells_
 
std::vector< double > direclet_sat_
 
std::vector< double > direclet_hfaces_
 
std::vector< double > htrans_
 
Opm::ImplicitTransportDetails::NRControl ctrl_
 

Detailed Description

template<class GridInterface, class ReservoirProperties, class BoundaryConditions>
class Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >

Class for doing simple transport by implicit Euler upstream method for general grid.

Template Parameters

Member Typedef Documentation

template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
typedef Opm::ImplicitTransportDefault::JacobianSystem< ScalarBCRSMatrix, NVecColl > Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::JacSys
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
typedef Opm::LinearSolverBICGSTAB Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::LinearSolver
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
typedef Opm::ImplicitTransportDefault::NewtonVectorCollection< ScalarBlockVector > Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::NVecColl
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
typedef Dune::BCRSMatrix<ScalarMatrixBlockType> Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::ScalarBCRSMatrix
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
typedef Dune::BlockVector<ScalarVectorBlockType> Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::ScalarBlockVector
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
typedef Dune::FieldMatrix<double, 1, 1> Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::ScalarMatrixBlockType
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
typedef Dune::FieldVector<double, 1> Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::ScalarVectorBlockType
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
typedef Opm::SinglePointUpwindTwoPhase<TwophaseFluid> Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::TransportModel
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
typedef Opm::ImplicitTransport<TransportModel , JacSys , Opm::MaxNormDune , Opm::ImplicitTransportDefault::VectorNegater, Opm::ImplicitTransportDefault::VectorZero , Opm::ImplicitTransportDefault::MatrixZero , Opm::ImplicitTransportDefault::VectorAssign > Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::TransportSolver
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
typedef Opm::TwophaseFluidWrapper Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::TwophaseFluid
protected

Constructor & Destructor Documentation

template<class GI , class RP , class BC >
Opm::EulerUpstreamImplicit< GI, RP, BC >::EulerUpstreamImplicit ( )
inline
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::EulerUpstreamImplicit ( const GridInterface &  grid,
const ReservoirProperties &  resprop,
const BoundaryConditions &  boundary 
)

Member Function Documentation

template<class GI , class RP , class BC >
void Opm::EulerUpstreamImplicit< GI, RP, BC >::checkAndPossiblyClampSat ( std::vector< double > &  s) const
inlineprotected
template<class GI , class RP , class BC >
void Opm::EulerUpstreamImplicit< GI, RP, BC >::display ( )
inline
template<class GI , class RP , class BC >
void Opm::EulerUpstreamImplicit< GI, RP, BC >::init ( const Opm::parameter::ParameterGroup &  param)
inline
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
void Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::init ( const Opm::parameter::ParameterGroup &  param,
const GridInterface &  grid,
const ReservoirProperties &  resprop,
const BoundaryConditions &  boundary 
)
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
void Opm::EulerUpstreamImplicit< GI, RP, BC >::initObj ( const GridInterface &  grid,
const ReservoirProperties &  resprop,
const BoundaryConditions &  boundary 
)
inline
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
template<class PressureSolution >
void Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::smallTimeStep ( std::vector< double > &  saturation,
const double  time,
const typename GridInterface::Vector &  gravity,
const PressureSolution &  pressure_sol,
const Opm::SparseVector< double > &  injection_rates 
) const
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
template<class PressureSolution >
bool Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::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.

Parameters
saturationfor
timeseconds.
Template Parameters
param
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
template<class PressureSolution >
bool Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::transportSolve ( std::vector< double > &  saturation,
const double  time,
const typename GI::Vector &  gravity,
const PressureSolution &  pressure_sol,
const Opm::SparseVector< double > &  injection_rates 
) const

Member Data Documentation

template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
bool Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::check_sat_
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
bool Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::clamp_sat_
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
Opm::ImplicitTransportDetails::NRControl Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::ctrl_
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
std::vector<int> Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::direclet_cells_
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
std::vector<double> Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::direclet_hfaces_
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
std::vector<double> Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::direclet_sat_
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
std::vector<double> Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::htrans_
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
int Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::max_repeats_
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
GridAdapter Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::mygrid_
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
ReservoirProperties Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::myrp_
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
std::vector<int> Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::periodic_cells_
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
std::vector<int> Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::periodic_faces_
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
std::vector<int> Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::periodic_hfaces_
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
std::vector<int> Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::periodic_nbfaces_
protected
template<class GridInterface , class ReservoirProperties , class BoundaryConditions >
std::vector<double> Opm::EulerUpstreamImplicit< GridInterface, ReservoirProperties, BoundaryConditions >::porevol_
protected

The documentation for this class was generated from the following files: