www.mooseframework.org
NSStagnationBC.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 /****************************************************************/
7 
8 #include "NSStagnationBC.h"
9 
10 // FluidProperties includes
12 
13 // MOOSE includes
14 #include "MooseMesh.h"
15 
16 template <>
17 InputParameters
19 {
20  InputParameters params = validParams<NodalBC>();
21  params.addClassDescription(
22  "This is the base class for the 'imposed stagnation' value boundary conditions.");
23  params.addRequiredCoupledVar("mach", "Mach number");
24  params.addRequiredParam<UserObjectName>("fluid_properties",
25  "The name of the user object for fluid properties");
26  return params;
27 }
28 
29 NSStagnationBC::NSStagnationBC(const InputParameters & parameters)
30  : NodalBC(parameters),
31  _mach(coupledValue("mach")),
32  _fp(getUserObject<IdealGasFluidProperties>("fluid_properties"))
33 {
34 }
NSStagnationBC(const InputParameters &parameters)
InputParameters validParams< NSStagnationBC >()
Ideal gas fluid properties.