From 65f953cd8315011f347969bcb40ba73edb1c8ef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20Gl=C3=A4ser?= <dennis.glaeser@iws.uni-stuttgart.de> Date: Wed, 21 Nov 2018 13:08:17 +0100 Subject: [PATCH] [test][2p2c][mpfa] use static iv around interior vertices --- .../2p2c/implicit/injection/problem.hh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/test/porousmediumflow/2p2c/implicit/injection/problem.hh b/test/porousmediumflow/2p2c/implicit/injection/problem.hh index cf5466effb..9f94940af5 100644 --- a/test/porousmediumflow/2p2c/implicit/injection/problem.hh +++ b/test/porousmediumflow/2p2c/implicit/injection/problem.hh @@ -26,6 +26,7 @@ #include <dune/grid/yaspgrid.hh> +#include <dumux/discretization/cellcentered/mpfa/omethod/staticinteractionvolume.hh> #include <dumux/discretization/cellcentered/mpfa/properties.hh> #include <dumux/discretization/cellcentered/tpfa/properties.hh> #include <dumux/discretization/box/properties.hh> @@ -90,6 +91,24 @@ template<class TypeTag> struct EnableGridVolumeVariablesCache<TypeTag, TTag::Injection> { static constexpr bool value = ENABLECACHING; }; template<class TypeTag> struct EnableGridFluxVariablesCache<TypeTag, TTag::Injection> { static constexpr bool value = ENABLECACHING; }; + +// use the static interaction volume around interior vertices in the mpfa test +template<class TypeTag> +struct PrimaryInteractionVolume<TypeTag, TTag::InjectionCCMpfa> +{ +private: + using Scalar = GetPropType<TypeTag, Properties::Scalar>; + using NodalIndexSet = GetPropType<TypeTag, Properties::DualGridNodalIndexSet>; + + // structured two-d grid + static constexpr int numIvScvs = 4; + static constexpr int numIvScvfs = 4; + + // use the default traits + using Traits = CCMpfaODefaultStaticInteractionVolumeTraits< NodalIndexSet, Scalar, numIvScvs, numIvScvfs >; +public: + using type = CCMpfaOStaticInteractionVolume< Traits >; +}; } // end namespace Properties /*! -- GitLab