LCOV - code coverage report
Current view: top level - src/utils - PorousFlowRogersStallybrassClements.C (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 14 14 100.0 %
Date: 2017-11-21 14:47:27 Functions: 5 5 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /****************************************************************/
       2             : /* MOOSE - Multiphysics Object Oriented Simulation Environment  */
       3             : /*                                                              */
       4             : /*          All contents are licensed under LGPL V2.1           */
       5             : /*             See LICENSE for full restrictions                */
       6             : /****************************************************************/
       7             : 
       8             : #include "PorousFlowRogersStallybrassClements.h"
       9             : 
      10             : namespace PorousFlowRogersStallybrassClements
      11             : {
      12             : Real
      13      403570 : effectiveSaturation(Real pc, Real shift, Real scale)
      14             : {
      15      403570 :   Real x = (pc - shift) / scale;
      16      403570 :   Real ex = std::exp(x);
      17      403570 :   return std::pow(1.0 + ex, -0.5);
      18             : }
      19             : 
      20             : Real
      21      400370 : dEffectiveSaturation(Real pc, Real shift, Real scale)
      22             : {
      23      400370 :   Real x = (pc - shift) / scale;
      24      400370 :   Real ex = std::exp(x);
      25      400370 :   return -0.5 * ex * std::pow(1.0 + ex, -1.5) / scale;
      26             : }
      27             : 
      28             : Real
      29      200030 : d2EffectiveSaturation(Real pc, Real shift, Real scale)
      30             : {
      31      200030 :   Real x = (pc - shift) / scale;
      32      200030 :   Real ex = std::exp(x);
      33      200030 :   return (0.75 * ex * ex * std::pow(1.0 + ex, -2.5) - 0.5 * ex * std::pow(1.0 + ex, -1.5)) / scale /
      34      200030 :          scale;
      35             : }
      36        2499 : }

Generated by: LCOV version 1.11