https://mooseframework.inl.gov
Loading...
Searching...
No Matches
WeakGradientBC.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 "WeakGradientBC.h"
11
13
16{
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
27
28Real
33
34Real
registerMooseObject("MooseApp", WeakGradientBC)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
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.
unsigned int _qp
quadrature point index
unsigned int _i
i-th, j-th index for enumerating test and shape functions
Base class for deriving any boundary condition of a integrated type.
const VariablePhiGradient & _grad_phi
gradients of shape functions (in QPs)
const VariableGradient & _grad_u
the gradient of the unknown variable this BC is acting on
static InputParameters validParams()
const MooseArray< Point > & _normals
normals at quadrature points
const VariableTestValue & _test
test function values (in QPs)
A FluxBC which is consistent with the boundary terms arising from the Diffusion Kernel.
virtual Real computeQpResidual() override
Method for computing the residual at quadrature points.
static InputParameters validParams()
virtual Real computeQpJacobian() override
Method for computing the diagonal Jacobian at quadrature points.
WeakGradientBC(const InputParameters &parameters)