LCOV - code coverage report
Current view: top level - src/materials - PorousFlow2PhasePP_VG.C (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 19 5.3 %
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 "PorousFlow2PhasePP_VG.h"
       9             : 
      10             : template <>
      11             : InputParameters
      12           0 : validParams<PorousFlow2PhasePP_VG>()
      13             : {
      14           0 :   InputParameters params = validParams<PorousFlow2PhasePP>();
      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("This Material calculates the 2 porepressures and the 2 saturations "
      22             :                              "in a 2-phase isothermal situation, and derivatives of these with "
      23             :                              "respect to the PorousFlowVariables. Calculates the 1 porepressure "
      24             :                              "and the 1 saturation in a 1-phase isothermal situation, and "
      25             :                              "derivatives of these with respect to the PorousFlowVariables.  A van "
      26             :                              "Genuchten effective saturation (1 + (-al * p)^(1 / (1 - m)))^(-m) is "
      27           0 :                              "assumed, where p = phase0_porepressure - phase1_porepressure <= 0");
      28           0 :   return params;
      29             : }
      30             : 
      31           0 : PorousFlow2PhasePP_VG::PorousFlow2PhasePP_VG(const InputParameters & parameters)
      32           0 :   : PorousFlow2PhasePP(parameters), _al(getParam<Real>("al")), _m(getParam<Real>("m"))
      33             : {
      34             :   mooseDeprecated("PorousFlow2PhasePP_VG is deprecated. Please use PorousFlow2PhasePP and a "
      35             :                   "PorousFlowCapillaryPressureVG UserObject instead");
      36           0 : }
      37             : 
      38             : Real
      39           0 : PorousFlow2PhasePP_VG::effectiveSaturation(Real pressure) const
      40             : {
      41           0 :   return PorousFlowVanGenuchten::effectiveSaturation(pressure, _al, _m);
      42             : }
      43             : 
      44             : Real
      45           0 : PorousFlow2PhasePP_VG::dEffectiveSaturation_dP(Real pressure) const
      46             : {
      47           0 :   return PorousFlowVanGenuchten::dEffectiveSaturation(pressure, _al, _m);
      48             : }
      49             : 
      50             : Real
      51           0 : PorousFlow2PhasePP_VG::d2EffectiveSaturation_dP2(Real pressure) const
      52             : {
      53           0 :   return PorousFlowVanGenuchten::d2EffectiveSaturation(pressure, _al, _m);
      54        2499 : }

Generated by: LCOV version 1.11