LCOV - code coverage report
Current view: top level - src/auxkernels - RichardsRelPermAux.C (source / functions) Hit Total Coverage
Test: idaholab/moose richards: #31405 (292dce) with base fef103 Lines: 12 13 92.3 %
Date: 2025-09-04 07:56:35 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://mooseframework.inl.gov
       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             : 
      10             : //  This post processor returns the relative permeability of a region.
      11             : //
      12             : #include "RichardsRelPermAux.h"
      13             : 
      14             : registerMooseObject("RichardsApp", RichardsRelPermAux);
      15             : 
      16             : InputParameters
      17          74 : RichardsRelPermAux::validParams()
      18             : {
      19          74 :   InputParameters params = AuxKernel::validParams();
      20         148 :   params.addRequiredCoupledVar("seff_var", "The variable that represents the effective saturation");
      21         148 :   params.addRequiredParam<UserObjectName>(
      22             :       "relperm_UO", "Name of user object that defines the relative permeability.");
      23          74 :   params.addClassDescription("auxillary variable which is the relative permeability");
      24          74 :   return params;
      25           0 : }
      26             : 
      27          19 : RichardsRelPermAux::RichardsRelPermAux(const InputParameters & parameters)
      28             :   : AuxKernel(parameters),
      29          19 :     _seff_var(coupledValue("seff_var")),
      30          38 :     _relperm_UO(getUserObject<RichardsRelPerm>("relperm_UO"))
      31             : {
      32          19 : }
      33             : 
      34             : Real
      35        5454 : RichardsRelPermAux::computeValue()
      36             : {
      37        5454 :   return _relperm_UO.relperm(_seff_var[_qp]);
      38             : }

Generated by: LCOV version 1.14