www.mooseframework.org
NonlocalKernel.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 NONLOCALKERNEL_H
16 #define NONLOCALKERNEL_H
17 
18 #include "Kernel.h"
19 
20 class NonlocalKernel;
21 
22 template <>
24 
33 class NonlocalKernel : public Kernel
34 {
35 public:
37 
45  virtual void computeJacobian();
46  virtual void computeOffDiagJacobian(unsigned int jvar);
47 
56  virtual void computeNonlocalJacobian();
57  virtual void computeNonlocalOffDiagJacobian(unsigned int jvar);
58 
59 protected:
61  virtual Real computeQpNonlocalJacobian(dof_id_type /*dof_index*/) { return 0; }
62  virtual Real computeQpNonlocalOffDiagJacobian(unsigned int /*jvar*/, dof_id_type /*dof_index*/)
63  {
64  return 0;
65  }
66 
68  virtual void getUserObjectJacobian(unsigned int /*jvar*/, dof_id_type /*dof_index*/) {}
70  virtual bool globalDoFEnabled(MooseVariable & /*var*/, dof_id_type /*dof_index*/) { return true; }
71 
72  unsigned int _k;
73 };
74 
75 #endif /* NONLOCALKERNEL_H */
virtual void getUserObjectJacobian(unsigned int, dof_id_type)
Optimization option for getting jocobinas from userobject once per dof.
Class for stuff related to variables.
Definition: MooseVariable.h:43
InputParameters validParams< NonlocalKernel >()
virtual void computeOffDiagJacobian(unsigned int jvar)
Computes d-residual / d-jvar... storing the result in Ke.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual bool globalDoFEnabled(MooseVariable &, dof_id_type)
optimization option for executing nonlocal jacobian calculation only for nonzero elements ...
NonlocalKernel(const InputParameters &parameters)
virtual Real computeQpNonlocalOffDiagJacobian(unsigned int, dof_id_type)
virtual void computeNonlocalOffDiagJacobian(unsigned int jvar)
Computes d-residual / d-jvar...
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
NonlocalKernel is used for solving integral terms in integro-differential equations.
Definition: Kernel.h:25
virtual void computeNonlocalJacobian()
computeNonlocalJacobian and computeNonlocalOffDiagJacobian methods are introduced for providing the j...
unsigned int _k
virtual Real computeQpNonlocalJacobian(dof_id_type)
Compute this Kernel&#39;s contribution to the Jacobian corresponding to nolocal dof at the current quadra...
virtual void computeJacobian()
computeJacobian and computeQpOffDiagJacobian methods are almost same as Kernel except for few additio...