LCOV - code coverage report
Current view: top level - src/materials - PorousFlowRelativePermeabilityConst.C (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 13 13 100.0 %
Date: 2017-11-21 09:41:48 Functions: 6 6 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 "PorousFlowRelativePermeabilityConst.h"
       9             : 
      10             : template <>
      11             : InputParameters
      12          15 : validParams<PorousFlowRelativePermeabilityConst>()
      13             : {
      14          15 :   InputParameters params = validParams<PorousFlowRelativePermeabilityBase>();
      15          45 :   params.addParam<Real>("kr", 1.0, "Relative permeability");
      16          30 :   params.addClassDescription(
      17          15 :       "This class sets the relative permeability to a constant value (default = 1)");
      18          15 :   return params;
      19             : }
      20             : 
      21          45 : PorousFlowRelativePermeabilityConst::PorousFlowRelativePermeabilityConst(
      22          45 :     const InputParameters & parameters)
      23         135 :   : PorousFlowRelativePermeabilityBase(parameters), _relperm(getParam<Real>("kr"))
      24             : {
      25          45 : }
      26             : 
      27       97720 : Real PorousFlowRelativePermeabilityConst::relativePermeability(Real /*seff*/) const
      28             : {
      29       97720 :   return _relperm;
      30             : }
      31             : 
      32      100219 : Real PorousFlowRelativePermeabilityConst::dRelativePermeability(Real /*seff*/) const { return 0.0; }

Generated by: LCOV version 1.11