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 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.

◆ ~IncompTpfaSinglePhase()

Opm::IncompTpfaSinglePhase::~IncompTpfaSinglePhase ( )

Destructor.

Member Function Documentation

◆ solve()

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

◆ forces_

struct ifs_tpfa_forces Opm::IncompTpfaSinglePhase::forces_
protected

◆ grid_

const UnstructuredGrid& Opm::IncompTpfaSinglePhase::grid_
protected

◆ h_

struct ifs_tpfa_data* Opm::IncompTpfaSinglePhase::h_
protected

◆ htrans_

std::vector<double> Opm::IncompTpfaSinglePhase::htrans_
protected

◆ linsolver_

const LinearSolverInterface& Opm::IncompTpfaSinglePhase::linsolver_
protected

◆ props_

const IncompPropertiesSinglePhase& Opm::IncompTpfaSinglePhase::props_
protected

◆ totmob_

std::vector<double> Opm::IncompTpfaSinglePhase::totmob_
protected

◆ trans_

std::vector<double> Opm::IncompTpfaSinglePhase::trans_
protected

◆ wells_

const Wells& Opm::IncompTpfaSinglePhase::wells_
protected

◆ zeros_

std::vector<double> Opm::IncompTpfaSinglePhase::zeros_
protected

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