www.mooseframework.org
RichardsRelPermPrimePrimeAux.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^2(relperm)/d(Seff)^2
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^2(relative permeability)/dSeff^2");
21  return params;
22 }
23 
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.d2relperm(_seff_var[_qp]);
35 }
const RichardsRelPerm & _relperm_UO
userobject that defines relative permeability function
Base class for Richards relative permeability classes that provide relative permeability as a functio...
virtual Real d2relperm(Real seff) const =0
second derivative of relative permeability wrt effective saturation This must be over-ridden in your ...
const VariableValue & _seff_var
effective saturation
InputParameters validParams< RichardsRelPermPrimePrimeAux >()
RichardsRelPermPrimePrimeAux(const InputParameters &parameters)