Opm::IncompTpfaSinglePhase Class Reference

Encapsulating a tpfa pressure solver for the incompressible-fluid case. More...

#include <IncompTpfaSinglePhase.hpp>

Public Member Functions

 IncompTpfaSinglePhase (const UnstructuredGrid &grid, const IncompPropertiesSinglePhase &props, const LinearSolverInterface &linsolver, const Wells &wells)
 Construct solver for incompressible case. More...
 
 ~IncompTpfaSinglePhase ()
 Destructor.
 
void solve (std::vector< double > &press, std::vector< double > &flux, std::vector< double > &bhp, std::vector< double > &wellrates)
 Solve the pressure equation.
 

Protected Attributes

const UnstructuredGrid & grid_
 
const IncompPropertiesSinglePhaseprops_
 
const LinearSolverInterfacelinsolver_
 
const Wellswells_
 
std::vector< double > htrans_
 
std::vector< double > trans_
 
std::vector< double > zeros_
 
std::vector< double > totmob_
 
struct ifs_tpfa_forces forces_
 
struct ifs_tpfa_datah_
 

Detailed Description

Encapsulating a tpfa pressure solver for the incompressible-fluid case.

Supports gravity, wells controlled by bhp or reservoir rates, boundary conditions and simple sources as driving forces. Rock compressibility can be included, and necessary nonlinear iterations are handled. Below we use the shortcuts D for the number of dimensions, N for the number of cells and F for the number of faces.

Constructor & Destructor Documentation

◆ IncompTpfaSinglePhase()

Opm::IncompTpfaSinglePhase::IncompTpfaSinglePhase ( const UnstructuredGrid &  grid,
const IncompPropertiesSinglePhase props,
const LinearSolverInterface linsolver,
const Wells wells 
)

Construct solver for incompressible case.

Parameters
[in]gridA 2d or 3d grid.
[in]propsRock and fluid properties.
[in]linsolverLinear solver to use.
[in]wellsThe wells used as driving forces.

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