www.mooseframework.org
RichardsRelPermPrimePrimeAux.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 d^2(relperm)/d(Seff)^2
11 //
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 d^2(relative permeability)/dSeff^2");
25  return params;
26 }
27 
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.d2relperm(_seff_var[_qp]);
39 }
RichardsRelPerm
Base class for Richards relative permeability classes that provide relative permeability as a functio...
Definition: RichardsRelPerm.h:23
RichardsRelPermPrimePrimeAux::RichardsRelPermPrimePrimeAux
RichardsRelPermPrimePrimeAux(const InputParameters &parameters)
Definition: RichardsRelPermPrimePrimeAux.C:28
RichardsRelPermPrimePrimeAux
Relative Permeability as a function of effective saturation.
Definition: RichardsRelPermPrimePrimeAux.h:25
RichardsRelPermPrimePrimeAux::_relperm_UO
const RichardsRelPerm & _relperm_UO
userobject that defines relative permeability function
Definition: RichardsRelPermPrimePrimeAux.h:37
validParams< RichardsRelPermPrimePrimeAux >
InputParameters validParams< RichardsRelPermPrimePrimeAux >()
Definition: RichardsRelPermPrimePrimeAux.C:18
registerMooseObject
registerMooseObject("RichardsApp", RichardsRelPermPrimePrimeAux)
RichardsRelPermPrimePrimeAux.h
RichardsRelPermPrimePrimeAux::_seff_var
const VariableValue & _seff_var
effective saturation
Definition: RichardsRelPermPrimePrimeAux.h:34
RichardsRelPerm::d2relperm
virtual Real d2relperm(Real seff) const =0
second derivative of relative permeability wrt effective saturation This must be over-ridden in your ...
RichardsRelPermPrimePrimeAux::computeValue
virtual Real computeValue()
Definition: RichardsRelPermPrimePrimeAux.C:36