www.mooseframework.org
FluxBC.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 "FluxBC.h"
11 
12 template <>
15 {
17  return params;
18 }
19 
20 FluxBC::FluxBC(const InputParameters & params) : IntegratedBC(params) {}
21 
22 Real
24 {
25  return -computeQpFluxResidual() * _normals[_qp] * _test[_i][_qp];
26 }
27 
28 Real
30 {
31  return -computeQpFluxJacobian() * _normals[_qp] * _test[_i][_qp];
32 }
const VariableTestValue & _test
test function values (in QPs)
Definition: IntegratedBC.h:68
InputParameters validParams< IntegratedBC >()
Definition: IntegratedBC.C:23
const MooseArray< Point > & _normals
normals at quadrature points
Definition: IntegratedBC.h:56
virtual Real computeQpResidual() override
method for computing the residual at quadrature points
Definition: FluxBC.C:23
InputParameters validParams< FluxBC >()
Definition: FluxBC.C:14
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
unsigned int _i
i-th, j-th index for enumerating test and shape functions
virtual Real computeQpJacobian() override
Definition: FluxBC.C:29
unsigned int _qp
quadrature point index
virtual RealGradient computeQpFluxResidual()=0
Base class for deriving any boundary condition of a integrated type.
Definition: IntegratedBC.h:24
virtual RealGradient computeQpFluxJacobian()=0
FluxBC(const InputParameters &params)
Definition: FluxBC.C:20