Skip to content
Snippets Groups Projects
ex1e_tutorialproblem_implicit.diff 2.19 KiB
Newer Older
diff --git a/tutorial/tutorialproblem_implicit.hh b/tutorial/tutorialproblem_implicit.hh
index c2d5b13..b3a7347 100644
--- a/tutorial/tutorialproblem_implicit.hh
+++ b/tutorial/tutorialproblem_implicit.hh
@@ -33,9 +33,8 @@
Johannes Hommel's avatar
Johannes Hommel committed
 // Spatially dependent parameters
 #include "tutorialspatialparams_implicit.hh"
 
-// The components that are used
-#include <dumux/material/components/h2o.hh>
-#include <dumux/material/components/lnapl.hh>
Johannes Hommel's avatar
Johannes Hommel committed
+// The fluidsystem
+#include <dumux/material/fluidsystems/h2oair.hh>
 
 namespace Dumux{
 // Forward declaration of the problem class
@@ -59,21 +58,9 @@ SET_TYPE_PROP(TutorialProblemImplicit, Grid, Dune::UGGrid<2>);
 SET_TYPE_PROP(TutorialProblemImplicit, Grid, Dune::YaspGrid<2>);
 #endif // HAVE_DUNE_ALUGRID
 
-// Set the wetting phase
Johannes Hommel's avatar
Johannes Hommel committed
-SET_PROP(TutorialProblemImplicit, WettingPhase) /*@\label{tutorial-implicit:2p-system-start}@*/
-{
-private: typedef typename GET_PROP_TYPE(TypeTag, Scalar) Scalar;
-public: typedef Dumux::FluidSystems::LiquidPhase<Scalar, Dumux::H2O<Scalar> > type; /*@\label{tutorial-implicit:wettingPhase}@*/
Johannes Hommel's avatar
Johannes Hommel committed
-};
Johannes Hommel's avatar
Johannes Hommel committed
-// Set the non-wetting phase
-SET_PROP(TutorialProblemImplicit, NonwettingPhase)
-{
-private: typedef typename GET_PROP_TYPE(TypeTag, Scalar) Scalar;
-public: typedef Dumux::FluidSystems::LiquidPhase<Scalar, Dumux::LNAPL<Scalar> > type; /*@\label{tutorial-implicit:nonwettingPhase}@*/
Johannes Hommel's avatar
Johannes Hommel committed
-}; /*@\label{tutorial-implicit:2p-system-end}@*/
+// Set the fluidsystem
Johannes Hommel's avatar
Johannes Hommel committed
+SET_TYPE_PROP(TutorialProblemImplicit, FluidSystem, Dumux::FluidSystems::H2OAir<typename GET_PROP_TYPE(TypeTag, Scalar)>);/*@\label{tutorial-implicit:set-fluidsystem}@*/
 
-SET_TYPE_PROP(TutorialProblemImplicit, FluidSystem, Dumux::TwoPImmiscibleFluidSystem<TypeTag>);/*@\label{tutorial-implicit:set-fluidsystem}@*/
Johannes Hommel's avatar
Johannes Hommel committed
 // Disable gravity
 SET_BOOL_PROP(TutorialProblemImplicit, ProblemEnableGravity, false); /*@\label{tutorial-implicit:gravity}@*/
 }
@@ -117,6 +104,7 @@ public:
Johannes Hommel's avatar
Johannes Hommel committed
 #if !(HAVE_DUNE_ALUGRID || HAVE_UG)
       std::cout << "If you want to use simplices instead of cubes, install and use dune-ALUGrid or UGGrid." << std::endl;
 #endif // !(HAVE_DUNE_ALUGRID || HAVE_UG)
+      GET_PROP_TYPE(TypeTag, FluidSystem)::init();
     }
 
     //! Specifies the problem name. This is used as a prefix for files