00001 /* 00002 Copyright 2015 SINTEF ICT, Applied Mathematics. 00003 00004 This file is part of the Open Porous Media project (OPM). 00005 00006 OPM is free software: you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation, either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 OPM is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with OPM. If not, see <http://www.gnu.org/licenses/>. 00018 */ 00019 00020 #ifndef OPM_BLACKOILMODELPARAMETERS_HEADER_INCLUDED 00021 #define OPM_BLACKOILMODELPARAMETERS_HEADER_INCLUDED 00022 00023 #include <string> 00024 00025 namespace Opm 00026 { 00027 00028 class ParameterGroup; 00029 00031 struct BlackoilModelParameters 00032 { 00034 double dp_max_rel_; 00036 double ds_max_; 00038 double dr_max_rel_; 00040 double dbhp_max_rel_; 00042 double dwell_fraction_max_; 00044 double max_residual_allowed_; 00046 double tolerance_mb_; 00048 double tolerance_cnv_; 00050 double tolerance_wells_; 00052 // TODO: it might need to distinguish between rate control and pressure control later 00053 double tolerance_well_control_; 00055 double tolerance_pressure_ms_wells_; 00057 double max_pressure_change_ms_wells_; 00058 00060 bool use_inner_iterations_ms_wells_; 00061 00063 int max_inner_iter_ms_wells_; 00064 00066 int max_welleq_iter_; 00067 00070 double maxSinglePrecisionTimeStep_; 00071 00073 int max_strict_iter_; 00074 00076 bool solve_welleq_initially_; 00077 00079 bool update_equations_scaling_; 00080 00082 bool use_update_stabilization_; 00083 00089 bool use_multisegment_well_; 00090 00092 std::string deck_file_name_; 00093 00095 explicit BlackoilModelParameters( const ParameterGroup& param ); 00096 00098 BlackoilModelParameters(); 00099 00101 void reset(); 00102 }; 00103 00104 } // namespace Opm 00105 00106 #endif // OPM_BLACKOILMODELPARAMETERS_HEADER_INCLUDED