www.mooseframework.org
NSMassSpecifiedNormalFlowBC.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<NSMassBC>();
14  params.addClassDescription("This class implements the mass equation boundary term with a "
15  "specified value of rho*(u.n) imposed weakly.");
16  params.addRequiredParam<Real>("rhoun", "The specified value of rho*(u.n) for this boundary");
17  return params;
18 }
19 
21  : NSMassBC(parameters), _rhoun(getParam<Real>("rhoun"))
22 {
23 }
24 
25 Real
27 {
28  return qpResidualHelper(_rhoun);
29 }
30 
31 Real
33 {
34  return 0.0;
35 }
36 
37 Real
39 {
40  return 0.0;
41 }
Real qpResidualHelper(Real rhoun)
Compute the residual contribution for a given value of rho*(u.n).
Definition: NSMassBC.C:22
InputParameters validParams< NSMassBC >()
Definition: NSMassBC.C:11
virtual Real computeQpOffDiagJacobian(unsigned jvar)
This class corresponds to the "natural" boundary condition for the mass equation, i...
Definition: NSMassBC.h:31
NSMassSpecifiedNormalFlowBC(const InputParameters &parameters)
InputParameters validParams< NSMassSpecifiedNormalFlowBC >()