2012-03-29 06:05:59 -05:00
|
|
|
/*
|
|
|
|
Copyright 2012 SINTEF ICT, Applied Mathematics.
|
2015-07-03 09:31:52 -05:00
|
|
|
Copyright 2015 IRIS AS
|
2012-03-29 06:05:59 -05:00
|
|
|
|
|
|
|
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/>.
|
|
|
|
*/
|
|
|
|
|
2012-06-05 08:42:49 -05:00
|
|
|
#ifndef OPM_BLACKOILSTATE_HEADER_INCLUDED
|
|
|
|
#define OPM_BLACKOILSTATE_HEADER_INCLUDED
|
2012-03-29 06:05:59 -05:00
|
|
|
|
2016-02-25 14:47:47 -06:00
|
|
|
#include <opm/common/data/SimulationDataContainer.hpp>
|
|
|
|
|
2012-03-29 06:05:59 -05:00
|
|
|
#include <opm/core/grid.h>
|
2013-03-14 04:29:42 -05:00
|
|
|
#include <opm/core/props/BlackoilPropertiesInterface.hpp>
|
2012-03-29 06:05:59 -05:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace Opm
|
|
|
|
{
|
|
|
|
|
2012-06-05 08:42:49 -05:00
|
|
|
/// Simulator state for a blackoil simulator.
|
2016-02-25 14:47:47 -06:00
|
|
|
class BlackoilState : public SimulationDataContainer
|
2012-03-29 06:05:59 -05:00
|
|
|
{
|
|
|
|
public:
|
2016-02-25 14:47:47 -06:00
|
|
|
static const std::string GASOILRATIO;
|
|
|
|
static const std::string RV;
|
|
|
|
static const std::string SURFACEVOL;
|
2012-03-29 06:05:59 -05:00
|
|
|
|
2016-02-25 14:47:47 -06:00
|
|
|
BlackoilState(size_t num_cells , size_t num_faces, size_t num_phases);
|
2013-10-29 08:20:36 -05:00
|
|
|
|
2012-03-29 06:05:59 -05:00
|
|
|
|
2016-02-25 14:47:47 -06:00
|
|
|
std::vector<double>& surfacevol () { return getCellData("SURFACEVOL"); }
|
|
|
|
std::vector<double>& gasoilratio () { return getCellData(GASOILRATIO); }
|
|
|
|
std::vector<double>& rv () { return getCellData(RV); }
|
2012-03-29 06:05:59 -05:00
|
|
|
|
2016-02-25 14:47:47 -06:00
|
|
|
const std::vector<double>& surfacevol () const { return getCellData("SURFACEVOL"); }
|
|
|
|
const std::vector<double>& gasoilratio () const { return getCellData("GASOILRATIO"); }
|
|
|
|
const std::vector<double>& rv () const { return getCellData(RV); }
|
2015-07-03 09:26:59 -05:00
|
|
|
|
2012-03-29 06:05:59 -05:00
|
|
|
};
|
|
|
|
} // namespace Opm
|
|
|
|
|
|
|
|
|
2012-06-05 08:42:49 -05:00
|
|
|
#endif // OPM_BLACKOILSTATE_HEADER_INCLUDED
|