https://mooseframework.inl.gov
Loading...
Searching...
No Matches
INSTemperatureNoBCBC.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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
11
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
34Real
36{
37 // k * (grad_T.n) * test
38 return _k[_qp] * _grad_u[_qp] * _normals[_qp] * _test[_i][_qp];
39}
40
41Real
46
47Real
49{
50 // off-diagonal derivatives are all zero.
51 return 0.;
52}
registerMooseObject("NavierStokesApp", INSTemperatureNoBCBC)
This class implements the "No BC" boundary condition discussed by Griffiths, Papanastiou,...
virtual Real computeQpOffDiagJacobian(unsigned jvar)
const MaterialProperty< Real > & _k
virtual Real computeQpResidual()
virtual Real computeQpJacobian()
static InputParameters validParams()
INSTemperatureNoBCBC(const InputParameters &parameters)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
unsigned int _i
unsigned int _j
const VariablePhiGradient & _grad_phi
const VariableGradient & _grad_u
static InputParameters validParams()
const MooseArray< Point > & _normals
const VariableTestValue & _test