www.mooseframework.org
PorousFlowCapillaryPressureConst.C
Go to the documentation of this file.
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 
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<PorousFlowCapillaryPressure>();
15  params.addRangeCheckedParam<Real>(
16  "pc", 0.0, "pc >= 0", "Constant capillary pressure (Pa). Default is 0");
17  params.addClassDescription("Constant capillary pressure");
18  return params;
19 }
20 
22  const InputParameters & parameters)
23  : PorousFlowCapillaryPressure(parameters), _pc(getParam<Real>("pc"))
24 {
25  // Set _log_ext to false as the logarithmic extension is not necessary in this object
26  _log_ext = false;
27 }
28 
29 Real PorousFlowCapillaryPressureConst::effectiveSaturation(Real /*pc*/) const { return 1.0; }
30 
31 Real PorousFlowCapillaryPressureConst::dEffectiveSaturation(Real /*pc*/) const { return 0.0; }
32 
33 Real PorousFlowCapillaryPressureConst::d2EffectiveSaturation(Real /*pc*/) const { return 0.0; }
34 
36 {
37  return _pc;
38 }
39 
41 {
42  return 0.0;
43 }
44 
46 {
47  return 0.0;
48 }
PorousFlowCapillaryPressureConst(const InputParameters &parameters)
InputParameters validParams< PorousFlowCapillaryPressure >()
virtual Real effectiveSaturation(Real pc) const override
Effective saturation as a function of capillary pressure.
virtual Real d2EffectiveSaturation(Real pc) const override
Second derivative of effective saturation wrt capillary pressure.
Base class for capillary pressure for multiphase flow in porous media.
InputParameters validParams< PorousFlowCapillaryPressureConst >()
virtual Real capillaryPressureCurve(Real saturation) const override
Raw capillary pressure curve (does not include logarithmic extension)
const Real _pc
Constant capillary pressure (Pa)
virtual Real d2CapillaryPressureCurve(Real saturation) const override
Second derivative of raw capillary pressure wrt true saturation.
bool _log_ext
Flag to use a logarithmic extension for low saturation.
virtual Real dEffectiveSaturation(Real pc) const override
Derivative of effective saturation wrt capillary pressure.
virtual Real dCapillaryPressureCurve(Real saturation) const override
Derivative of raw capillary pressure wrt true saturation.