From 89114b3941b3f3eb7aeae1b24bd5088aa79d4f40 Mon Sep 17 00:00:00 2001
From: Andreas Lauser <and@poware.org>
Date: Tue, 1 Nov 2011 12:17:20 +0000
Subject: [PATCH] NonwettingPhase -> NonWettingPhase

also call fluidState_.pressure() instead of
fluidState_.phasePressure() in the TwoPVolumeVariables.

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@6811 2fb0f335-1f38-0410-981e-8018bf24f1b0
---
 appl/lecture/msm/1p2cvs2p/lensproblem2p.hh     |  2 +-
 .../buckleyleverett/buckleyleverettproblem.hh  |  2 +-
 appl/lecture/msm/mcwhorter/mcwhorterproblem.hh |  2 +-
 dumux/boxmodels/2p/2pvolumevariables.hh        |  2 +-
 .../richards/richardspropertydefaults.hh       |  4 ++--
 dumux/decoupled/2p/2pproperties.hh             |  2 +-
 dumux/material/fluidsystems/2p_system.hh       | 18 +++++++++---------
 test/boxmodels/2pni/injectionproblem2pni.hh    |  2 +-
 .../generalproblem/generallensproblem.hh       |  2 +-
 test/decoupled/1p/test_diffusion_problem.hh    |  2 +-
 test/decoupled/2p/test_impes_problem.hh        |  2 +-
 test/decoupled/2p/test_transport_problem.hh    |  2 +-
 .../2padaptive/test_impes_adaptive_problem.hh  |  2 +-
 tutorial/tutorialproblem_coupled.hh            |  2 +-
 tutorial/tutorialproblem_decoupled.hh          |  2 +-
 15 files changed, 24 insertions(+), 24 deletions(-)

diff --git a/appl/lecture/msm/1p2cvs2p/lensproblem2p.hh b/appl/lecture/msm/1p2cvs2p/lensproblem2p.hh
index 8b108f2de9..16a381d9e4 100644
--- a/appl/lecture/msm/1p2cvs2p/lensproblem2p.hh
+++ b/appl/lecture/msm/1p2cvs2p/lensproblem2p.hh
@@ -77,7 +77,7 @@ public:
 };
 
 // Set the non-wetting phase
-SET_PROP(LensProblem2p, NonwettingPhase)
+SET_PROP(LensProblem2p, NonWettingPhase)
 {
 private:
     typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
diff --git a/appl/lecture/msm/buckleyleverett/buckleyleverettproblem.hh b/appl/lecture/msm/buckleyleverett/buckleyleverettproblem.hh
index 48c927a2e7..cd5a69edae 100644
--- a/appl/lecture/msm/buckleyleverett/buckleyleverettproblem.hh
+++ b/appl/lecture/msm/buckleyleverett/buckleyleverettproblem.hh
@@ -85,7 +85,7 @@ public:
 };
 
 // Set the non-wetting phase
-SET_PROP(BuckleyLeverettProblem, NonwettingPhase)
+SET_PROP(BuckleyLeverettProblem, NonWettingPhase)
 {
 private:
     typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
diff --git a/appl/lecture/msm/mcwhorter/mcwhorterproblem.hh b/appl/lecture/msm/mcwhorter/mcwhorterproblem.hh
index c0a0710743..de6af96249 100644
--- a/appl/lecture/msm/mcwhorter/mcwhorterproblem.hh
+++ b/appl/lecture/msm/mcwhorter/mcwhorterproblem.hh
@@ -82,7 +82,7 @@ public:
 };
 
 // Set the non-wetting phase
