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