BlackoilPVT.hpp
Go to the documentation of this file.
1/*
2 Copyright 2010 SINTEF ICT, Applied Mathematics.
3
4 This file is part of the Open Porous Media project (OPM).
5
6 OPM is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 OPM is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with OPM. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#ifndef OPM_BLACKOILPVT_HEADER_INCLUDED
21#define OPM_BLACKOILPVT_HEADER_INCLUDED
22
23
24#include "MiscibilityProps.hpp"
25#include "BlackoilDefs.hpp"
26#include <opm/parser/eclipse/Deck/Deck.hpp>
27#include <boost/scoped_ptr.hpp>
28#include <string>
29
30
31namespace Opm
32{
34 {
35 public:
36 void init(Opm::DeckConstPtr deck);
37
38 double getViscosity(double press,
39 const CompVec& surfvol,
40 PhaseIndex phase) const;
42 double B (double press,
43 const CompVec& surfvol,
44 PhaseIndex phase) const;
45 double dBdp(double press,
46 const CompVec& surfvol,
47 PhaseIndex phase) const;
48 double R (double press,
49 const CompVec& surfvol,
50 PhaseIndex phase) const;
51 double dRdp(double press,
52 const CompVec& surfvol,
53 PhaseIndex phase) const;
54
55 void getViscosity(const std::vector<PhaseVec>& pressures,
56 const std::vector<CompVec>& surfvol,
57 std::vector<PhaseVec>& output) const;
58 void B(const std::vector<PhaseVec>& pressures,
59 const std::vector<CompVec>& surfvol,
60 std::vector<PhaseVec>& output) const;
61 void dBdp(const std::vector<PhaseVec>& pressures,
62 const std::vector<CompVec>& surfvol,
63 std::vector<PhaseVec>& output_B,
64 std::vector<PhaseVec>& output_dBdp) const;
65 void R(const std::vector<PhaseVec>& pressures,
66 const std::vector<CompVec>& surfvol,
67 std::vector<PhaseVec>& output) const;
68 void dRdp(const std::vector<PhaseVec>& pressures,
69 const std::vector<CompVec>& surfvol,
70 std::vector<PhaseVec>& output_R,
71 std::vector<PhaseVec>& output_dRdp) const;
72
73 private:
74 int region_number_;
75 const MiscibilityProps& propsForPhase(PhaseIndex phase) const;
76
77 boost::scoped_ptr<MiscibilityProps> water_props_;
78 boost::scoped_ptr<MiscibilityProps> oil_props_;
79 boost::scoped_ptr<MiscibilityProps> gas_props_;
80 CompVec densities_;
81 mutable std::vector<double> data1_;
82 mutable std::vector<double> data2_;
83 };
84
85}
86
87
88#endif // OPM_BLACKOILPVT_HEADER_INCLUDED
Definition: BlackoilDefs.hpp:31
Dune::FieldVector< Scalar, numComponents > CompVec
Definition: BlackoilDefs.hpp:40
PhaseIndex
Definition: BlackoilDefs.hpp:37
Definition: BlackoilPVT.hpp:34
double getViscosity(double press, const CompVec &surfvol, PhaseIndex phase) const
CompVec surfaceDensities() const
void dBdp(const std::vector< PhaseVec > &pressures, const std::vector< CompVec > &surfvol, std::vector< PhaseVec > &output_B, std::vector< PhaseVec > &output_dBdp) const
void R(const std::vector< PhaseVec > &pressures, const std::vector< CompVec > &surfvol, std::vector< PhaseVec > &output) const
double R(double press, const CompVec &surfvol, PhaseIndex phase) const
void dRdp(const std::vector< PhaseVec > &pressures, const std::vector< CompVec > &surfvol, std::vector< PhaseVec > &output_R, std::vector< PhaseVec > &output_dRdp) const
void init(Opm::DeckConstPtr deck)
void getViscosity(const std::vector< PhaseVec > &pressures, const std::vector< CompVec > &surfvol, std::vector< PhaseVec > &output) const
void B(const std::vector< PhaseVec > &pressures, const std::vector< CompVec > &surfvol, std::vector< PhaseVec > &output) const
double B(double press, const CompVec &surfvol, PhaseIndex phase) const
double dBdp(double press, const CompVec &surfvol, PhaseIndex phase) const
double dRdp(double press, const CompVec &surfvol, PhaseIndex phase) const
Definition: MiscibilityProps.hpp:47
Definition: BlackoilFluid.hpp:32