PressureAverage.hpp
Go to the documentation of this file.
1/*
2 This file is part of the Open Porous Media project (OPM).
3 OPM is free software: you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation, either version 2 of the License, or
6 (at your option) any later version.
7 OPM is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 GNU General Public License for more details.
11 You should have received a copy of the GNU General Public License
12 along with OPM. If not, see <http://www.gnu.org/licenses/>.
13 Consult the COPYING file in the top-level source directory of this
14 module for the precise wording of the license and the list of
15 copyright holders.
16*/
17
18#ifndef PRESSURE_AVERAGE_HPP
19#define PRESSURE_AVERAGE_HPP
20
21#include <vector>
22
23namespace Opm {
24namespace detail {
25
27template<class Scalar>
28Scalar pressureAverage(const Scalar pressurePvHydrocarbon,
29 const Scalar pvHydrocarbon,
30 const Scalar pressurePv,
31 const Scalar pv,
32 const bool hydrocarbon);
33
35template<class Scalar>
36std::vector<Scalar>
37pressureAverage(const std::vector<Scalar>& pressurePvHydrocarbon,
38 const std::vector<Scalar>& pvHydrocarbon,
39 const std::vector<Scalar>& pressurePv,
40 const std::vector<Scalar>& pv,
41 const bool hydrocarbon);
42
43} // namespace detail
44} // namespace Opm
45
46#endif // PRESSURE_AVERAGE_HPP
Scalar pressureAverage(const Scalar pressurePvHydrocarbon, const Scalar pvHydrocarbon, const Scalar pressurePv, const Scalar pv, const bool hydrocarbon)
Calculates average pressure value.
Definition: BlackoilPhases.hpp:27