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