Implemented trivial parts of RockFromDeck, init() remains.
This commit is contained in:
@@ -28,6 +28,7 @@ opm/core/fluid/blackoil/SinglePvtLiveGas.cpp \
|
||||
opm/core/fluid/blackoil/SinglePvtLiveOil.cpp \
|
||||
opm/core/fluid/blackoil/SinglePvtInterface.cpp \
|
||||
opm/core/fluid/BlackoilPropertiesFromDeck.cpp \
|
||||
opm/core/fluid/RockFromDeck.cpp \
|
||||
opm/core/fluid/SaturationPropsFromDeck.cpp \
|
||||
opm/core/utility/MonotCubicInterpolator.cpp \
|
||||
opm/core/utility/parameters/Parameter.cpp \
|
||||
|
||||
43
opm/core/fluid/RockFromDeck.cpp
Normal file
43
opm/core/fluid/RockFromDeck.cpp
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
Copyright 2012 SINTEF ICT, Applied Mathematics.
|
||||
|
||||
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/>.
|
||||
*/
|
||||
|
||||
|
||||
#include <opm/core/fluid/RockFromDeck.hpp>
|
||||
|
||||
|
||||
namespace Opm
|
||||
{
|
||||
|
||||
/// Default constructor.
|
||||
RockFromDeck::RockFromDeck()
|
||||
: dim_(-1)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/// Initialize from deck and cell mapping.
|
||||
/// \param deck Deck input parser
|
||||
/// \param global_cell mapping from cell indices (typically from a processed grid)
|
||||
/// to logical cartesian indices consistent with the deck.
|
||||
void RockFromDeck::init(const Dune::EclipseGridParser& deck,
|
||||
const std::vector<int>& global_cell)
|
||||
{
|
||||
}
|
||||
|
||||
} // namespace Opm
|
||||
@@ -21,11 +21,56 @@
|
||||
#define OPM_ROCKFROMDECK_HEADER_INCLUDED
|
||||
|
||||
|
||||
#include <opm/core/eclipse/EclipseGridParser.hpp>
|
||||
#include <vector>
|
||||
|
||||
|
||||
namespace Opm
|
||||
{
|
||||
|
||||
class RockFromDeck
|
||||
{
|
||||
public:
|
||||
/// Default constructor.
|
||||
RockFromDeck();
|
||||
|
||||
/// Initialize from deck and cell mapping.
|
||||
/// \param deck Deck input parser
|
||||
/// \param global_cell mapping from cell indices (typically from a processed grid)
|
||||
/// to logical cartesian indices consistent with the deck.
|
||||
void init(const Dune::EclipseGridParser& deck,
|
||||
const std::vector<int>& global_cell);
|
||||
|
||||
/// \return D, the number of spatial dimensions.
|
||||
int numDimensions() const
|
||||
{
|
||||
return dim_;
|
||||
}
|
||||
|
||||
/// \return N, the number of cells.
|
||||
int numCells() const
|
||||
{
|
||||
return porosity_.size();
|
||||
}
|
||||
|
||||
/// \return Array of N porosity values.
|
||||
const double* porosity() const
|
||||
{
|
||||
return &porosity_[0];
|
||||
}
|
||||
|
||||
/// \return Array of ND^2 permeability values.
|
||||
/// The D^2 permeability values for a cell are organized as a matrix,
|
||||
/// which is symmetric (so ordering does not matter).
|
||||
const double* permeability() const
|
||||
{
|
||||
return &permeability_[0];
|
||||
}
|
||||
|
||||
private:
|
||||
int dim_;
|
||||
std::vector<double> porosity_;
|
||||
std::vector<double> permeability_;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user