From 2ae7fa2f3541fb26b879d62fbd982a9996301fda Mon Sep 17 00:00:00 2001
From: Thomas Fetzer <thomas.fetzer@iws.uni-stuttgart.de>
Date: Tue, 18 Oct 2016 14:52:07 +0200
Subject: [PATCH] [implicit][2p] Add function which returns the viscosity of
 the phases

---
 dumux/porousmediumflow/2p/implicit/volumevariables.hh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dumux/porousmediumflow/2p/implicit/volumevariables.hh b/dumux/porousmediumflow/2p/implicit/volumevariables.hh
index 3b7caa05d5..4ef10ae2ed 100644
--- a/dumux/porousmediumflow/2p/implicit/volumevariables.hh
+++ b/dumux/porousmediumflow/2p/implicit/volumevariables.hh
@@ -217,6 +217,15 @@ public:
     Scalar temperature() const
     { return fluidState_.temperature(/*phaseIdx=*/0); }
 
+    /*!
+     * \brief Returns the dynamic viscosity of the fluid within the
+     *        control volume in \f$\mathrm{[Pa s]}\f$.
+     *
+     * \param phaseIdx The phase index
+     */
+    Scalar viscosity(int phaseIdx) const
+    { return fluidState_.viscosity(phaseIdx); }
+
     /*!
      * \brief Returns the effective mobility of a given phase within
      *        the control volume in \f$[s*m/kg]\f$.
-- 
GitLab