www.mooseframework.org
RichardsPPenalty.h
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 #pragma once
11 
12 #include "Kernel.h"
13 
14 // Forward Declarations
15 class RichardsPPenalty;
16 
17 template <>
18 InputParameters validParams<RichardsPPenalty>();
19 
24 class RichardsPPenalty : public Kernel
25 {
26 public:
27  RichardsPPenalty(const InputParameters & parameters);
28 
29 protected:
30  virtual Real computeQpResidual();
31  virtual Real computeQpJacobian();
32  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
33 
34 private:
36  Real _a;
37 
39  const VariableValue & _lower;
40 
42  unsigned int _lower_var_num;
43 };
RichardsPPenalty::_lower_var_num
unsigned int _lower_var_num
moose variable number of the _lower variable (needed for OffDiagJacobian)
Definition: RichardsPPenalty.h:42
validParams< RichardsPPenalty >
InputParameters validParams< RichardsPPenalty >()
Definition: RichardsPPenalty.C:18
RichardsPPenalty::computeQpResidual
virtual Real computeQpResidual()
Definition: RichardsPPenalty.C:47
RichardsPPenalty
Kernel = a*(lower - variable) for variable<lower, and zero otherwise This is an attempt to enforce va...
Definition: RichardsPPenalty.h:24
RichardsPPenalty::_lower
const VariableValue & _lower
Kernel = a*(_lower - variable) for variable<lower and zero otherwise.
Definition: RichardsPPenalty.h:39
RichardsPPenalty::RichardsPPenalty
RichardsPPenalty(const InputParameters &parameters)
Definition: RichardsPPenalty.C:38
RichardsPPenalty::computeQpOffDiagJacobian
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition: RichardsPPenalty.C:66
RichardsPPenalty::_a
Real _a
Kernel = a*(_lower - variable) for variable<lower and zero otherwise.
Definition: RichardsPPenalty.h:36
RichardsPPenalty::computeQpJacobian
virtual Real computeQpJacobian()
Definition: RichardsPPenalty.C:56