BlackoilModelParameters.hpp
Go to the documentation of this file.
1 /*
2  Copyright 2015 SINTEF ICT, Applied Mathematics.
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 3 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 
20 #ifndef OPM_BLACKOILMODELPARAMETERS_HEADER_INCLUDED
21 #define OPM_BLACKOILMODELPARAMETERS_HEADER_INCLUDED
22 
23 namespace Opm
24 {
25 
26  namespace parameter { class ParameterGroup; }
27 
30  {
32  double dp_max_rel_;
34  double ds_max_;
36  double dr_max_rel_;
40  double tolerance_mb_;
45 
48 
51 
53  explicit BlackoilModelParameters( const parameter::ParameterGroup& param );
54 
57 
59  void reset();
60  };
61 
62 } // namespace Opm
63 
64 #endif // OPM_BLACKOILMODELPARAMETERS_HEADER_INCLUDED
double max_residual_allowed_
Absolute max limit for residuals.
Definition: BlackoilModelParameters.hpp:38
Definition: AdditionalObjectDeleter.hpp:22
double dr_max_rel_
Max relative change in gas-oil or oil-gas ratio in single iteration.
Definition: BlackoilModelParameters.hpp:36
Solver parameters for the BlackoilModel.
Definition: BlackoilModelParameters.hpp:29
double dp_max_rel_
Max relative change in pressure in single iteration.
Definition: BlackoilModelParameters.hpp:32
bool solve_welleq_initially_
Solve well equation initially.
Definition: BlackoilModelParameters.hpp:47
double ds_max_
Max absolute change in saturation in single iteration.
Definition: BlackoilModelParameters.hpp:34
bool update_equations_scaling_
Update scaling factors for mass balance equations.
Definition: BlackoilModelParameters.hpp:50
void reset()
Set default parameters.
double tolerance_cnv_
Local convergence tolerance (max of local saturation errors).
Definition: BlackoilModelParameters.hpp:42
double tolerance_wells_
Well convergence tolerance.
Definition: BlackoilModelParameters.hpp:44
double tolerance_mb_
Relative mass balance tolerance (total mass balance error).
Definition: BlackoilModelParameters.hpp:40
BlackoilModelParameters()
Construct with default parameters.