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 1536 : PorousFlowCapillaryPressureConst::validParams() 16 : { 17 1536 : InputParameters params = PorousFlowCapillaryPressure::validParams(); 18 4608 : params.addRangeCheckedParam<Real>( 19 3072 : "pc", 0.0, "pc >= 0", "Constant capillary pressure (Pa). Default is 0"); 20 1536 : params.addClassDescription("Constant capillary pressure"); 21 1536 : return params; 22 0 : } 23 : 24 830 : PorousFlowCapillaryPressureConst::PorousFlowCapillaryPressureConst( 25 830 : const InputParameters & parameters) 26 1660 : : PorousFlowCapillaryPressure(parameters), _pc(getParam<Real>("pc")) 27 : { 28 : // Set _log_ext to false as the logarithmic extension is not necessary in this object 29 830 : _log_ext = false; 30 830 : } 31 : 32 : Real 33 1326427 : PorousFlowCapillaryPressureConst::effectiveSaturation(Real /*pc*/, unsigned /*qp*/) const 34 : { 35 1326427 : return 1.0; 36 : } 37 : 38 : Real 39 1297339 : PorousFlowCapillaryPressureConst::dEffectiveSaturation(Real /*pc*/, unsigned /*qp*/) const 40 : { 41 1297339 : return 0.0; 42 : } 43 : 44 : Real 45 647695 : PorousFlowCapillaryPressureConst::d2EffectiveSaturation(Real /*pc*/, unsigned /*qp*/) const 46 : { 47 647695 : return 0.0; 48 : } 49 : 50 : Real 51 2223904 : PorousFlowCapillaryPressureConst::capillaryPressureCurve(Real /*saturation*/, unsigned /*qp*/) const 52 : { 53 2223904 : return _pc; 54 : } 55 : 56 : Real 57 1873120 : PorousFlowCapillaryPressureConst::dCapillaryPressureCurve(Real /*saturation*/, 58 : unsigned /*qp*/) const 59 : { 60 1873120 : return 0.0; 61 : } 62 : 63 : Real 64 658877 : PorousFlowCapillaryPressureConst::d2CapillaryPressureCurve(Real /*saturation*/, 65 : unsigned /*qp*/) const 66 : { 67 658877 : return 0.0; 68 : }