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 IncompPropertiesSinglePhase & | props_ |
const LinearSolverInterface & | linsolver_ |
const Wells & | wells_ |
std::vector< double > | htrans_ |
std::vector< double > | trans_ |
std::vector< double > | zeros_ |
std::vector< double > | totmob_ |
struct ifs_tpfa_forces | forces_ |
struct ifs_tpfa_data * | h_ |
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.
Opm::IncompTpfaSinglePhase::IncompTpfaSinglePhase | ( | const UnstructuredGrid & | grid, |
const IncompPropertiesSinglePhase & | props, | ||
const LinearSolverInterface & | linsolver, | ||
const Wells & | wells | ||
) |
Construct solver for incompressible case.
[in] | grid | A 2d or 3d grid. |
[in] | props | Rock and fluid properties. |
[in] | linsolver | Linear solver to use. |
[in] | wells | The wells used as driving forces. |