https://mooseframework.inl.gov
HeatConductionBC.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 
10 #include "HeatConductionBC.h"
11 
12 registerMooseObject("HeatTransferApp", HeatConductionBC);
13 
16 {
18  params.addClassDescription("Boundary condition for a diffusive heat flux.");
19 
20  return params;
21 }
22 
24  : FluxBC(parameters), _k(getMaterialProperty<Real>("thermal_conductivity"))
25 {
26 }
27 
29 
32 {
33  return -_k[_qp] * _grad_u[_qp];
34 }
35 
38 {
39  return -_k[_qp] * _grad_phi[_j][_qp];
40 }
unsigned int _j
virtual RealGradient computeQpFluxResidual()
static InputParameters validParams()
virtual ~HeatConductionBC()
const VariableGradient & _grad_u
static InputParameters validParams()
unsigned int _qp
const VariablePhiGradient & _grad_phi
registerMooseObject("HeatTransferApp", HeatConductionBC)
HeatConductionBC(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual RealGradient computeQpFluxJacobian()
void addClassDescription(const std::string &doc_string)
const MaterialProperty< Real > & _k