#include <TpfaCompressible.hpp>
|
| | TpfaCompressible () |
| | Default constructor. Does nothing. More...
|
| |
| void | init (const Opm::parameter::ParameterGroup ¶m) |
| | Initializes run-time parameters of the solver. More...
|
| |
| FluidInterface::CompVec | inflowMixture () const |
| | Accessor for the inflow mixture. More...
|
| |
| void | setup (const GridInterface &grid, const RockInterface &rock, const FluidInterface &fluid, const WellsInterface &wells, const typename GridInterface::Vector &grav, const BCInterface &bc, const std::vector< typename FluidInterface::PhaseVec > *face_pressure=0) |
| | Setup routine, does grid/rock-dependent initialization. More...
|
| |
| double | volumeDiscrepancyLimit () const |
| |
| const std::vector< double > & | faceTransmissibilities () |
| |
| bool | volumeDiscrepancyAcceptable (const std::vector< typename FluidInterface::PhaseVec > &cell_pressure, const std::vector< typename FluidInterface::PhaseVec > &face_pressure, const std::vector< double > &well_perf_pressure, const std::vector< typename FluidInterface::CompVec > &cell_z, const double dt) |
| |
| ReturnCode | solve (std::vector< typename FluidInterface::PhaseVec > &cell_pressure, std::vector< typename FluidInterface::PhaseVec > &face_pressure, const std::vector< typename FluidInterface::CompVec > &cell_z, std::vector< double > &face_flux, std::vector< double > &well_bhp_pressures, std::vector< double > &well_perf_pressures, std::vector< double > &well_perf_fluxes, const std::vector< double > &src, const double dt) |
| | Construct and solve system of linear equations for the phase pressure values on cells and faces, also compute total face fluxes. More...
|
| |
| double | stableStepIMPES () |
| | Call this function after solve(). More...
|
| |
| void | doStepIMPES (std::vector< typename FluidInterface::CompVec > &cell_z, const double dt) |
| | Do an IMPES step using the facilities of the pressure solver. More...
|
| |
template<class GridInterface , class RockInterface , class FluidInterface , class WellsInterface , class BCInterface >
template<class GridInterface , class RockInterface , class FluidInterface , class WellsInterface , class BCInterface >
| Enumerator |
|---|
| SolveOk |
|
| VolumeDiscrepancyTooLarge |
|
| FailedToConverge |
|
template<class GridInterface , class RockInterface , class FluidInterface , class WellsInterface , class BCInterface >
Default constructor. Does nothing.
template<class GridInterface , class RockInterface , class FluidInterface , class WellsInterface , class BCInterface >
| void Opm::TpfaCompressible< GridInterface, RockInterface, FluidInterface, WellsInterface, BCInterface >::doStepIMPES |
( |
std::vector< typename FluidInterface::CompVec > & |
cell_z, |
|
|
const double |
dt |
|
) |
| |
|
inline |
template<class GridInterface , class RockInterface , class FluidInterface , class WellsInterface , class BCInterface >
| const std::vector<double>& Opm::TpfaCompressible< GridInterface, RockInterface, FluidInterface, WellsInterface, BCInterface >::faceTransmissibilities |
( |
| ) |
|
|
inline |
template<class GridInterface , class RockInterface , class FluidInterface , class WellsInterface , class BCInterface >
| FluidInterface::CompVec Opm::TpfaCompressible< GridInterface, RockInterface, FluidInterface, WellsInterface, BCInterface >::inflowMixture |
( |
| ) |
const |
|
inline |
Accessor for the inflow mixture.
template<class GridInterface , class RockInterface , class FluidInterface , class WellsInterface , class BCInterface >
| void Opm::TpfaCompressible< GridInterface, RockInterface, FluidInterface, WellsInterface, BCInterface >::init |
( |
const Opm::parameter::ParameterGroup & |
param | ) |
|
|
inline |
Initializes run-time parameters of the solver.
template<class GridInterface , class RockInterface , class FluidInterface , class WellsInterface , class BCInterface >
| void Opm::TpfaCompressible< GridInterface, RockInterface, FluidInterface, WellsInterface, BCInterface >::setup |
( |
const GridInterface & |
grid, |
|
|
const RockInterface & |
rock, |
|
|
const FluidInterface & |
fluid, |
|
|
const WellsInterface & |
wells, |
|
|
const typename GridInterface::Vector & |
grav, |
|
|
const BCInterface & |
bc, |
|
|
const std::vector< typename FluidInterface::PhaseVec > * |
face_pressure = 0 |
|
) |
| |
|
inline |
template<class GridInterface , class RockInterface , class FluidInterface , class WellsInterface , class BCInterface >
| ReturnCode Opm::TpfaCompressible< GridInterface, RockInterface, FluidInterface, WellsInterface, BCInterface >::solve |
( |
std::vector< typename FluidInterface::PhaseVec > & |
cell_pressure, |
|
|
std::vector< typename FluidInterface::PhaseVec > & |
face_pressure, |
|
|
const std::vector< typename FluidInterface::CompVec > & |
cell_z, |
|
|
std::vector< double > & |
face_flux, |
|
|
std::vector< double > & |
well_bhp_pressures, |
|
|
std::vector< double > & |
well_perf_pressures, |
|
|
std::vector< double > & |
well_perf_fluxes, |
|
|
const std::vector< double > & |
src, |
|
|
const double |
dt |
|
) |
| |
|
inline |
Construct and solve system of linear equations for the phase pressure values on cells and faces, also compute total face fluxes.
- Parameters
-
| [in,out] | cell_pressure | Phase pressures per cell. |
| [in,out] | face_pressure | Phase pressures per face. |
| [in,out] | cell_z | Surface volume per cell. Only changed if the argument is true. |
| [out] | face_flux | Total (summed over all phases) volume flux (signed) across each face. |
| [out] | well_perf_pressures | Pressure in each well perforation. |
| [out] | well_perf_fluxes | Total (summed over all phases) volume flux (signed, positive meaning injection) from each well perforation. |
| [in] | src | Explicit source terms. One scalar value for each grid cell representing the rate (in units of m^3/s) of fluid being injected into (>0) or extracted from (<0) a given grid cell. |
| [in] | dt | Timestep for pressure solver. |
| [in] | transport | If true, modify by IMPES scheme. |
References Opm::TpfaCompressible< GridInterface, RockInterface, FluidInterface, WellsInterface, BCInterface >::SolveOk.
template<class GridInterface , class RockInterface , class FluidInterface , class WellsInterface , class BCInterface >
| double Opm::TpfaCompressible< GridInterface, RockInterface, FluidInterface, WellsInterface, BCInterface >::stableStepIMPES |
( |
| ) |
|
|
inline |
template<class GridInterface , class RockInterface , class FluidInterface , class WellsInterface , class BCInterface >
| bool Opm::TpfaCompressible< GridInterface, RockInterface, FluidInterface, WellsInterface, BCInterface >::volumeDiscrepancyAcceptable |
( |
const std::vector< typename FluidInterface::PhaseVec > & |
cell_pressure, |
|
|
const std::vector< typename FluidInterface::PhaseVec > & |
face_pressure, |
|
|
const std::vector< double > & |
well_perf_pressure, |
|
|
const std::vector< typename FluidInterface::CompVec > & |
cell_z, |
|
|
const double |
dt |
|
) |
| |
|
inline |
template<class GridInterface , class RockInterface , class FluidInterface , class WellsInterface , class BCInterface >
| double Opm::TpfaCompressible< GridInterface, RockInterface, FluidInterface, WellsInterface, BCInterface >::volumeDiscrepancyLimit |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file:
|