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