Loading...
Searching...
No Matches
EclipseGridInspector.hpp
//===========================================================================
//
// File: EclipseGridInspector.h
//
// Created: Mon Jun 2 09:46:08 2008
//
// Author: Atgeirr F Rasmussen <atgeirr@sintef.no>
//
// $Date$
//
// Revision: $Id: EclipseGridInspector.h,v 1.2 2008/08/18 14:16:12 atgeirr Exp $
//
//===========================================================================
/*
Copyright 2009, 2010 SINTEF ICT, Applied Mathematics.
Copyright 2009, 2010 Statoil ASA.
This file is part of the Open Porous Media project (OPM).
OPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OPM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef OPM_ECLIPSEGRIDINSPECTOR_HEADER
#define OPM_ECLIPSEGRIDINSPECTOR_HEADER
#include <vector>
#include <array>
#include <opm/input/eclipse/Deck/Deck.hpp>
namespace Opm
{
class EclipseGridInspector
{
public:
explicit EclipseGridInspector(Opm::Deck);
double cellVolumeVerticalPillars(int i, int j, int k) const;
double cellVolumeVerticalPillars(int cell_idx) const;
std::pair<double,double> cellDips(int i, int j, int k) const;
std::pair<double,double> cellDips(int cell_idx) const;
// Convert global cell index to logical ijk-coordinates
std::array<int, 3> cellIdxToLogicalCoords(int cell_idx) const;
std::array<double, 6> getGridLimits() const;
std::array<int, 3> gridSize() const;
std::array<double, 8> cellZvals(int i, int j, int k) const;
private:
Opm::Deck deck_;
int logical_gridsize_[3];
void init_();
void checkLogicalCoords(int i, int j, int k) const;
};
} // namespace Opm
#endif // OPM_ECLIPSEGRIDINSPECTOR_HEADER
Opm::Deck
Definition Deck.hpp:49
Opm::EclipseGridInspector
A class for inspecting the contents of an eclipse file.
Definition EclipseGridInspector.hpp:56
Opm::EclipseGridInspector::getGridLimits
std::array< double, 6 > getGridLimits() const
Returns a vector with the outer limits of grid (in the grid's unit).
Definition EclipseGridInspector.cpp:275
Opm::EclipseGridInspector::cellDips
std::pair< double, double > cellDips(int i, int j, int k) const
Compute the average dip in x- and y-direction of the cell tops and bottoms relative to the xy-plane.
Definition EclipseGridInspector.cpp:99
Opm::EclipseGridInspector::gridSize
std::array< int, 3 > gridSize() const
Returns the extent of the logical cartesian grid as number of cells in the (i, j, k) directions.
Definition EclipseGridInspector.cpp:319
Opm::EclipseGridInspector::cellZvals
std::array< double, 8 > cellZvals(int i, int j, int k) const
Returns the eight z-values associated with a given cell.
Definition EclipseGridInspector.cpp:328
Opm::EclipseGridInspector::cellVolumeVerticalPillars
double cellVolumeVerticalPillars(int i, int j, int k) const
Assuming that the pillars are vertical, compute the volume of the cell given by logical coordinates (...
Definition EclipseGridInspector.cpp:208
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30