LCOV - code coverage report
Current view: top level - src/materials - PorousFlow1PhaseP_VG.C (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 20 5.0 %
Date: 2017-11-20 14:50:56 Functions: 2 7 28.6 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : 
       8             : #include "PorousFlow1PhaseP_VG.h"
       9             : 
      10             : template <>
      11             : InputParameters
      12           0 : validParams<PorousFlow1PhaseP_VG>()
      13             : {
      14           0 :   InputParameters params = validParams<PorousFlow1PhaseP>();
      15           0 :   params.addRequiredRangeCheckedParam<Real>(
      16           0 :       "al", "al > 0", "van Genuchten parameter alpha.  Must be positive");
      17           0 :   params.addRequiredRangeCheckedParam<Real>(
      18             :       "m",
      19             :       "m > 0 & m < 1",
      20           0 :       "van Genuchten exponent m.  Must be between 0 and 1, and optimally should be set to > 0.5");
      21           0 :   params.addClassDescription(
      22             :       "This Material is used for the single-phase situation where porepressure is the primary "
      23             :       "variable.  Calculates the 1 porepressure and the 1 saturation in a 1-phase isothermal "
      24             :       "situation, and derivatives of these with respect to the PorousFlowVariables.  A van "
      25           0 :       "Genuchten effective saturation (1 + (-al * p)^(1 / (1 - m)))^(-m) is assumed");
      26           0 :   return params;
      27             : }
      28             : 
      29           0 : PorousFlow1PhaseP_VG::PorousFlow1PhaseP_VG(const InputParameters & parameters)
      30             :   : PorousFlow1PhaseP(parameters),
      31             : 
      32           0 :     _al(getParam<Real>("al")),
      33           0 :     _m(getParam<Real>("m"))
      34             : {
      35             :   mooseDeprecated("PorousFlow1PhaseP_VG is deprecated. Please use PorousFlow1PhaseP and a "
      36             :                   "PorousFlowCapillaryPressureVG UserObject instead");
      37           0 : }
      38             : 
      39             : Real
      40           0 : PorousFlow1PhaseP_VG::effectiveSaturation(Real pressure) const
      41             : {
      42           0 :   return PorousFlowVanGenuchten::effectiveSaturation(pressure, _al, _m);
      43             : }
      44             : 
      45             : Real
      46           0 : PorousFlow1PhaseP_VG::dEffectiveSaturation_dP(Real pressure) const
      47             : {
      48           0 :   return PorousFlowVanGenuchten::dEffectiveSaturation(pressure, _al, _m);
      49             : }
      50             : 
      51             : Real
      52           0 : PorousFlow1PhaseP_VG::d2EffectiveSaturation_dP2(Real pressure) const
      53             : {
      54           0 :   return PorousFlowVanGenuchten::d2EffectiveSaturation(pressure, _al, _m);
      55        2499 : }

Generated by: LCOV version 1.11