www.mooseframework.org
ImplicitNeumannBC.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #include "ImplicitNeumannBC.h"
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<IntegratedBC>();
14  params.addClassDescription("This class implements a form of the Neumann boundary condition in "
15  "which the boundary term is treated 'implicitly'.");
16  return params;
17 }
18 
19 ImplicitNeumannBC::ImplicitNeumannBC(const InputParameters & parameters) : IntegratedBC(parameters)
20 {
21 }
22 
23 Real
25 {
26  return _grad_u[_qp] * _normals[_qp] * _test[_i][_qp];
27 }
28 
29 Real
31 {
32  return (_grad_phi[_j][_qp] * _normals[_qp]) * _test[_i][_qp];
33 }
34 
35 Real
37 {
38  // off-diagonal derivatives are all zero.
39  return 0.;
40 }
InputParameters validParams< ImplicitNeumannBC >()
virtual Real computeQpResidual()
virtual Real computeQpOffDiagJacobian(unsigned jvar)
ImplicitNeumannBC(const InputParameters &parameters)
virtual Real computeQpJacobian()