www.mooseframework.org
NSWeakStagnationInletBC.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<MooseObject>();
14  params.addClassDescription("This class facilitates adding weak stagnation inlet BCs via an "
15  "Action by setting up the required parameters.");
16  params.addRequiredParam<std::vector<BoundaryName>>(
17  "boundary", "The list of boundary IDs from the mesh where this boundary condition applies");
18  params.addRequiredParam<Real>("stagnation_pressure", "The specifed stagnation pressure");
19  params.addRequiredParam<Real>("stagnation_temperature", "The specifed stagnation temperature");
20  params.addRequiredParam<Real>("sx", "x-component of specifed flow direction");
21  params.addParam<Real>(
22  "sy", 0.0, "y-component of specifed flow direction"); // only required in >= 2D
23  params.addParam<Real>("sz", 0.0, "z-component of specifed flow direction"); // only required in 3D
24  params.addRequiredParam<UserObjectName>("fluid_properties",
25  "The name of the user object for fluid properties");
26 
27  // Must be called from every base MOOSE system to create linkage with the Action system.
28  params.registerBase("NSWeakStagnationInletBC");
29 
30  return params;
31 }
32 
33 NSWeakStagnationInletBC::NSWeakStagnationInletBC(const InputParameters & parameters)
34  : MooseObject(parameters)
35 {
36 }
37 
InputParameters validParams< NSWeakStagnationInletBC >()
NSWeakStagnationInletBC(const InputParameters &parameters)