https://mooseframework.inl.gov
RichardsPPenalty.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 
20 class RichardsPPenalty : public Kernel
21 {
22 public:
24 
26 
27 protected:
28  virtual Real computeQpResidual();
29  virtual Real computeQpJacobian();
30  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
31 
32 private:
35 
38 
40  unsigned int _lower_var_num;
41 };
virtual Real computeQpResidual()
Real _a
Kernel = a*(_lower - variable) for variable<lower and zero otherwise.
const VariableValue & _lower
Kernel = a*(_lower - variable) for variable<lower and zero otherwise.
RichardsPPenalty(const InputParameters &parameters)
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
unsigned int _lower_var_num
moose variable number of the _lower variable (needed for OffDiagJacobian)
virtual Real computeQpJacobian()
Kernel = a*(lower - variable) for variable<lower, and zero otherwise This is an attempt to enforce va...
OutputTools< Real >::VariableValue VariableValue
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
static InputParameters validParams()