opm-simulators
Toggle main menu visibility
Loading...
Searching...
No Matches
blackoilnewtonmethodparams.hpp
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_NEWTON_METHOD_PARAMETERS_HH
29
#define EWOMS_BLACK_OIL_NEWTON_METHOD_PARAMETERS_HH
30
31
namespace
Opm::Parameters {
32
33
template
<
class
Scalar>
34
struct
DpMaxRel
{
static
constexpr
Scalar value = 0.3; };
35
36
template
<
class
Scalar>
37
struct
DsMax
{
static
constexpr
Scalar value = 0.2; };
38
39
template
<
class
Scalar>
40
struct
PriVarOscilationThreshold
{
static
constexpr
Scalar value = 1e-5; };
41
42
struct
ProjectSaturations
{
static
constexpr
bool
value =
false
; };
43
44
template
<
class
Scalar>
45
struct
MaxTemperatureChange
{
static
constexpr
Scalar value = 5.0; };
// Kelvin
46
47
template
<
class
Scalar>
48
struct
TemperatureMax
{
static
constexpr
Scalar value = 1e9; };
// Kelvin
49
50
template
<
class
Scalar>
51
struct
TemperatureMin
{
static
constexpr
Scalar value = 0.0; };
// Kelvin
52
53
template
<
class
Scalar>
54
struct
PressureMax
{
static
constexpr
Scalar value = 1e99; };
55
56
template
<
class
Scalar>
57
struct
PressureMin
{
static
constexpr
Scalar value = -1e99; };
58
59
template
<
class
Scalar>
60
struct
MaximumWaterSaturation
{
static
constexpr
Scalar value = 1.0; };
61
62
template
<
class
Scalar>
63
struct
WaterOnlyThreshold
{
static
constexpr
Scalar value = 1.0; };
64
65
}
// namespace Opm::Parameters
66
67
namespace
Opm
{
68
72
template
<
class
Scalar>
73
struct
BlackoilNewtonParams
74
{
76
static
void
registerParameters
();
77
79
void
read
();
80
81
Scalar priVarOscilationThreshold_;
82
Scalar waterSaturationMax_;
83
Scalar waterOnlyThreshold_;
84
85
Scalar dpMaxRel_;
86
Scalar dsMax_;
87
bool
projectSaturations_;
88
Scalar maxTempChange_;
89
Scalar tempMax_;
90
Scalar tempMin_;
91
Scalar pressMax_;
92
Scalar pressMin_;
93
};
94
95
}
// namespace Opm
96
97
#endif
Opm
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition
blackoilbioeffectsmodules.hh:43
Opm::BlackoilNewtonParams
Struct holding the parameters for BlackoilNewtonMethod.
Definition
blackoilnewtonmethodparams.hpp:74
Opm::BlackoilNewtonParams::registerParameters
static void registerParameters()
Registers the parameters in parameter system.
Definition
blackoilnewtonmethodparams.cpp:32
Opm::BlackoilNewtonParams::read
void read()
Reads the parameter values from the parameter system.
Definition
blackoilnewtonmethodparams.cpp:60
Opm::Parameters::DpMaxRel
Definition
blackoilnewtonmethodparams.hpp:34
Opm::Parameters::DsMax
Definition
blackoilnewtonmethodparams.hpp:37
Opm::Parameters::MaxTemperatureChange
Definition
blackoilnewtonmethodparams.hpp:45
Opm::Parameters::MaximumWaterSaturation
Definition
blackoilnewtonmethodparams.hpp:60
Opm::Parameters::PressureMax
Definition
blackoilnewtonmethodparams.hpp:54
Opm::Parameters::PressureMin
Definition
blackoilnewtonmethodparams.hpp:57
Opm::Parameters::PriVarOscilationThreshold
Definition
blackoilnewtonmethodparams.hpp:40
Opm::Parameters::ProjectSaturations
Definition
blackoilnewtonmethodparams.hpp:42
Opm::Parameters::TemperatureMax
Definition
blackoilnewtonmethodparams.hpp:48
Opm::Parameters::TemperatureMin
Definition
blackoilnewtonmethodparams.hpp:51
Opm::Parameters::WaterOnlyThreshold
Definition
blackoilnewtonmethodparams.hpp:63
opm
models
blackoil
blackoilnewtonmethodparams.hpp
Generated by
1.17.0