www.mooseframework.org
NSWeakStagnationInletBC.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 
13 
14 template <>
15 InputParameters
17 {
18  InputParameters params = validParams<MooseObject>();
19  params.addClassDescription("This class facilitates adding weak stagnation inlet BCs via an "
20  "Action by setting up the required parameters.");
21  params.addRequiredParam<std::vector<BoundaryName>>(
22  "boundary", "The list of boundary IDs from the mesh where this boundary condition applies");
23  params.addRequiredParam<Real>("stagnation_pressure", "The specifed stagnation pressure");
24  params.addRequiredParam<Real>("stagnation_temperature", "The specifed stagnation temperature");
25  params.addRequiredParam<Real>("sx", "x-component of specifed flow direction");
26  params.addParam<Real>(
27  "sy", 0.0, "y-component of specifed flow direction"); // only required in >= 2D
28  params.addParam<Real>("sz", 0.0, "z-component of specifed flow direction"); // only required in 3D
29  params.addRequiredParam<UserObjectName>("fluid_properties",
30  "The name of the user object for fluid properties");
31 
32  // Must be called from every base MOOSE system to create linkage with the Action system.
33  params.registerBase("NSWeakStagnationInletBC");
34 
35  return params;
36 }
37 
38 NSWeakStagnationInletBC::NSWeakStagnationInletBC(const InputParameters & parameters)
39  : MooseObject(parameters)
40 {
41 }
42 
NSWeakStagnationInletBC.h
NSWeakStagnationInletBC
This class facilitates adding weak stagnation inlet BCs via an Action by setting up the required para...
Definition: NSWeakStagnationInletBC.h:24
NSWeakStagnationInletBC::NSWeakStagnationInletBC
NSWeakStagnationInletBC(const InputParameters &parameters)
Definition: NSWeakStagnationInletBC.C:38
NSWeakStagnationInletBC::~NSWeakStagnationInletBC
virtual ~NSWeakStagnationInletBC()
Definition: NSWeakStagnationInletBC.C:43
validParams< NSWeakStagnationInletBC >
InputParameters validParams< NSWeakStagnationInletBC >()
Definition: NSWeakStagnationInletBC.C:16
registerMooseObject
registerMooseObject("NavierStokesApp", NSWeakStagnationInletBC)