-SET_PROP(McWhorterProblem, NonwettingPhase)
+SET_PROP(McWhorterProblem, NonWettingPhase)
 {
 private:
     typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
diff --git a/dumux/boxmodels/2p/2pvolumevariables.hh b/dumux/boxmodels/2p/2pvolumevariables.hh
index c48a76dd86..e839039472 100644
--- a/dumux/boxmodels/2p/2pvolumevariables.hh
+++ b/dumux/boxmodels/2p/2pvolumevariables.hh
@@ -180,7 +180,7 @@ public:
      * \param phaseIdx The phase index
      */
     Scalar pressure(int phaseIdx) const
-    { return fluidState_.phasePressure(phaseIdx); }
+    { return fluidState_.pressure(phaseIdx); }
 
     /*!
      * \brief Returns temperature inside the sub-control volume.
diff --git a/dumux/boxmodels/richards/richardspropertydefaults.hh b/dumux/boxmodels/richards/richardspropertydefaults.hh
index 6528ab2bd6..bf5c5051c2 100644
--- a/dumux/boxmodels/richards/richardspropertydefaults.hh
+++ b/dumux/boxmodels/richards/richardspropertydefaults.hh
@@ -98,7 +98,7 @@ public:
  *
  * By default this uses the immiscible twophase fluid system. The
  * actual fluids used are specified using in the problem definition by
- * the WettingPhase and NonwettingPhase properties. Be aware that
+ * the WettingPhase and NonWettingPhase properties. Be aware that
  * using different fluid systems in conjunction with the Richards
  * model only makes very limited sense.
  */
@@ -113,7 +113,7 @@ SET_TYPE_PROP(BoxRichards, FluidSystem, FluidSystem2P<TypeTag>);
  * if the viscosity of the liquid phase is _much_ lower than the
  * viscosity of the wetting phase.
  */
-SET_PROP(BoxRichards, NonwettingPhase)
+SET_PROP(BoxRichards, NonWettingPhase)
 {
     typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
     typedef GasPhase<Scalar, N2<Scalar> > type;
diff --git a/dumux/decoupled/2p/2pproperties.hh b/dumux/decoupled/2p/2pproperties.hh
index de9ed0395e..8b779f5804 100644
--- a/dumux/decoupled/2p/2pproperties.hh
+++ b/dumux/decoupled/2p/2pproperties.hh
@@ -93,7 +93,7 @@ NEW_PROP_TAG( EnableCompressibility)
 ;// !< Returns whether compressibility is allowed
 NEW_PROP_TAG( WettingPhase)
 ; //!< The wetting phase for two-phase models
-NEW_PROP_TAG( NonwettingPhase)
+NEW_PROP_TAG( NonWettingPhase)
 ; //!< The non-wetting phase for two-phase models
 NEW_PROP_TAG( FluidSystem )//!< Defines the fluid system
 ;
diff --git a/dumux/material/fluidsystems/2p_system.hh b/dumux/material/fluidsystems/2p_system.hh
index 92268d8cc9..97552c72a5 100644
--- a/dumux/material/fluidsystems/2p_system.hh
+++ b/dumux/material/fluidsystems/2p_system.hh
@@ -39,7 +39,7 @@ namespace Dumux {
 namespace Properties {
 NEW_PROP_TAG(Scalar);
 NEW_PROP_TAG(WettingPhase);
-NEW_PROP_TAG(NonwettingPhase);
+NEW_PROP_TAG(NonWettingPhase);
 };
 
 
@@ -59,7 +59,7 @@ class FluidSystem2P
     typedef FluidSystem2P<TypeTag> ThisType;
     typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
     typedef typename GET_PROP_TYPE(TypeTag, PTAG(WettingPhase)) WettingPhase;
-    typedef typename GET_PROP_TYPE(TypeTag, PTAG(NonwettingPhase)) NonwettingPhase;
+    typedef typename GET_PROP_TYPE(TypeTag, PTAG(NonWettingPhase)) NonWettingPhase;
 
 public:
 
@@ -92,7 +92,7 @@ public:
     {
         switch (compIdx) {
         case wCompIdx: return WettingPhase::name();
-        case nCompIdx: return NonwettingPhase::name();
+        case nCompIdx: return NonWettingPhase::name();
         };
         DUNE_THROW(Dune::InvalidStateException, "Invalid component index " << compIdx);
     }
@@ -106,7 +106,7 @@ public:
     {
         switch (compIdx) {
         case wCompIdx: return WettingPhase::molarMass();
-        case nCompIdx: return NonwettingPhase::molarMass();
+        case nCompIdx: return NonWettingPhase::molarMass();
         };
         DUNE_THROW(Dune::InvalidStateException, "Invalid component index " << compIdx);
     }
@@ -131,7 +131,7 @@ public:
         case wPhaseIdx:
             return WettingPhase::density(temperature, pressure);
         case nPhaseIdx:
-            return NonwettingPhase::density(temperature, pressure);
+            return NonWettingPhase::density(temperature, pressure);
         }
         DUNE_THROW(Dune::InvalidStateException, "Invalid phase index " << phaseIdx);
     }
@@ -157,7 +157,7 @@ public:
         case wPhaseIdx:
             return WettingPhase::density(temperature, pressure);
         case nPhaseIdx:
-            return NonwettingPhase::density(temperature, pressure);
+            return NonWettingPhase::density(temperature, pressure);
         }
         DUNE_THROW(Dune::InvalidStateException, "Invalid phase index " << phaseIdx);
     }
@@ -182,7 +182,7 @@ public:
         case wPhaseIdx:
             return WettingPhase::viscosity(temperature, pressure);
         case nPhaseIdx:
-            return NonwettingPhase::viscosity(temperature, pressure);
+            return NonWettingPhase::viscosity(temperature, pressure);
         }
         DUNE_THROW(Dune::InvalidStateException, "Invalid phase index " << phaseIdx);
     }
@@ -207,7 +207,7 @@ public:
         case wPhaseIdx:
             return WettingPhase::enthalpy(temperature, pressure);
         case nPhaseIdx:
-            return NonwettingPhase::enthalpy(temperature, pressure);
+            return NonWettingPhase::enthalpy(temperature, pressure);
         }
         DUNE_THROW(Dune::InvalidStateException, "Invalid phase index " << phaseIdx);
     }
@@ -232,7 +232,7 @@ public:
         case wPhaseIdx:
             return WettingPhase::internalEnergy(temperature, pressure);
         case nPhaseIdx:
-            return NonwettingPhase::internalEnergy(temperature, pressure);
+            return NonWettingPhase::internalEnergy(temperature, pressure);
         }
         DUNE_THROW(Dune::InvalidStateException, "Invalid phase index " << phaseIdx);
     }
