blackoilfoamparams.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
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 2 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 Consult the COPYING file in the top-level source directory of this
20 module for the precise wording of the license and the list of
21 copyright holders.
22*/
28#ifndef EWOMS_BLACK_OIL_FOAM_PARAMS_HH
29#define EWOMS_BLACK_OIL_FOAM_PARAMS_HH
30
31#include <opm/input/eclipse/EclipseState/Phase.hpp>
32#include <opm/material/common/Tabulated1DFunction.hpp>
33
34#include <vector>
35
36namespace Opm {
37
39template<class Scalar>
41 using TabulatedFunction = Tabulated1DFunction<Scalar>;
42
46 void setNumSatRegions(unsigned numRegions)
47 {
48 foamCoefficients_.resize(numRegions);
49 foamRockDensity_.resize(numRegions);
50 foamAllowDesorption_.resize(numRegions);
51 adsorbedFoamTable_.resize(numRegions);
52 }
53
54 // a struct containing constants to calculate change to relative permeability,
55 // based on model (1-9) in Table 1 of
56 // Kun Ma, Guangwei Ren, Khalid Mateen, Danielle Morel, and Philippe Cordelier:
57 // "Modeling techniques for foam flow in porous media", SPE Journal, 20(03):453–470, jun 2015.
58 // The constants are provided by various deck keywords as shown in the comments below.
60 Scalar fm_min = 1e-20; // FOAMFSC
61 Scalar fm_mob = 1.0; // FOAMFRM
62
63 Scalar fm_surf = 1.0; // FOAMFSC
64 Scalar ep_surf = 1.0; // FOAMFSC
65
66 Scalar fm_oil = 1.0; // FOAMFSO
67 Scalar fl_oil = 0.0; // FOAMFSO
68 Scalar ep_oil = 0.0; // FOAMFSO
69
70 Scalar fm_cap = 1.0; // FOAMFCN
71 Scalar ep_cap = 0.0; // FOAMFCN
72
73 Scalar fm_dry = 1.0; // FOAMFSW
74 Scalar ep_dry = 0.0; // FOAMFSW
75 };
76
77 std::vector<Scalar> foamRockDensity_;
78 std::vector<bool> foamAllowDesorption_;
79 std::vector<FoamCoefficients> foamCoefficients_;
80 std::vector<TabulatedFunction> adsorbedFoamTable_;
81 std::vector<TabulatedFunction> gasMobilityMultiplierTable_;
82 Opm::Phase transport_phase_;
83};
84
85} // namespace Opm
86
87#endif
Definition: blackoilboundaryratevector.hh:37
Definition: blackoilfoamparams.hh:59
Scalar fm_oil
Definition: blackoilfoamparams.hh:66
Scalar fm_min
Definition: blackoilfoamparams.hh:60
Scalar ep_cap
Definition: blackoilfoamparams.hh:71
Scalar fl_oil
Definition: blackoilfoamparams.hh:67
Scalar fm_surf
Definition: blackoilfoamparams.hh:63
Scalar fm_dry
Definition: blackoilfoamparams.hh:73
Scalar ep_surf
Definition: blackoilfoamparams.hh:64
Scalar ep_oil
Definition: blackoilfoamparams.hh:68
Scalar fm_mob
Definition: blackoilfoamparams.hh:61
Scalar ep_dry
Definition: blackoilfoamparams.hh:74
Scalar fm_cap
Definition: blackoilfoamparams.hh:70
Struct holding the parameters for the BlackoilFoamModule class.
Definition: blackoilfoamparams.hh:40
std::vector< TabulatedFunction > gasMobilityMultiplierTable_
Definition: blackoilfoamparams.hh:81
Opm::Phase transport_phase_
Definition: blackoilfoamparams.hh:82
void setNumSatRegions(unsigned numRegions)
Specify the number of saturation regions.
Definition: blackoilfoamparams.hh:46
std::vector< bool > foamAllowDesorption_
Definition: blackoilfoamparams.hh:78
Tabulated1DFunction< Scalar > TabulatedFunction
Definition: blackoilfoamparams.hh:41
std::vector< TabulatedFunction > adsorbedFoamTable_
Definition: blackoilfoamparams.hh:80
std::vector< FoamCoefficients > foamCoefficients_
Definition: blackoilfoamparams.hh:79
std::vector< Scalar > foamRockDensity_
Definition: blackoilfoamparams.hh:77