www.mooseframework.org
KernelValue.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef KERNELVALUE_H
16 #define KERNELVALUE_H
17 
18 // local includes
19 #include "Kernel.h"
20 
21 // Forward Declarations
22 class KernelValue;
23 
24 template <>
26 
33 class KernelValue : public Kernel
34 {
35 public:
43 
44  virtual void computeResidual() override;
45 
46  virtual void computeJacobian() override;
47 
48  virtual void computeOffDiagJacobian(unsigned int jvar) override;
49 
50 protected:
54  virtual Real precomputeQpResidual() = 0;
55 
59  virtual Real precomputeQpJacobian();
60 
61  virtual Real computeQpResidual() override;
62 };
63 
64 #endif // KERNELVALUE_H
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual void computeOffDiagJacobian(unsigned int jvar) override
Computes d-residual / d-jvar... storing the result in Ke.
Definition: KernelValue.C:92
The KernelValue class is responsible for calculating the residuals in form:
Definition: KernelValue.h:33
KernelValue(const InputParameters &parameters)
Factory constructor initializes all internal references needed for residual computation.
Definition: KernelValue.C:33
virtual Real computeQpResidual() override
Compute this Kernel&#39;s contribution to the residual at the current quadrature point.
Definition: KernelValue.C:108
virtual void computeJacobian() override
Compute this Kernel&#39;s contribution to the diagonal Jacobian entries.
Definition: KernelValue.C:61
virtual Real precomputeQpJacobian()
Called before forming the jacobian for an element.
Definition: KernelValue.C:114
virtual void computeResidual() override
Compute this Kernel&#39;s contribution to the residual.
Definition: KernelValue.C:36
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
Definition: Kernel.h:25
InputParameters validParams< KernelValue >()
Definition: KernelValue.C:27
virtual Real precomputeQpResidual()=0
Called before forming the residual for an element.