www.mooseframework.org
RichardsRelPermPrimeAux.C
Go to the documentation of this file.
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 // This post processor returns d(relperm)/d(Seff)
9 //
11 
12 template <>
13 InputParameters
15 {
16  InputParameters params = validParams<AuxKernel>();
17  params.addRequiredCoupledVar("seff_var", "The variable that represents the effective saturation");
18  params.addRequiredParam<UserObjectName>(
19  "relperm_UO", "Name of user object that defines the relative permeability.");
20  params.addClassDescription("auxillary variable which is d(relative permeability)/dSeff");
21  return params;
22 }
23 
24 RichardsRelPermPrimeAux::RichardsRelPermPrimeAux(const InputParameters & parameters)
25  : AuxKernel(parameters),
26  _seff_var(coupledValue("seff_var")),
27  _relperm_UO(getUserObject<RichardsRelPerm>("relperm_UO"))
28 {
29 }
30 
31 Real
33 {
34  return _relperm_UO.drelperm(_seff_var[_qp]);
35 }
const VariableValue & _seff_var
effective saturation
virtual Real drelperm(Real seff) const =0
derivative of relative permeability wrt effective saturation This must be over-ridden in your derived...
Base class for Richards relative permeability classes that provide relative permeability as a functio...
const RichardsRelPerm & _relperm_UO
userobject that defines relative permeability function
InputParameters validParams< RichardsRelPermPrimeAux >()
RichardsRelPermPrimeAux(const InputParameters &parameters)