www.mooseframework.org
DiffusionFluxBC.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 "DiffusionFluxBC.h"
11 
13 
16 {
18  params.addClassDescription(
19  "Computes a boundary residual contribution consistent with the Diffusion Kernel. "
20  "Does not impose a boundary condition; instead computes the boundary "
21  "contribution corresponding to the current value of grad(u) and accumulates "
22  "it in the residual vector.");
23  return params;
24 }
25 
26 DiffusionFluxBC::DiffusionFluxBC(const InputParameters & parameters) : FluxBC(parameters) {}
27 
30 {
31  return _grad_u[_qp];
32 }
33 
36 {
37  return _grad_phi[_j][_qp];
38 }
virtual RealGradient computeQpFluxJacobian() override
static InputParameters validParams()
Definition: FluxBC.C:13
const VariableGradient & _grad_u
the gradient of the unknown variable this BC is acting on
Definition: IntegratedBC.h:106
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
A FluxBC which is consistent with the boundary terms arising from the Diffusion Kernel.
unsigned int _qp
quadrature point index
const VariablePhiGradient & _grad_phi
gradients of shape functions (in QPs)
Definition: IntegratedBC.h:92
Boundary condition of a flux type .
Definition: FluxBC.h:19
virtual RealGradient computeQpFluxResidual() override
static InputParameters validParams()
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...
registerMooseObject("MooseApp", DiffusionFluxBC)