My Project
|
A property class for porous media rock. More...
#include <Rock.hpp>
Public Types | |
typedef ImmutableCMatrix | PermTensor |
Tensor type for read-only access to permeability. | |
typedef OwnCMatrix | MutablePermTensor |
Tensor type to be used for holding copies of permeability tensors. | |
typedef SharedCMatrix | SharedPermTensor |
Tensor type for read and write access to permeability. | |
Public Member Functions | |
Rock (::std::size_t nc, ::std::size_t dim) | |
const ::std::vector< double > & | perm () const |
const ::std::vector< double > & | poro () const |
void | perm_homogeneous (double k) |
void | poro_homogeneous (double phi) |
Rock () | |
Default constructor. | |
void | init (const Opm::Deck &deck, const std::vector< int > &global_cell, const double perm_threshold=0.0) |
Initialize from a grdecl file. More... | |
void | init (const int num_cells, const double uniform_poro, const double uniform_perm) |
Initialize a uniform reservoir. More... | |
double | porosity (int cell_index) const |
Read-access to porosity. More... | |
PermTensor | permeability (int cell_index) const |
Read-access to permeability. More... | |
SharedPermTensor | permeabilityModifiable (int cell_index) |
Read- and write-access to permeability. More... | |
Protected Attributes | |
std::vector< double > | porosity_ |
std::vector< double > | permeability_ |
std::vector< unsigned char > | permfield_valid_ |
PermeabilityKind | permeability_kind_ |
A property class for porous media rock.
dim | the dimension of the space, used for giving permeability tensors the right size. |
void Opm::Rock< dim >::init | ( | const int | num_cells, |
const double | uniform_poro, | ||
const double | uniform_perm | ||
) |
Initialize a uniform reservoir.
num_cells | number of cells in the grid. |
uniform_poro | the uniform porosity. |
uniform_perm | the uniform (scalar) permeability. |
void Opm::Rock< dim >::init | ( | const Opm::Deck & | deck, |
const std::vector< int > & | global_cell, | ||
const double | perm_threshold = 0.0 |
||
) |
Initialize from a grdecl file.
parser | the parser holding the grdecl data. |
parser | the parser holding the grdecl data. |
global_cell | the mapping from cell indices to the logical cartesian indices of the grdecl file. |
perm_threshold | lower threshold for permeability. |
rock_list_filename | if non-null, the referred string gives the filename for the rock list. |
use_jfunction_scaling | if true, use j-function scaling of capillary pressure, if applicable. |
sigma | interface tension for j-scaling, if applicable. |
theta | angle for j-scaling, if applicable. |
Rock< dim >::PermTensor Opm::Rock< dim >::permeability | ( | int | cell_index | ) | const |
Read-access to permeability.
cell_index | index of a grid cell. |
Rock< dim >::SharedPermTensor Opm::Rock< dim >::permeabilityModifiable | ( | int | cell_index | ) |
Read- and write-access to permeability.
Use with caution.
cell_index | index of a grid cell. |
double Opm::Rock< dim >::porosity | ( | int | cell_index | ) | const |
Read-access to porosity.
cell_index | index of a grid cell. |