www.mooseframework.org
Functions
RichardsPPenalty.C File Reference

Go to the source code of this file.

Functions

 registerMooseObject ("RichardsApp", RichardsPPenalty)
 
template<>
InputParameters validParams< RichardsPPenalty > ()
 

Function Documentation

◆ registerMooseObject()

registerMooseObject ( "RichardsApp"  ,
RichardsPPenalty   
)

◆ validParams< RichardsPPenalty >()

template<>
InputParameters validParams< RichardsPPenalty > ( )

Definition at line 18 of file RichardsPPenalty.C.

19 {
20  InputParameters params = validParams<Kernel>();
21  params.addParam<Real>(
22  "a",
23  1.0E-10,
24  "Weight of the penalty. Penalty = a*(lower - variable) for variable<lower, "
25  "and zero otherwise. Care should be taken with this parameter choice. "
26  "Determine the typical size of your residual (usually rho*perm*(gradP - "
27  "rho*g)/visc), then typically you want the penalty to ensure p>lower*(1-1E-6), "
28  "so for the PPP formulation you typically Penalty = a*1E-6*|p|. I recommend "
29  "that Penalty = 1E-3*residual, yielding a = 1E3*residual/|P|. ");
30  params.addRequiredCoupledVar(
31  "lower_var", "Your variable will be constrained to be greater than this lower_var variable.");
32  params.addClassDescription("This adds a term to the residual that attempts to enforce variable > "
33  "lower_var. The term is a*(lower - variable) for variable<lower, and "
34  "zero otherwise");
35  return params;
36 }