My Project
WellInterfaceIndices.hpp
1/*
2 Copyright 2017 SINTEF Digital, Mathematics and Cybernetics.
3 Copyright 2017 Statoil ASA.
4 Copyright 2017 IRIS
5 Copyright 2019 Norce
6
7 This file is part of the Open Porous Media project (OPM).
8
9 OPM is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 OPM is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with OPM. If not, see <http://www.gnu.org/licenses/>.
21*/
22
23#ifndef OPM_WELLINTERFACE_INDICES_HEADER_INCLUDED
24#define OPM_WELLINTERFACE_INDICES_HEADER_INCLUDED
25
26#include <opm/simulators/wells/WellInterfaceFluidSystem.hpp>
27#include <opm/simulators/wells/WellInterfaceEval.hpp>
28
29namespace Opm
30{
31
32template<class FluidSystem, class Indices, class Scalar>
34 , public WellInterfaceEval<FluidSystem>
35{
36public:
37 using WellInterfaceFluidSystem<FluidSystem>::Gas;
38 using WellInterfaceFluidSystem<FluidSystem>::Oil;
39 using WellInterfaceFluidSystem<FluidSystem>::Water;
40
41 int flowPhaseToEbosCompIdx(const int phaseIdx) const;
42 int ebosCompIdxToFlowCompIdx(const unsigned compIdx) const;
43 double scalingFactor(const int phaseIdx) const;
44
45protected:
46 WellInterfaceIndices(const Well& well,
47 const ParallelWellInfo& parallel_well_info,
48 const int time_step,
50 const int pvtRegionIdx,
51 const int num_components,
52 const int num_phases,
53 const int index_of_well,
54 const std::vector<PerforationData>& perf_data);
55};
56
57}
58
59#endif // OPM_WELLINTERFACE_INDICES_HEADER_INCLUDED
Class encapsulating some information about parallel wells.
Definition: ParallelWellInfo.hpp:243
Convert component rates at surface conditions to phase (voidage) rates at reservoir conditions.
Definition: RateConverter.hpp:68
Definition: WellInterfaceEval.hpp:46
Definition: WellInterfaceFluidSystem.hpp:46
Definition: WellInterfaceIndices.hpp:35
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: BlackoilPhases.hpp:27