opm-upscaling
Loading...
Searching...
No Matches
Opm::Rock< dim > Class Template Reference

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.
void init (const int num_cells, const double uniform_poro, const double uniform_perm)
 Initialize a uniform reservoir.
double porosity (int cell_index) const
 Read-access to porosity.
PermTensor permeability (int cell_index) const
 Read-access to permeability.
SharedPermTensor permeabilityModifiable (int cell_index)
 Read- and write-access to permeability.

Protected Member Functions

void assignPorosity (const Opm::Deck &deck, const std::vector< int > &global_cell)
void assignPermeability (const Opm::Deck &deck, const std::vector< int > &global_cell, const double perm_threshold)

Protected Attributes

std::vector< double > porosity_
std::vector< double > permeability_
std::vector< unsigned char > permfield_valid_
PermeabilityKind permeability_kind_

Detailed Description

template<int dim>
class Opm::Rock< dim >

A property class for porous media rock.

Template Parameters
dimthe dimension of the space, used for giving permeability tensors the right size.

Member Function Documentation

◆ init() [1/2]

template<int dim>
void Opm::Rock< dim >::init ( const int num_cells,
const double uniform_poro,
const double uniform_pera class="el" href="matrixops_8hpp.html#a2a875712726e40e7c5eb1b271e1c2a0a">Matrix & const doubleMatrix & )doubleMatrix