www.mooseframework.org
PorousFlowCapillaryPressureConst.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
11 
13 
14 template <>
15 InputParameters
17 {
18  InputParameters params = validParams<PorousFlowCapillaryPressure>();
19  params.addRangeCheckedParam<Real>(
20  "pc", 0.0, "pc >= 0", "Constant capillary pressure (Pa). Default is 0");
21  params.addClassDescription("Constant capillary pressure");
22  return params;
23 }
24 
26  const InputParameters & parameters)
27  : PorousFlowCapillaryPressure(parameters), _pc(getParam<Real>("pc"))
28 {
29  // Set _log_ext to false as the logarithmic extension is not necessary in this object
30  _log_ext = false;
31 }
32 
33 Real
34 PorousFlowCapillaryPressureConst::effectiveSaturation(Real /*pc*/, unsigned /*qp*/) const
35 {
36  return 1.0;
37 }
38 
39 Real
40 PorousFlowCapillaryPressureConst::dEffectiveSaturation(Real /*pc*/, unsigned /*qp*/) const
41 {
42  return 0.0;
43 }
44 
45 Real
47 {
48  return 0.0;
49 }
50 
51 Real
52 PorousFlowCapillaryPressureConst::capillaryPressureCurve(Real /*saturation*/, unsigned /*qp*/) const
53 {
54  return _pc;
55 }
56 
57 Real
59  unsigned /*qp*/) const
60 {
61  return 0.0;
62 }
63 
64 Real
66  unsigned /*qp*/) const
67 {
68  return 0.0;
69 }
PorousFlowCapillaryPressureConst::PorousFlowCapillaryPressureConst
PorousFlowCapillaryPressureConst(const InputParameters &parameters)
Definition: PorousFlowCapillaryPressureConst.C:25
PorousFlowCapillaryPressureConst::d2CapillaryPressureCurve
virtual Real d2CapillaryPressureCurve(Real saturation, unsigned qp=0) const override
Second derivative of raw capillary pressure wrt true saturation.
Definition: PorousFlowCapillaryPressureConst.C:65
PorousFlowCapillaryPressure
Base class for capillary pressure for multiphase flow in porous media.
Definition: PorousFlowCapillaryPressure.h:39
PorousFlowCapillaryPressureConst::capillaryPressureCurve
virtual Real capillaryPressureCurve(Real saturation, unsigned qp=0) const override
Raw capillary pressure curve (does not include logarithmic extension)
Definition: PorousFlowCapillaryPressureConst.C:52
PorousFlowCapillaryPressureConst
Constant capillary pressure.
Definition: PorousFlowCapillaryPressureConst.h:22
PorousFlowCapillaryPressureConst::dCapillaryPressureCurve
virtual Real dCapillaryPressureCurve(Real saturation, unsigned qp=0) const override
Derivative of raw capillary pressure wrt true saturation.
Definition: PorousFlowCapillaryPressureConst.C:58
PorousFlowCapillaryPressureConst::_pc
const Real _pc
Constant capillary pressure (Pa)
Definition: PorousFlowCapillaryPressureConst.h:37
validParams< PorousFlowCapillaryPressureConst >
InputParameters validParams< PorousFlowCapillaryPressureConst >()
Definition: PorousFlowCapillaryPressureConst.C:16
PorousFlowCapillaryPressureConst.h
validParams< PorousFlowCapillaryPressure >
InputParameters validParams< PorousFlowCapillaryPressure >()
Definition: PorousFlowCapillaryPressure.C:14
PorousFlowCapillaryPressureConst::d2EffectiveSaturation
virtual Real d2EffectiveSaturation(Real pc, unsigned qp=0) const override
Second derivative of effective saturation wrt capillary pressure.
Definition: PorousFlowCapillaryPressureConst.C:46
registerMooseObject
registerMooseObject("PorousFlowApp", PorousFlowCapillaryPressureConst)
PorousFlowCapillaryPressureConst::effectiveSaturation
virtual Real effectiveSaturation(Real pc, unsigned qp=0) const override
Effective saturation as a function of capillary pressure.
Definition: PorousFlowCapillaryPressureConst.C:34
PorousFlowCapillaryPressure::_log_ext
bool _log_ext
Flag to use a logarithmic extension for low saturation.
Definition: PorousFlowCapillaryPressure.h:229
PorousFlowCapillaryPressureConst::dEffectiveSaturation
virtual Real dEffectiveSaturation(Real pc, unsigned qp=0) const override
Derivative of effective saturation wrt capillary pressure.
Definition: PorousFlowCapillaryPressureConst.C:40