A base class for upscaling.
More...
#include <UpscalerBase.hpp>
|
| UpscalerBase () |
| Default constructor. More...
|
|
virtual | ~UpscalerBase () |
|
void | init (const Opm::parameter::ParameterGroup ¶m) |
| Initializes the upscaler from parameters. More...
|
|
void | init (Opm::DeckConstPtr deck, BoundaryConditionType bctype, double perm_threshold, double residual_tolerance=1e-8, int linsolver_verbosity=0, int linsolver_type=3, bool twodim_hack=false, int linsolver_maxit=0, double linsolver_prolongate_factor=1.0, int linsolver_smooth_steps=1) |
| Initializes the upscaler from given arguments. More...
|
|
const GridType & | grid () const |
| Access the grid. More...
|
|
void | setBoundaryConditionType (BoundaryConditionType type) |
|
void | setPermeability (const int cell_index, const permtensor_t &k) |
|
permtensor_t | upscaleSinglePhase () |
|
double | upscalePorosity () const |
|
double | upscaleNetPorosity () const |
|
double | upscaleNTG () const |
|
double | upscaleSWCR (const bool NTG) const |
|
double | upscaleSOWCR (const bool NTG) const |
|
template<class Traits>
class Opm::UpscalerBase< Traits >
A base class for upscaling.
- Author
- Atgeirr F. Rasmussen atgei.nosp@m.rr@s.nosp@m.intef.nosp@m..no
A type for the upscaled permeability.
Enumerator |
---|
Fixed |
|
Linear |
|
Periodic |
|
template<class Traits >
template<class FlowSol >
double Opm::UpscalerBase< Traits >::computeAverageVelocity |
( |
const FlowSol & |
flow_solution, |
|
|
const int |
flow_dir, |
|
|
const int |
pdrop_dir |
|
) |
| const |
|
protected |
template<class Traits >
void Opm::UpscalerBase< Traits >::init |
( |
const Opm::parameter::ParameterGroup & |
param | ) |
|
|
inline |
template<class Traits >
void Opm::UpscalerBase< Traits >::init |
( |
Opm::DeckConstPtr |
deck, |
|
|
BoundaryConditionType |
bctype, |
|
|
double |
perm_threshold, |
|
|
double |
residual_tolerance = 1e-8 , |
|
|
int |
linsolver_verbosity = 0 , |
|
|
int |
linsolver_type = 3 , |
|
|
bool |
twodim_hack = false , |
|
|
int |
linsolver_maxit = 0 , |
|
|
double |
linsolver_prolongate_factor = 1.0 , |
|
|
int |
linsolver_smooth_steps = 1 |
|
) |
| |
|
inline |
Initializes the upscaler from given arguments.
template<class Traits >
void Opm::UpscalerBase< Traits >::initFinal |
( |
const Opm::parameter::ParameterGroup & |
param | ) |
|
|
inlineprotectedvirtual |
template<class Traits >
void Opm::UpscalerBase< Traits >::initImpl |
( |
const Opm::parameter::ParameterGroup & |
param | ) |
|
|
inlineprotectedvirtual |
Set boundary condition type. This may not be used to swicth between Periodic and the other types, since the grid is modified for Periodic conditions.
Set the permeability of a cell directly. This will override the permeability that was read from the eclipse file.
template<class Traits >
template<class FluidInterface >
Compute upscaled net porosity.
- Returns
- total pore volume (with NTG) of all cells divided by total volume.
Compute upscaled NTG.
- Returns
- total net of all cells divided by total volume.
Compute upscaled porosity.
- Returns
- total pore volume of all cells divided by total volume.
Does a single-phase upscaling.
- Returns
- an upscaled permeability tensor.
Compute upscaled SOWCR.
- Returns
- total irreducible oil volume divided by total pore volume
Compute upscaled SWCR.
- Returns
- total irreducible water volume divided by total pore volume
The documentation for this class was generated from the following files: