diff --git a/exercises/exercise-coupling-ff-pm/interface/ex_interface_coupling_ff-pm.cc b/exercises/exercise-coupling-ff-pm/interface/ex_interface_coupling_ff-pm.cc index 53c927f67e80d2408004db3e748fbb3e1dc6ad85..f1d79baf1e79842c1570c85e6c993af144186760 100644 --- a/exercises/exercise-coupling-ff-pm/interface/ex_interface_coupling_ff-pm.cc +++ b/exercises/exercise-coupling-ff-pm/interface/ex_interface_coupling_ff-pm.cc @@ -53,16 +53,16 @@ namespace Dumux { namespace Properties { template<class TypeTag> -struct CouplingManager<TypeTag, TTag::StokesOnePTypeTag> +struct CouplingManager<TypeTag, TTag::StokesOneP> { - using Traits = StaggeredMultiDomainTraits<TypeTag, TypeTag, Properties::TTag::DarcyOnePTypeTag>; + using Traits = StaggeredMultiDomainTraits<TypeTag, TypeTag, Properties::TTag::DarcyOneP>; using type = Dumux::StokesDarcyCouplingManager<Traits>; }; template<class TypeTag> -struct CouplingManager<TypeTag, TTag::DarcyOnePTypeTag> +struct CouplingManager<TypeTag, TTag::DarcyOneP> { - using Traits = StaggeredMultiDomainTraits<Properties::TTag::StokesOnePTypeTag, Properties::TTag::StokesOnePTypeTag, TypeTag>; + using Traits = StaggeredMultiDomainTraits<Properties::TTag::StokesOneP, Properties::TTag::StokesOneP, TypeTag>; using type = Dumux::StokesDarcyCouplingManager<Traits>; }; @@ -84,8 +84,8 @@ int main(int argc, char** argv) try Parameters::init(argc, argv); // Define the sub problem type tags - using StokesTypeTag = Properties::TTag::StokesOnePTypeTag; - using DarcyTypeTag = Properties::TTag::DarcyOnePTypeTag; + using StokesTypeTag = Properties::TTag::StokesOneP; + using DarcyTypeTag = Properties::TTag::DarcyOneP; diff --git a/exercises/exercise-coupling-ff-pm/interface/ex_interface_ffproblem.hh b/exercises/exercise-coupling-ff-pm/interface/ex_interface_ffproblem.hh index c5649a77e27284fe946d8821ca4c526e4f4bf17c..ed55f8b51b6bf4ec021cb87e35755b44ae4dfff9 100644 --- a/exercises/exercise-coupling-ff-pm/interface/ex_interface_ffproblem.hh +++ b/exercises/exercise-coupling-ff-pm/interface/ex_interface_ffproblem.hh @@ -44,12 +44,12 @@ namespace Properties { // Create new type tags namespace TTag { -struct StokesOnePTypeTag { using InheritsFrom = std::tuple<NavierStokes, StaggeredFreeFlowModel>; }; +struct StokesOneP { using InheritsFrom = std::tuple<NavierStokes, StaggeredFreeFlowModel>; }; } // end namespace TTag // the fluid system template<class TypeTag> -struct FluidSystem<TypeTag, TTag::StokesOnePTypeTag> +struct FluidSystem<TypeTag, TTag::StokesOneP> { using Scalar = GetPropType<TypeTag, Properties::Scalar>; using type = FluidSystems::OnePLiquid<Scalar, Dumux::Components::SimpleH2O<Scalar> > ; @@ -57,7 +57,7 @@ struct FluidSystem<TypeTag, TTag::StokesOnePTypeTag> // Set the grid type template<class TypeTag> -struct Grid<TypeTag, TTag::StokesOnePTypeTag> +struct Grid<TypeTag, TTag::StokesOneP> { static constexpr auto dim = 2; using Scalar = GetPropType<TypeTag, Properties::Scalar>; @@ -73,14 +73,14 @@ struct Grid<TypeTag, TTag::StokesOnePTypeTag> // Set the problem property template<class TypeTag> -struct Problem<TypeTag, TTag::StokesOnePTypeTag> { using type = Dumux::StokesSubProblem<TypeTag> ; }; +struct Problem<TypeTag, TTag::StokesOneP> { using type = Dumux::StokesSubProblem<TypeTag> ; }; template<class TypeTag> -struct EnableFVGridGeometryCache<TypeTag, TTag::StokesOnePTypeTag> { static constexpr bool value = true; }; +struct EnableFVGridGeometryCache<TypeTag, TTag::StokesOneP> { static constexpr bool value = true; }; template<class TypeTag> -struct EnableGridFluxVariablesCache<TypeTag, TTag::StokesOnePTypeTag> { static constexpr bool value = true; }; +struct EnableGridFluxVariablesCache<TypeTag, TTag::StokesOneP> { static constexpr bool value = true; }; template<class TypeTag> -struct EnableGridVolumeVariablesCache<TypeTag, TTag::StokesOnePTypeTag> { static constexpr bool value = true; }; +struct EnableGridVolumeVariablesCache<TypeTag, TTag::StokesOneP> { static constexpr bool value = true; }; } /*! diff --git a/exercises/exercise-coupling-ff-pm/interface/ex_interface_pmproblem.hh b/exercises/exercise-coupling-ff-pm/interface/ex_interface_pmproblem.hh index e447100ca1c7e3d2852acf622f1b3570ab0772a7..2fbb48231d6aa8be8f7dfe8497767727e3806c0e 100644 --- a/exercises/exercise-coupling-ff-pm/interface/ex_interface_pmproblem.hh +++ b/exercises/exercise-coupling-ff-pm/interface/ex_interface_pmproblem.hh @@ -48,16 +48,16 @@ namespace Properties { // Create new type tags namespace TTag { -struct DarcyOnePTypeTag { using InheritsFrom = std::tuple<OneP, CCTpfaModel>; }; +struct DarcyOneP { using InheritsFrom = std::tuple<OneP, CCTpfaModel>; }; } // end namespace TTag // Set the problem property template<class TypeTag> -struct Problem<TypeTag, TTag::DarcyOnePTypeTag> { using type = Dumux::DarcySubProblem<TypeTag>; }; +struct Problem<TypeTag, TTag::DarcyOneP> { using type = Dumux::DarcySubProblem<TypeTag>; }; // the fluid system template<class TypeTag> -struct FluidSystem<TypeTag, TTag::DarcyOnePTypeTag> +struct FluidSystem<TypeTag, TTag::DarcyOneP> { using Scalar = GetPropType<TypeTag, Properties::Scalar>; using type = FluidSystems::OnePLiquid<Scalar, Dumux::Components::SimpleH2O<Scalar> > ; @@ -65,7 +65,7 @@ struct FluidSystem<TypeTag, TTag::DarcyOnePTypeTag> // Set the grid type template<class TypeTag> -struct Grid<TypeTag, TTag::DarcyOnePTypeTag> +struct Grid<TypeTag, TTag::DarcyOneP> { static constexpr auto dim = 2; using Scalar = GetPropType<TypeTag, Properties::Scalar>; @@ -80,7 +80,7 @@ struct Grid<TypeTag, TTag::DarcyOnePTypeTag> }; template<class TypeTag> -struct SpatialParams<TypeTag, TTag::DarcyOnePTypeTag> { using type = OnePSpatialParams<TypeTag>; }; +struct SpatialParams<TypeTag, TTag::DarcyOneP> { using type = OnePSpatialParams<TypeTag>; }; } /*! diff --git a/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_coupling_ff-pm.cc b/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_coupling_ff-pm.cc index 4f3bc841f1402a4bfb27302854baa9bc6e64cbaf..0d35daec020679e40d5e42d1d41526a00d10fabc 100644 --- a/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_coupling_ff-pm.cc +++ b/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_coupling_ff-pm.cc @@ -52,15 +52,15 @@ namespace Dumux { namespace Properties { -SET_PROP(StokesOnePTypeTag, CouplingManager) +SET_PROP(StokesOneP, CouplingManager) { - using Traits = StaggeredMultiDomainTraits<TypeTag, TypeTag, TTAG(DarcyOnePTypeTag)>; + using Traits = StaggeredMultiDomainTraits<TypeTag, TypeTag, TTAG(DarcyOneP)>; using type = Dumux::StokesDarcyCouplingManager<Traits>; }; -SET_PROP(DarcyOnePTypeTag, CouplingManager) +SET_PROP(DarcyOneP, CouplingManager) { - using Traits = StaggeredMultiDomainTraits<TTAG(StokesOnePTypeTag), TTAG(StokesOnePTypeTag), TypeTag>; + using Traits = StaggeredMultiDomainTraits<TTAG(StokesOneP), TTAG(StokesOneP), TypeTag>; using type = Dumux::StokesDarcyCouplingManager<Traits>; }; @@ -82,8 +82,8 @@ int main(int argc, char** argv) try Parameters::init(argc, argv); // Define the sub problem type tags - using StokesTypeTag = TTAG(StokesOnePTypeTag); - using DarcyTypeTag = TTAG(DarcyOnePTypeTag); + using StokesTypeTag = TTAG(StokesOneP); + using DarcyTypeTag = TTAG(DarcyOneP); #if EXNUMBER < 3 // try to create a grid (from the given grid file or the input file) diff --git a/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_ffproblem.hh b/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_ffproblem.hh index c0dc45575729802b20b101c00970934afb41e5c4..38ff20ac9b44d26adb7dca4148b38eb944c98194 100644 --- a/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_ffproblem.hh +++ b/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_ffproblem.hh @@ -43,17 +43,17 @@ class StokesSubProblem; namespace Properties { -NEW_TYPE_TAG(StokesOnePTypeTag, INHERITS_FROM(StaggeredFreeFlowModel, NavierStokes)); +NEW_TYPE_TAG(StokesOneP, INHERITS_FROM(StaggeredFreeFlowModel, NavierStokes)); // the fluid system -SET_PROP(StokesOnePTypeTag, FluidSystem) +SET_PROP(StokesOneP, FluidSystem) { using Scalar = typename GET_PROP_TYPE(TypeTag, Scalar); using type = FluidSystems::OnePLiquid<Scalar, Dumux::Components::SimpleH2O<Scalar> > ; }; // Set the grid type -SET_PROP(StokesOnePTypeTag, Grid) +SET_PROP(StokesOneP, Grid) { static constexpr auto dim = 2; using Scalar = typename GET_PROP_TYPE(TypeTag, Scalar); @@ -68,11 +68,11 @@ SET_PROP(StokesOnePTypeTag, Grid) }; // Set the problem property -SET_TYPE_PROP(StokesOnePTypeTag, Problem, Dumux::StokesSubProblem<TypeTag> ); +SET_TYPE_PROP(StokesOneP, Problem, Dumux::StokesSubProblem<TypeTag> ); -SET_BOOL_PROP(StokesOnePTypeTag, EnableFVGridGeometryCache, true); -SET_BOOL_PROP(StokesOnePTypeTag, EnableGridFluxVariablesCache, true); -SET_BOOL_PROP(StokesOnePTypeTag, EnableGridVolumeVariablesCache, true); +SET_BOOL_PROP(StokesOneP, EnableFVGridGeometryCache, true); +SET_BOOL_PROP(StokesOneP, EnableGridFluxVariablesCache, true); +SET_BOOL_PROP(StokesOneP, EnableGridVolumeVariablesCache, true); } diff --git a/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_pmproblem.hh b/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_pmproblem.hh index 3549ff03521c727f481ccf32af16817f2fd01e4b..910df4d5128505f1bfeec263afb639c3ee5c0e7f 100644 --- a/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_pmproblem.hh +++ b/exercises/solution/exercise-coupling-ff-pm/interface/ex_interface_pmproblem.hh @@ -47,20 +47,20 @@ class DarcySubProblem; namespace Properties { -NEW_TYPE_TAG(DarcyOnePTypeTag, INHERITS_FROM(CCTpfaModel, OneP)); +NEW_TYPE_TAG(DarcyOneP, INHERITS_FROM(CCTpfaModel, OneP)); // Set the problem property -SET_TYPE_PROP(DarcyOnePTypeTag, Problem, Dumux::DarcySubProblem<TypeTag>); +SET_TYPE_PROP(DarcyOneP, Problem, Dumux::DarcySubProblem<TypeTag>); // the fluid system -SET_PROP(DarcyOnePTypeTag, FluidSystem) +SET_PROP(DarcyOneP, FluidSystem) { using Scalar = typename GET_PROP_TYPE(TypeTag, Scalar); using type = FluidSystems::OnePLiquid<Scalar, Dumux::Components::SimpleH2O<Scalar> > ; }; // Set the grid type -SET_PROP(DarcyOnePTypeTag, Grid) +SET_PROP(DarcyOneP, Grid) { static constexpr auto dim = 2; using Scalar = typename GET_PROP_TYPE(TypeTag, Scalar); @@ -74,7 +74,7 @@ SET_PROP(DarcyOnePTypeTag, Grid) #endif }; -SET_TYPE_PROP(DarcyOnePTypeTag, SpatialParams, OnePSpatialParams<TypeTag>); +SET_TYPE_PROP(DarcyOneP, SpatialParams, OnePSpatialParams<TypeTag>); } /*!