From 23c52f8c5068117b17384405c71ff3b6b9574620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20Gl=C3=A4ser?= <dennis.glaeser@iws.uni-stuttgart.de> Date: Tue, 10 Jul 2018 16:01:05 +0200 Subject: [PATCH] [ex-fluidsystem] do not use wetting/nonwettingphase as alias --- exercises/exercise-fluidsystem/2pproblem.hh | 8 ++++---- exercises/exercise-fluidsystem/README.md | 8 ++++---- exercises/solution/ex3/2pproblem.hh | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/exercises/exercise-fluidsystem/2pproblem.hh b/exercises/exercise-fluidsystem/2pproblem.hh index 9a9a4b5f..81dba41a 100644 --- a/exercises/exercise-fluidsystem/2pproblem.hh +++ b/exercises/exercise-fluidsystem/2pproblem.hh @@ -91,16 +91,16 @@ SET_PROP(ExerciseThreeTwoPTypeTag, FluidSystem) private: using Scalar = typename GET_PROP_TYPE(TypeTag, Scalar); using TabulatedH2O = Components::TabulatedComponent<Components::H2O<Scalar>>; - using WettingPhase = typename FluidSystems::OnePLiquid<Scalar, TabulatedH2O>; + using LiquidWater = typename FluidSystems::OnePLiquid<Scalar, TabulatedH2O>; /*! * Uncomment first line and comment second line for using the incompressible component * Uncomment second line and comment first line for using the compressible component */ - using NonWettingPhase = typename FluidSystems::OnePLiquid<Scalar, MyIncompressibleComponent<Scalar> >; - // using NonWettingPhase = typename FluidSystems::OnePLiquid<Scalar, MyCompressibleComponent<Scalar> >; + using LiquidMyComponent = typename FluidSystems::OnePLiquid<Scalar, MyIncompressibleComponent<Scalar> >; + // using LiquidMyComponent = typename FluidSystems::OnePLiquid<Scalar, MyCompressibleComponent<Scalar> >; public: - using type = typename FluidSystems::TwoPImmiscible<Scalar, WettingPhase, NonWettingPhase>; + using type = typename FluidSystems::TwoPImmiscible<Scalar, LiquidWater, LiquidMyComponent>; }; } diff --git a/exercises/exercise-fluidsystem/README.md b/exercises/exercise-fluidsystem/README.md index 612e88ec..2341e1cc 100644 --- a/exercises/exercise-fluidsystem/README.md +++ b/exercises/exercise-fluidsystem/README.md @@ -92,16 +92,16 @@ SET_PROP(ExerciseThreeTwoPTypeTag, FluidSystem) private: using Scalar = typename GET_PROP_TYPE(TypeTag, Scalar); using TabulatedH2O = Components::TabulatedComponent<Components::H2O<Scalar>>; - using WettingPhase = typename FluidSystems::OnePLiquid<Scalar, TabulatedH2O>; + using LiquidWater = typename FluidSystems::OnePLiquid<Scalar, TabulatedH2O>; /*! * Uncomment first line and comment second line for using the incompressible component * Uncomment second line and comment first line for using the compressible component */ - using NonWettingPhase = typename FluidSystems::OnePLiquid<Scalar, MyIncompressibleComponent<Scalar> >; - // using NonWettingPhase = typename FluidSystems::OnePLiquid<Scalar, MyCompressibleComponent<Scalar> >; + using LiquidMyComponent = typename FluidSystems::OnePLiquid<Scalar, MyIncompressibleComponent<Scalar> >; + // using LiquidMyComponent = typename FluidSystems::OnePLiquid<Scalar, MyCompressibleComponent<Scalar> >; public: - using type = typename FluidSystems::TwoPImmiscible<Scalar, WettingPhase, NonWettingPhase>; + using type = typename FluidSystems::TwoPImmiscible<Scalar, LiquidWater, LiquidMyComponent>; }; ``` diff --git a/exercises/solution/ex3/2pproblem.hh b/exercises/solution/ex3/2pproblem.hh index 14b77500..f5f14969 100644 --- a/exercises/solution/ex3/2pproblem.hh +++ b/exercises/solution/ex3/2pproblem.hh @@ -91,16 +91,16 @@ SET_PROP(ExerciseThreeTwoPTypeTag, FluidSystem) private: using Scalar = typename GET_PROP_TYPE(TypeTag, Scalar); using TabulatedH2O = Components::TabulatedComponent<Components::H2O<Scalar>>; - using WettingPhase = typename FluidSystems::OnePLiquid<Scalar, TabulatedH2O>; + using LiquidWater = typename FluidSystems::OnePLiquid<Scalar, TabulatedH2O>; /*! * Uncomment first line and comment second line for using the incompressible component * Uncomment second line and comment first line for using the compressible component */ - using NonWettingPhase = typename FluidSystems::OnePLiquid<Scalar, MyIncompressibleComponent<Scalar> >; - // using NonWettingPhase = typename FluidSystems::OnePLiquid<Scalar, MyCompressibleComponent<Scalar> >; + using LiquidMyComponent = typename FluidSystems::OnePLiquid<Scalar, MyIncompressibleComponent<Scalar> >; + // using LiquidMyComponent = typename FluidSystems::OnePLiquid<Scalar, MyCompressibleComponent<Scalar> >; public: - using type = typename FluidSystems::TwoPImmiscible<Scalar, WettingPhase, NonWettingPhase>; + using type = typename FluidSystems::TwoPImmiscible<Scalar, LiquidWater, LiquidMyComponent>; }; } -- GitLab