LCOV - code coverage report
Current view: top level - src/userobjects - PorousFlowCapillaryPressureConst.C (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 21 21 100.0 %
Date: 2017-11-17 17:48:31 Functions: 10 10 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 "PorousFlowCapillaryPressureConst.h"
       9             : 
      10             : template <>
      11             : InputParameters
      12          26 : validParams<PorousFlowCapillaryPressureConst>()
      13             : {
      14          26 :   InputParameters params = validParams<PorousFlowCapillaryPressure>();
      15         104 :   params.addRangeCheckedParam<Real>(
      16          26 :       "pc", 0.0, "pc >= 0", "Constant capillary pressure (Pa). Default is 0");
      17          52 :   params.addClassDescription("Constant capillary pressure");
      18          26 :   return params;
      19             : }
      20             : 
      21          26 : PorousFlowCapillaryPressureConst::PorousFlowCapillaryPressureConst(
      22          26 :     const InputParameters & parameters)
      23          78 :   : PorousFlowCapillaryPressure(parameters), _pc(getParam<Real>("pc"))
      24             : {
      25             :   // Set _log_ext to false as the logarithmic extension is not necessary in this object
      26          26 :   _log_ext = false;
      27          26 : }
      28             : 
      29         144 : Real PorousFlowCapillaryPressureConst::effectiveSaturation(Real /*pc*/) const { return 1.0; }
      30             : 
      31          96 : Real PorousFlowCapillaryPressureConst::dEffectiveSaturation(Real /*pc*/) const { return 0.0; }
      32             : 
      33          96 : Real PorousFlowCapillaryPressureConst::d2EffectiveSaturation(Real /*pc*/) const { return 0.0; }
      34             : 
      35      463490 : Real PorousFlowCapillaryPressureConst::capillaryPressureCurve(Real /*saturation*/) const
      36             : {
      37      463490 :   return _pc;
      38             : }
      39             : 
      40      439192 : Real PorousFlowCapillaryPressureConst::dCapillaryPressureCurve(Real /*saturation*/) const
      41             : {
      42      439192 :   return 0.0;
      43             : }
      44             : 
      45      221616 : Real PorousFlowCapillaryPressureConst::d2CapillaryPressureCurve(Real /*saturation*/) const
      46             : {
      47      221616 :   return 0.0;
      48        2499 : }

Generated by: LCOV version 1.11