diff --git a/test/boxmodels/2pni/injectionproblem2pni.hh b/test/boxmodels/2pni/injectionproblem2pni.hh
index c5bb45f7a7..02ac864e42 100644
--- a/test/boxmodels/2pni/injectionproblem2pni.hh
+++ b/test/boxmodels/2pni/injectionproblem2pni.hh
@@ -90,7 +90,7 @@ public:
 };
 
 // Set the non-wetting phase
-SET_PROP(InjectionProblem2PNI, NonwettingPhase)
+SET_PROP(InjectionProblem2PNI, NonWettingPhase)
 {
 private:
     typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
diff --git a/test/common/generalproblem/generallensproblem.hh b/test/common/generalproblem/generallensproblem.hh
index 3f7b7275c5..0d6a6fac45 100644
--- a/test/common/generalproblem/generallensproblem.hh
+++ b/test/common/generalproblem/generallensproblem.hh
@@ -91,7 +91,7 @@ public:
 };
 
 // Set the non-wetting phase
-SET_PROP(GeneralLensProblem, NonwettingPhase)
+SET_PROP(GeneralLensProblem, NonWettingPhase)
 {
 private:
     typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
diff --git a/test/decoupled/1p/test_diffusion_problem.hh b/test/decoupled/1p/test_diffusion_problem.hh
index a78d2a28fe..6b7390bd06 100644
--- a/test/decoupled/1p/test_diffusion_problem.hh
+++ b/test/decoupled/1p/test_diffusion_problem.hh
@@ -78,7 +78,7 @@ public:
 };
 
 // Set the non-wetting phase
-SET_PROP(DiffusionTestProblem, NonwettingPhase)
+SET_PROP(DiffusionTestProblem, NonWettingPhase)
 {
 private:
     typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
diff --git a/test/decoupled/2p/test_impes_problem.hh b/test/decoupled/2p/test_impes_problem.hh
index 328c1eee6f..f0382a7c3e 100644
--- a/test/decoupled/2p/test_impes_problem.hh
+++ b/test/decoupled/2p/test_impes_problem.hh
@@ -96,7 +96,7 @@ public:
 };
 
 // Set the non-wetting phase
-SET_PROP(IMPESTestProblem, NonwettingPhase)
+SET_PROP(IMPESTestProblem, NonWettingPhase)
 {
 private:
     typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
diff --git a/test/decoupled/2p/test_transport_problem.hh b/test/decoupled/2p/test_transport_problem.hh
index a57df89efc..05f5bbe752 100644
--- a/test/decoupled/2p/test_transport_problem.hh
+++ b/test/decoupled/2p/test_transport_problem.hh
@@ -81,7 +81,7 @@ public:
 };
 
 // Set the non-wetting phase
-SET_PROP(TransportTestProblem, NonwettingPhase)
+SET_PROP(TransportTestProblem, NonWettingPhase)
 {
 private:
     typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
diff --git a/test/decoupled/2padaptive/test_impes_adaptive_problem.hh b/test/decoupled/2padaptive/test_impes_adaptive_problem.hh
index 46e35f178b..dfc5fb508b 100644
--- a/test/decoupled/2padaptive/test_impes_adaptive_problem.hh
+++ b/test/decoupled/2padaptive/test_impes_adaptive_problem.hh
@@ -97,7 +97,7 @@ public:
 };
 
 // Set the non-wetting phase
-SET_PROP(TestIMPESAdaptiveProblem, NonwettingPhase)
+SET_PROP(TestIMPESAdaptiveProblem, NonWettingPhase)
 {
 private:
     typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
diff --git a/tutorial/tutorialproblem_coupled.hh b/tutorial/tutorialproblem_coupled.hh
index c1cfe0ff09..d90bcfaf2f 100644
--- a/tutorial/tutorialproblem_coupled.hh
+++ b/tutorial/tutorialproblem_coupled.hh
@@ -83,7 +83,7 @@ public: typedef Dumux::LiquidPhase<Scalar, Dumux::H2O<Scalar> > type; /*@\label{
 };
 
 // Set the non-wetting phase
-SET_PROP(TutorialProblemCoupled, NonwettingPhase)
+SET_PROP(TutorialProblemCoupled, NonWettingPhase)
 {
 private: typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
 public: typedef Dumux::LiquidPhase<Scalar, Dumux::Oil<Scalar> > type; /*@\label{tutorial-coupled:nonwettingPhase}@*/
diff --git a/tutorial/tutorialproblem_decoupled.hh b/tutorial/tutorialproblem_decoupled.hh
index 9150691649..16a8493f3d 100644
--- a/tutorial/tutorialproblem_decoupled.hh
+++ b/tutorial/tutorialproblem_decoupled.hh
@@ -93,7 +93,7 @@ public:
 };
 
 // Set the non-wetting phase
-SET_PROP(TutorialProblemDecoupled, NonwettingPhase)
+SET_PROP(TutorialProblemDecoupled, NonWettingPhase)
 {
 private:
     typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
-- 
GitLab