www.mooseframework.org
DiffusionFluxBC.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #include "DiffusionFluxBC.h"
16 
17 template <>
20 {
22  params.addClassDescription(
23  "Computes a boundary residual contribution consistent with the Diffusion Kernel. "
24  "Does not impose a boundary condition; instead computes the boundary "
25  "contribution corresponding to the current value of grad(u) and accumulates "
26  "it in the residual vector.");
27  return params;
28 }
29 
30 DiffusionFluxBC::DiffusionFluxBC(const InputParameters & parameters) : FluxBC(parameters) {}
31 
34 {
35  return _grad_u[_qp];
36 }
37 
40 {
41  return _grad_phi[_j][_qp];
42 }
RealVectorValue RealGradient
Definition: Assembly.h:43
virtual RealGradient computeQpFluxJacobian() override
InputParameters validParams< DiffusionFluxBC >()
const VariableGradient & _grad_u
the gradient of the unknown variable this BC is acting on
Definition: IntegratedBC.h:114
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters validParams< FluxBC >()
Definition: FluxBC.C:19
const VariablePhiGradient & _grad_phi
gradients of shape functions (in QPs)
Definition: IntegratedBC.h:100
Boundary condition of a flux type .
Definition: FluxBC.h:30
virtual RealGradient computeQpFluxResidual() override
unsigned int _qp
quadrature point index
Definition: IntegratedBC.h:83
unsigned int _j
Definition: IntegratedBC.h:93
DiffusionFluxBC(const InputParameters &parameters)
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...