www.mooseframework.org
VacuumBC.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 "VacuumBC.h"
16 
17 template <>
20 {
22  params.addParam<Real>("alpha", 1, "No idea.");
23  return params;
24 }
25 
27  : IntegratedBC(parameters), _alpha(getParam<Real>("alpha"))
28 {
29 }
30 
31 Real
33 {
34  return _test[_i][_qp] * _alpha * _u[_qp] / 2.;
35 }
36 
37 Real
39 {
40  return _test[_i][_qp] * _alpha * _phi[_j][_qp] / 2.;
41 }
const VariableTestValue & _test
test function values (in QPs)
Definition: IntegratedBC.h:105
InputParameters validParams< IntegratedBC >()
Definition: IntegratedBC.C:28
Real _alpha
Ratio of u to du/dn.
Definition: VacuumBC.h:47
virtual Real computeQpJacobian() override
Definition: VacuumBC.C:38
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const VariablePhiValue & _phi
shape function values (in QPs)
Definition: IntegratedBC.h:98
virtual Real computeQpResidual() override
Definition: VacuumBC.C:32
InputParameters validParams< VacuumBC >()
Definition: VacuumBC.C:19
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
unsigned int _j
Definition: IntegratedBC.h:93
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an option parameter and a documentation string to the InputParameters object...
VacuumBC(const InputParameters &parameters)
Factory constructor, takes parameters so that all derived classes can be built using the same constru...
Definition: VacuumBC.C:26
unsigned int _i
i-th, j-th index for enumerating test and shape functions
Definition: IntegratedBC.h:93
const VariableValue & _u
the values of the unknown variable this BC is acting on
Definition: IntegratedBC.h:112