// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- // vi: set et ts=4 sw=4 sts=4: /* 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 2 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 . Consult the COPYING file in the top-level source directory of this module for the precise wording of the license and the list of copyright holders. */ /*! * \file * * \copydoc Opm::FlowProblem */ #ifndef OPM_FLOW_PROBLEM_PROPERTIES_HPP #define OPM_FLOW_PROBLEM_PROPERTIES_HPP #include #include #include #include #include #include #include #include #include #include #include #include #include #if HAVE_DAMARIS #include #endif #include namespace Opm { template class FlowProblem; } namespace Opm::Properties { namespace TTag { struct FlowBaseProblem { using InheritsFrom = std::tuple; }; } // The class which deals with ECL aquifers template struct AquiferModel { using type = UndefinedProperty; }; // Specify whether API tracking should be enabled (replaces PVT regions). // TODO: This is not yet implemented template struct EnableApiTracking { using type = UndefinedProperty; }; // Enable the additional checks even if compiled in debug mode (i.e., with the NDEBUG // macro undefined). Next to a slightly better performance, this also eliminates some // print statements in debug mode. template struct EnableDebuggingChecks { using type = Properties::UndefinedProperty; }; // if thermal flux boundaries are enabled an effort is made to preserve the initial // thermal gradient specified via the TEMPVD keyword template struct EnableThermalFluxBoundaries { using type = UndefinedProperty; }; // The class which deals with wells template struct WellModel { using type = UndefinedProperty; }; // Set the problem property template struct Problem { using type = FlowProblem; }; template struct Model { using type = FIBlackOilModel; }; // Select the element centered finite volume method as spatial discretization template struct SpatialDiscretizationSplice { using type = TTag::EcfvDiscretization; }; // use automatic differentiation to linearize the system of PDEs template struct LocalLinearizerSplice { using type = TTag::AutoDiffLocalLinearizer; }; template struct BaseDiscretizationType { using type = FvBaseDiscretizationNoAdapt; }; template struct DiscreteFunction { using BaseDiscretization = FvBaseDiscretization; using type = typename BaseDiscretization::BlockVectorWrapper; }; template struct GridView { using type = typename GetPropType::LeafGridView; }; // Set the material law for fluid fluxes template struct MaterialLaw { private: using Scalar = GetPropType; using FluidSystem = GetPropType; using Traits = ThreePhaseMaterialTraits; public: using EclMaterialLawManager = ::Opm::EclMaterialLawManager; using type = typename EclMaterialLawManager::MaterialLaw; }; // Set the material law for energy storage in rock template struct SolidEnergyLaw { private: using Scalar = GetPropType; using FluidSystem = GetPropType; public: using EclThermalLawManager = ::Opm::EclThermalLawManager; using type = typename EclThermalLawManager::SolidEnergyLaw; }; // Set the material law for thermal conduction template struct ThermalConductionLaw { private: using Scalar = GetPropType; using FluidSystem = GetPropType; public: using EclThermalLawManager = ::Opm::EclThermalLawManager; using type = typename EclThermalLawManager::ThermalConductionLaw; }; // use a slightly faster stencil class because it does not need the normals and // the integration points of intersections template struct Stencil { private: using Scalar = GetPropType; using GridView = GetPropType; public: using type = EcfvStencil; }; // by default use the dummy aquifer "model" template struct AquiferModel { using type = BaseAquiferModel; }; // Enable diffusion template struct EnableDiffusion { static constexpr bool value = true; }; // Disable dispersion template struct EnableDispersion { static constexpr bool value = false; }; // Enable Convective Mixing template struct EnableConvectiveMixing { static constexpr bool value = true; }; // disable API tracking template struct EnableApiTracking { static constexpr bool value = false; }; // Use the "velocity module" which uses the Eclipse "NEWTRAN" transmissibilities template struct FluxModule { using type = NewTranFluxModule; }; // Use the dummy gradient calculator in order not to do unnecessary work. template struct GradientCalculator { using type = DummyGradientCalculator; }; // store temperature (but do not conserve energy, as long as EnableEnergy is false) template struct EnableTemperature { static constexpr bool value = true; }; template struct EnableMech { static constexpr bool value = false; }; // disable all extensions supported by black oil model. this should not really be // necessary but it makes things a bit more explicit template struct EnablePolymer { static constexpr bool value = false; }; template struct EnableSolvent { static constexpr bool value = false; }; template struct EnableEnergy { static constexpr bool value = false; }; template struct EnableFoam { static constexpr bool value = false; }; template struct EnableExtbo { static constexpr bool value = false; }; template struct EnableMICP { static constexpr bool value = false; }; // disable thermal flux boundaries by default template struct EnableThermalFluxBoundaries { static constexpr bool value = false; }; // By default, simulators derived from the FlowBaseProblem are production simulators, // i.e., experimental features must be explicitly enabled at compile time template struct EnableExperiments { static constexpr bool value = false; }; // By default, we enable the debugging checks if we're compiled in debug mode template struct EnableDebuggingChecks { static constexpr bool value = true; }; } // namespace Opm::Properties #endif // OPM_FLOW_PROBLEM_PROPERTIES_HPP