/* Copyright 2020, NORCE AS This file is part of the Open Porous Media project (OPM). OPM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OPM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OPM. If not, see . */ #include "config.h" #include "FlowExpNewtonMethod.hpp" #include "flowexp.hpp" #include #include #include #include "BlackOilIntensiveQuantitiesGlobalIndex.hpp" #include "FIBlackOilModelNoCache.hpp" namespace Opm::Properties { namespace TTag { struct FlowExpProblemBlackOil { using InheritsFrom = std::tuple; }; } template struct Model { using type = FIBlackOilModelNoCache; }; template struct IntensiveQuantities { using type = BlackOilIntensiveQuantitiesGlobalIndex; }; // Set the problem class template struct Problem { using type = FlowExpProblem; }; template struct ThreadsPerProcess { static constexpr int value = 1; }; template struct ContinueOnConvergenceError { static constexpr bool value = false; }; template struct EclNewtonSumTolerance { using type = GetPropType; static constexpr type value = 1e-5; }; // the default for the allowed volumetric error for oil per second template struct NewtonTolerance { using type = GetPropType; static constexpr type value = 1e-2; }; // set fraction of the pore volume where the volumetric residual may be violated during // strict Newton iterations template struct EclNewtonRelaxedVolumeFraction { using type = GetPropType; static constexpr type value = 0.0; }; template struct EclNewtonRelaxedTolerance { using type = GetPropType; static constexpr type value = 10*getPropValue(); }; template struct EnableDiffusion { static constexpr bool value = false; }; template struct EnableDisgasInWater { static constexpr bool value = false; }; template struct Simulator { using type = Opm::Simulator; }; } int main(int argc, char** argv) { using TypeTag = Opm::Properties::TTag::FlowExpProblemBlackOil; Opm::registerEclTimeSteppingParameters(); return Opm::start(argc, argv); }