LCOV - code coverage report
Current view: top level - src/materials - PorousFlowRelativePermeabilityFLAC.C (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 16 16 100.0 %
Date: 2017-11-18 13:30:36 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 "PorousFlowRelativePermeabilityFLAC.h"
       9             : 
      10             : template <>
      11             : InputParameters
      12          12 : validParams<PorousFlowRelativePermeabilityFLAC>()
      13             : {
      14          12 :   InputParameters params = validParams<PorousFlowRelativePermeabilityBase>();
      15          48 :   params.addRequiredRangeCheckedParam<Real>(
      16          12 :       "m", "m >= 0", "relperm = (1 + m)seff^m - m seff^(m+1)");
      17          24 :   params.addClassDescription(
      18          12 :       "This Material calculates relative permeability of a phase using a model inspired by FLAC");
      19          12 :   return params;
      20             : }
      21             : 
      22          36 : PorousFlowRelativePermeabilityFLAC::PorousFlowRelativePermeabilityFLAC(
      23          36 :     const InputParameters & parameters)
      24         108 :   : PorousFlowRelativePermeabilityBase(parameters), _m(getParam<Real>("m"))
      25             : {
      26          36 : }
      27             : 
      28             : Real
      29      220198 : PorousFlowRelativePermeabilityFLAC::relativePermeability(Real seff) const
      30             : {
      31      220198 :   return PorousFlowFLACrelperm::relativePermeability(seff, _m);
      32             : }
      33             : 
      34             : Real
      35      220198 : PorousFlowRelativePermeabilityFLAC::dRelativePermeability(Real seff) const
      36             : {
      37      220198 :   return PorousFlowFLACrelperm::dRelativePermeability(seff, _m);
      38        2499 : }

Generated by: LCOV version 1.11