LCOV - code coverage report
Current view: top level - src/userobjects - PorousFlowCapillaryPressureConst.C (source / functions) Hit Total Coverage
Test: idaholab/moose porous_flow: #33358 (34476d) with base 4fcf7b Lines: 23 24 95.8 %
Date: 2026-07-17 19:54:38 Functions: 8 8 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://mooseframework.inl.gov
       3             : //*
       4             : //* All rights reserved, see COPYRIGHT for full restrictions
       5             : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
       6             : //*
       7             : //* Licensed under LGPL 2.1, please see LICENSE for details
       8             : //* https://www.gnu.org/licenses/lgpl-2.1.html
       9             : 
      10             : #include "PorousFlowCapillaryPressureConst.h"
      11             : 
      12             : registerMooseObject("PorousFlowApp", PorousFlowCapillaryPressureConst);
      13             : 
      14             : InputParameters
      15        1555 : PorousFlowCapillaryPressureConst::validParams()
      16             : {
      17        1555 :   InputParameters params = PorousFlowCapillaryPressure::validParams();
      18        4665 :   params.addRangeCheckedParam<Real>(
      19        3110 :       "pc", 0.0, "pc >= 0", "Constant capillary pressure (Pa). Default is 0");
      20        1555 :   params.addClassDescription("Constant capillary pressure");
      21        1555 :   return params;
      22           0 : }
      23             : 
      24         840 : PorousFlowCapillaryPressureConst::PorousFlowCapillaryPressureConst(
      25         840 :     const InputParameters & parameters)
      26        1680 :   : PorousFlowCapillaryPressure(parameters), _pc(getParam<Real>("pc"))
      27             : {
      28             :   // Set _log_ext to false as the logarithmic extension is not necessary in this object
      29         840 :   _log_ext = false;
      30         840 : }
      31             : 
      32             : Real
      33     1290777 : PorousFlowCapillaryPressureConst::effectiveSaturation(Real /*pc*/, unsigned /*qp*/) const
      34             : {
      35     1290777 :   return 1.0;
      36             : }
      37             : 
      38             : Real
      39     1261689 : PorousFlowCapillaryPressureConst::dEffectiveSaturation(Real /*pc*/, unsigned /*qp*/) const
      40             : {
      41     1261689 :   return 0.0;
      42             : }
      43             : 
      44             : Real
      45      629877 : PorousFlowCapillaryPressureConst::d2EffectiveSaturation(Real /*pc*/, unsigned /*qp*/) const
      46             : {
      47      629877 :   return 0.0;
      48             : }
      49             : 
      50             : Real
      51     2188964 : PorousFlowCapillaryPressureConst::capillaryPressureCurve(Real /*saturation*/, unsigned /*qp*/) const
      52             : {
      53     2188964 :   return _pc;
      54             : }
      55             : 
      56             : Real
      57     1847340 : PorousFlowCapillaryPressureConst::dCapillaryPressureCurve(Real /*saturation*/,
      58             :                                                           unsigned /*qp*/) const
      59             : {
      60     1847340 :   return 0.0;
      61             : }
      62             : 
      63             : Real
      64      650781 : PorousFlowCapillaryPressureConst::d2CapillaryPressureCurve(Real /*saturation*/,
      65             :                                                            unsigned /*qp*/) const
      66             : {
      67      650781 :   return 0.0;
      68             : }

Generated by: LCOV version 1.14