add tpfa as lineariser for gasoil_energy (with diffusion) and gasoildiffusion

This commit is contained in:
hnil authored and Kai Bao committed 2023-08-31 15:26:31 +02:00
1 parent 3315027bcc
commit 8afbd49322
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -68,7 +68,7 @@ template<class TypeTag>
struct LocalResidual<TypeTag, TTag::EclFlowGasOilEnergyProblem> { using type = BlackOilLocalResidualTPFA<TypeTag>; };
template<class TypeTag>
struct EnableDiffusion<TypeTag, TTag::EclFlowGasOilEnergyProblem> { static constexpr bool value = false; };
struct EnableDiffusion<TypeTag, TTag::EclFlowGasOilEnergyProblem> { static constexpr bool value = true; };
}}
+8
View File
@@ -24,6 +24,8 @@
#include <opm/grid/CpGrid.hpp>
#include <opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.hpp>
#include <opm/simulators/flow/Main.hpp>
#include <opm/models/blackoil/blackoillocalresidualtpfa.hh>
#include <opm/models/discretization/common/tpfalinearizer.hh>
namespace Opm {
namespace Properties {
@@ -33,6 +35,12 @@ struct EclFlowGasOilDiffuseProblem {
};
}
template<class TypeTag>
struct Linearizer<TypeTag, TTag::EclFlowGasOilDiffuseProblem> { using type = TpfaLinearizer<TypeTag>; };
template<class TypeTag>
struct LocalResidual<TypeTag, TTag::EclFlowGasOilDiffuseProblem> { using type = BlackOilLocalResidualTPFA<TypeTag>; };
template<class TypeTag>
struct EnableDiffusion<TypeTag, TTag::EclFlowGasOilDiffuseProblem> { static constexpr bool value = true; };