LCOV - code coverage report
Current view: top level - src/materials - PorousFlow2PhasePP_RSC.C (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 23 4.3 %
Date: 2017-11-21 14:47:27 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_RSC.h"
       9             : 
      10             : template <>
      11             : InputParameters
      12           0 : validParams<PorousFlow2PhasePP_RSC>()
      13             : {
      14           0 :   InputParameters params = validParams<PorousFlow2PhasePP>();
      15           0 :   params.addParam<Real>("oil_viscosity",
      16             :                         "Viscosity of oil (gas) phase.  It is assumed this is "
      17             :                         "double the water-phase viscosity.  (Note that this "
      18             :                         "effective saturation is mostly useful for 2-phase, not "
      19           0 :                         "single-phase.)");
      20           0 :   params.addParam<Real>("scale_ratio",
      21             :                         "This is porosity / permeability / beta^2, where beta may "
      22           0 :                         "be chosen by the user.  It has dimensions [time]");
      23           0 :   params.addParam<Real>("shift", "effective saturation is a function of (Pc - shift)");
      24           0 :   params.addClassDescription("Rogers-Stallybrass-Clements version of effective saturation for the "
      25             :                              "water phase, valid for residual saturations = 0, and viscosityOil = "
      26             :                              "2 * viscosityWater.  seff_water = 1 / sqrt(1 + exp((Pc - shift) / "
      27           0 :                              "scale)), where scale = 0.25 * scale_ratio * oil_viscosity.");
      28           0 :   return params;
      29             : }
      30             : 
      31           0 : PorousFlow2PhasePP_RSC::PorousFlow2PhasePP_RSC(const InputParameters & parameters)
      32             :   : PorousFlow2PhasePP(parameters),
      33           0 :     _oil_viscosity(getParam<Real>("oil_viscosity")),
      34           0 :     _scale_ratio(getParam<Real>("scale_ratio")),
      35           0 :     _shift(getParam<Real>("shift")),
      36           0 :     _scale(0.25 * _scale_ratio * _oil_viscosity)
      37             : {
      38             :   mooseDeprecated("PorousFlow2PhasePP_RSC is deprecated. Please use PorousFlow2PhasePP and a "
      39             :                   "PorousFlowCapillaryPressureRSC UserObject instead");
      40           0 : }
      41             : 
      42             : Real
      43           0 : PorousFlow2PhasePP_RSC::effectiveSaturation(Real pressure) const
      44             : {
      45           0 :   return PorousFlowRogersStallybrassClements::effectiveSaturation(-pressure, _shift, _scale);
      46             : }
      47             : 
      48             : Real
      49           0 : PorousFlow2PhasePP_RSC::dEffectiveSaturation_dP(Real pressure) const
      50             : {
      51           0 :   return -PorousFlowRogersStallybrassClements::dEffectiveSaturation(-pressure, _shift, _scale);
      52             : }
      53             : 
      54             : Real
      55           0 : PorousFlow2PhasePP_RSC::d2EffectiveSaturation_dP2(Real pressure) const
      56             : {
      57           0 :   return PorousFlowRogersStallybrassClements::d2EffectiveSaturation(-pressure, _shift, _scale);
      58        2499 : }

Generated by: LCOV version 1.11