示例#1
0
 void RockFromDeck::init(Opm::EclipseStateConstPtr eclState,
                         int number_of_cells, const int* global_cell,
                         const int* cart_dims)
 {
     assignPorosity(eclState, number_of_cells, global_cell);
     permfield_valid_.assign(number_of_cells, false);
     const double perm_threshold = 0.0; // Maybe turn into parameter?
     assignPermeability(eclState, number_of_cells, global_cell, cart_dims,
                        perm_threshold);
 }
示例#2
0
void Rock<dim>::init(Opm::DeckConstPtr deck,
                     const std::vector<int>& global_cell,
                     const double perm_threshold)
{
    // This code is mostly copied from ReservoirPropertyCommon::init(...).
    static_assert(dim == 3, "");

    permfield_valid_.assign(global_cell.size(), false);

    assignPorosity    (deck, global_cell);
    assignPermeability(deck, global_cell, perm_threshold);
}
示例#3
0
    void Rock<dim>::init(const Opm::EclipseGridParser& parser,
                         const std::vector<int>& global_cell,
                         const double perm_threshold)
    {
        // This code is mostly copied from ReservoirPropertyCommon::init(...).
        BOOST_STATIC_ASSERT(dim == 3);

        permfield_valid_.assign(global_cell.size(), false);

        assignPorosity    (parser, global_cell);
        assignPermeability(parser, global_cell, perm_threshold);
    }