www.mooseframework.org
INSTemperatureNoBCBC.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "INSTemperatureNoBCBC.h"
11 
12 registerMooseObject("NavierStokesApp", INSTemperatureNoBCBC);
13 
16 {
18 
19  params.addClassDescription("This class implements the 'No BC' boundary condition discussed by "
20  "Griffiths, Papanastiou, and others.");
21  // Required parameters
22  params.addParam<MaterialPropertyName>("k_name", "k", "thermal conductivity_name");
23 
24  return params;
25 }
26 
28  : IntegratedBC(parameters),
29  // Material property
30  _k(getMaterialProperty<Real>("k_name"))
31 {
32 }
33 
34 Real
36 {
37  // k * (grad_T.n) * test
38  return _k[_qp] * _grad_u[_qp] * _normals[_qp] * _test[_i][_qp];
39 }
40 
41 Real
43 {
44  return _k[_qp] * (_grad_phi[_j][_qp] * _normals[_qp]) * _test[_i][_qp];
45 }
46 
47 Real
49 {
50  // off-diagonal derivatives are all zero.
51  return 0.;
52 }
const VariableTestValue & _test
unsigned int _j
INSTemperatureNoBCBC(const InputParameters &parameters)
const MooseArray< Point > & _normals
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
const VariableGradient & _grad_u
static InputParameters validParams()
unsigned int _i
unsigned int _qp
virtual Real computeQpResidual()
const VariablePhiGradient & _grad_phi
static InputParameters validParams()
virtual Real computeQpJacobian()
This class implements the "No BC" boundary condition discussed by Griffiths, Papanastiou, and others.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real computeQpOffDiagJacobian(unsigned jvar)
const MaterialProperty< Real > & _k
void addClassDescription(const std::string &doc_string)
registerMooseObject("NavierStokesApp", INSTemperatureNoBCBC)