www.mooseframework.org
NSMassWeakStagnationBC.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<NSWeakStagnationBaseBC>();
14  params.addClassDescription("The inviscid energy BC term with specified normal flow.");
15  return params;
16 }
17 
18 NSMassWeakStagnationBC::NSMassWeakStagnationBC(const InputParameters & parameters)
19  : NSWeakStagnationBaseBC(parameters)
20 {
21 }
22 
23 Real
25 {
26  // rho_s * |u| * (s.n) * phi_i
27  return rhoStatic() * std::sqrt(this->velmag2()) * this->sdotn() * _test[_i][_qp];
28 }
29 
30 Real
32 {
33  // TODO
34  return 0.0;
35 }
36 
37 Real
39 {
40  // TODO
41  return 0.0;
42 }
InputParameters validParams< NSWeakStagnationBaseBC >()
NSMassWeakStagnationBC(const InputParameters &parameters)
virtual Real computeQpOffDiagJacobian(unsigned jvar)
InputParameters validParams< NSMassWeakStagnationBC >()
This is the base class for "weakly-imposed" stagnation boundary conditions, that is the relevant boun...