diff --git a/dumux/discretization/cellcentered/tpfa/fourierslawnonequilibrium.hh b/dumux/discretization/cellcentered/tpfa/fourierslawnonequilibrium.hh index 1e889b60005e4dca6cfcdfec42d72ea8ded5ef32..97e47eec01e4c44f388663736c6e408c2698fe65 100644 --- a/dumux/discretization/cellcentered/tpfa/fourierslawnonequilibrium.hh +++ b/dumux/discretization/cellcentered/tpfa/fourierslawnonequilibrium.hh @@ -43,7 +43,7 @@ class FouriersLawNonEquilibriumImplementation; template <class TypeTag> class FouriersLawNonEquilibriumImplementation<TypeTag, DiscretizationMethod::cctpfa> { - using Implementation = FouriersLawImplementation<TypeTag, DiscretizationMethod::cctpfa>; + using Implementation = FouriersLawNonEquilibriumImplementation<TypeTag, DiscretizationMethod::cctpfa>; using Scalar = GetPropType<TypeTag, Properties::Scalar>; using Problem = GetPropType<TypeTag, Properties::Problem>; using FVElementGeometry = typename GetPropType<TypeTag, Properties::FVGridGeometry>::LocalView; diff --git a/test/porousmediumflow/mpnc/implicit/thermalnonequilibrium/problem.hh b/test/porousmediumflow/mpnc/implicit/thermalnonequilibrium/problem.hh index 438bbe7184d77f318560b85e8666520192680612..596bd1b6268af62e88b72ef5e33dfbf69db0b623 100644 --- a/test/porousmediumflow/mpnc/implicit/thermalnonequilibrium/problem.hh +++ b/test/porousmediumflow/mpnc/implicit/thermalnonequilibrium/problem.hh @@ -73,6 +73,16 @@ template<class TypeTag> struct Problem<TypeTag, TTag::CombustionOneComponent> { using type = CombustionProblemOneComponent<TypeTag>; }; +// Set the spatial parameters +template<class TypeTag> +struct SpatialParams<TypeTag, TTag::CombustionOneComponent> +{ + using FVGridGeometry = GetPropType<TypeTag, FVGridGeometry>; + using Scalar = GetPropType<TypeTag, Properties::Scalar>; + using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>; + using type = CombustionSpatialParams<FVGridGeometry, Scalar, FluidSystem>; +}; + template<class TypeTag> struct FluidSystem<TypeTag, TTag::CombustionOneComponent> { using type = FluidSystems::CombustionFluidsystem<GetPropType<TypeTag, Properties::Scalar>>; }; @@ -144,11 +154,6 @@ private: public: using type = CompositionalSolidState<Scalar, SolidSystem>; }; - -// Set the spatial parameters -template<class TypeTag> -struct SpatialParams<TypeTag, TTag::CombustionOneComponent> { using type = CombustionSpatialParams<TypeTag>; }; - } /*! * \ingroup MPNCTests diff --git a/test/porousmediumflow/mpnc/implicit/thermalnonequilibrium/spatialparams.hh b/test/porousmediumflow/mpnc/implicit/thermalnonequilibrium/spatialparams.hh index cbfc800eebd5a6f5c6a2ba92dc4856e43ee4d8b3..dc9276202fa0cb387834a668117b91bc258cf25f 100644 --- a/test/porousmediumflow/mpnc/implicit/thermalnonequilibrium/spatialparams.hh +++ b/test/porousmediumflow/mpnc/implicit/thermalnonequilibrium/spatialparams.hh @@ -40,26 +40,23 @@ namespace Dumux { * \brief Definition of the spatial parameters for the one component combustion problem * */ -template<class TypeTag> +template<class FVGridGeometry, class Scalar, class FluidSystem> class CombustionSpatialParams -: public FVNonEquilibriumSpatialParams<GetPropType<TypeTag, Properties::FVGridGeometry>, - GetPropType<TypeTag, Properties::Scalar>, - CombustionSpatialParams<TypeTag>> +: public FVNonEquilibriumSpatialParams<FVGridGeometry, Scalar, + CombustionSpatialParams<FVGridGeometry, Scalar, FluidSystem>> { - using Scalar = GetPropType<TypeTag, Properties::Scalar>; - using FVGridGeometry = GetPropType<TypeTag, Properties::FVGridGeometry>; using GridView = typename FVGridGeometry::GridView; using FVElementGeometry = typename FVGridGeometry::LocalView; using SubControlVolume = typename FVElementGeometry::SubControlVolume; using Element = typename GridView::template Codim<0>::Entity; - using ParentType = FVNonEquilibriumSpatialParams<FVGridGeometry, Scalar, CombustionSpatialParams<TypeTag>>; + using ThisType = CombustionSpatialParams<FVGridGeometry, Scalar, FluidSystem>; + using ParentType = FVNonEquilibriumSpatialParams<FVGridGeometry, Scalar, ThisType>; enum {dimWorld = GridView::dimensionworld}; using GlobalPosition = typename SubControlVolume::GlobalPosition; using EffectiveLaw = HeatPipeLaw<Scalar>; - using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>; enum {wPhaseIdx = FluidSystem::wPhaseIdx}; public: