www.mooseframework.org
RichardsRelPermAux.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 
10 // This post processor returns the relative permeability of a region.
11 //
12 #include "RichardsRelPermAux.h"
13 
15 
16 template <>
17 InputParameters
19 {
20  InputParameters params = validParams<AuxKernel>();
21  params.addRequiredCoupledVar("seff_var", "The variable that represents the effective saturation");
22  params.addRequiredParam<UserObjectName>(
23  "relperm_UO", "Name of user object that defines the relative permeability.");
24  params.addClassDescription("auxillary variable which is the relative permeability");
25  return params;
26 }
27 
28 RichardsRelPermAux::RichardsRelPermAux(const InputParameters & parameters)
29  : AuxKernel(parameters),
30  _seff_var(coupledValue("seff_var")),
31  _relperm_UO(getUserObject<RichardsRelPerm>("relperm_UO"))
32 {
33 }
34 
35 Real
37 {
38  return _relperm_UO.relperm(_seff_var[_qp]);
39 }
RichardsRelPermAux.h
validParams< RichardsRelPermAux >
InputParameters validParams< RichardsRelPermAux >()
Definition: RichardsRelPermAux.C:18
registerMooseObject
registerMooseObject("RichardsApp", RichardsRelPermAux)
RichardsRelPerm
Base class for Richards relative permeability classes that provide relative permeability as a functio...
Definition: RichardsRelPerm.h:23
RichardsRelPermAux::RichardsRelPermAux
RichardsRelPermAux(const InputParameters &parameters)
Definition: RichardsRelPermAux.C:28
RichardsRelPerm::relperm
virtual Real relperm(Real seff) const =0
relative permeability as a function of effective saturation This must be over-ridden in your derived ...
RichardsRelPermAux::computeValue
virtual Real computeValue()
Definition: RichardsRelPermAux.C:36
RichardsRelPermAux
Relative Permeability as a function of effective saturation.
Definition: RichardsRelPermAux.h:25
RichardsRelPermAux::_seff_var
const VariableValue & _seff_var
effective saturation
Definition: RichardsRelPermAux.h:34
RichardsRelPermAux::_relperm_UO
const RichardsRelPerm & _relperm_UO
userobject that defines relative permeability function
Definition: RichardsRelPermAux.h:37