www.mooseframework.org
NonlocalIntegratedBC.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 NONLOCALINTEGRATEDBC_H
16 #define NONLOCALINTEGRATEDBC_H
17 
18 #include "IntegratedBC.h"
19 
21 
22 template <>
24 
34 {
35 public:
37 
45  virtual void computeJacobian();
46  virtual void computeJacobianBlock(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 /* NONLOCALINTEGRATEDBC_H */
virtual Real computeQpNonlocalOffDiagJacobian(unsigned int, dof_id_type)
virtual bool globalDoFEnabled(MooseVariable &, dof_id_type)
optimization option for executing nonlocal jacobian calculation only for nonzero elements ...
Class for stuff related to variables.
Definition: MooseVariable.h:43
virtual void computeNonlocalJacobian()
computeNonlocalJacobian and computeNonlocalOffDiagJacobian methods are introduced for providing the j...
NonlocalIntegratedBC is used for solving integral terms in integro-differential equations.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual void getUserObjectJacobian(unsigned int, dof_id_type)
Optimization option for getting jocobinas from userobject once per dof.
NonlocalIntegratedBC(const InputParameters &parameters)
InputParameters validParams< NonlocalIntegratedBC >()
Base class for deriving any boundary condition of a integrated type.
Definition: IntegratedBC.h:33
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
virtual Real computeQpNonlocalJacobian(dof_id_type)
Compute this IntegratedBC&#39;s contribution to the Jacobian corresponding to nolocal dof at the current ...
virtual void computeNonlocalOffDiagJacobian(unsigned int jvar)
Computes d-residual / d-jvar...
virtual void computeJacobianBlock(unsigned int jvar)
Computes d-ivar-residual / d-jvar...
virtual void computeJacobian()
computeJacobian and computeQpOffDiagJacobian methods are almost same as IntegratedBC except for few a...