multiPhaseUpwind.hpp
1 /*
2  Copyright 2015, 2016 SINTEF ICT, Applied Mathematics.
3  Copyright 2016 Statoil AS.
4 
5  This file is part of the Open Porous Media project (OPM).
6 
7  OPM is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  OPM is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with OPM. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
21 #ifndef OPM_MULTIPHASEUPWIND_HEADER_INCLUDED
22 #define OPM_MULTIPHASEUPWIND_HEADER_INCLUDED
23 
24 #include <array>
25 
26 namespace Opm
27 {
38  std::array<double, 3> connectionMultiPhaseUpwind(const std::array<double, 3>& head_diff,
39  const std::array<double, 3>& mob1,
40  const std::array<double, 3>& mob2,
41  const double transmissibility,
42  const double flux);
43 } // namespace Opm
44 
45 #endif // OPM_MULTIPHASEUPWIND_HEADER_INCLUDED
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: AdditionalObjectDeleter.hpp:22
std::array< double, 3 > connectionMultiPhaseUpwind(const std::array< double, 3 > &head_diff, const std::array< double, 3 > &mob1, const std::array< double, 3 > &mob2, const double transmissibility, const double flux)
Compute upwind directions for three-phase flow across a connection.
Definition: multiPhaseUpwind.cpp:31