Opm::IncompTpfaSinglePhase Class Reference

#include <IncompTpfaSinglePhase.hpp>

Public Member Functions

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

Protected Attributes

const UnstructuredGridgrid_
 
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

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.
Opm::IncompTpfaSinglePhase::~IncompTpfaSinglePhase ( )

Destructor.

Member Function Documentation

void Opm::IncompTpfaSinglePhase::solve ( std::vector< double > &  press,
std::vector< double > &  flux,
std::vector< double > &  bhp,
std::vector< double > &  wellrates 
)

Solve the pressure equation.

Member Data Documentation

struct ifs_tpfa_forces Opm::IncompTpfaSinglePhase::forces_
protected
const UnstructuredGrid& Opm::IncompTpfaSinglePhase::grid_
protected
struct ifs_tpfa_data* Opm::IncompTpfaSinglePhase::h_
protected
std::vector<double> Opm::IncompTpfaSinglePhase::htrans_
protected
const LinearSolverInterface& Opm::IncompTpfaSinglePhase::linsolver_
protected
const IncompPropertiesSinglePhase& Opm::IncompTpfaSinglePhase::props_
protected
std::vector<double> Opm::IncompTpfaSinglePhase::totmob_
protected
std::vector<double> Opm::IncompTpfaSinglePhase::trans_
protected
const Wells& Opm::IncompTpfaSinglePhase::wells_
protected
std::vector<double> Opm::IncompTpfaSinglePhase::zeros_
protected

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