www.mooseframework.org
INSTemperatureNoBCBC.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 "INSTemperatureNoBCBC.h"
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<IntegratedBC>();
14 
15  params.addClassDescription("This class implements the 'No BC' boundary condition discussed by "
16  "Griffiths, Papanastiou, and others.");
17  // Required parameters
18  params.addParam<MaterialPropertyName>("k_name", "k", "thermal conductivity_name");
19 
20  return params;
21 }
22 
23 INSTemperatureNoBCBC::INSTemperatureNoBCBC(const InputParameters & parameters)
24  : IntegratedBC(parameters),
25  // Material property
26  _k(getMaterialProperty<Real>("k_name"))
27 {
28 }
29 
30 Real
32 {
33  // k * (grad_T.n) * test
34  return _k[_qp] * _grad_u[_qp] * _normals[_qp] * _test[_i][_qp];
35 }
36 
37 Real
39 {
40  return _k[_qp] * (_grad_phi[_j][_qp] * _normals[_qp]) * _test[_i][_qp];
41 }
42 
43 Real
45 {
46  // off-diagonal derivatives are all zero.
47  return 0.;
48 }
InputParameters validParams< INSTemperatureNoBCBC >()
INSTemperatureNoBCBC(const InputParameters &parameters)
virtual Real computeQpResidual()
virtual Real computeQpJacobian()
virtual Real computeQpOffDiagJacobian(unsigned jvar)
const MaterialProperty< Real > & _k