Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 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 13 : #include "IdealGasFluidProperties.h" 14 : 15 : // MOOSE includes 16 : #include "MooseMesh.h" 17 : 18 : InputParameters 19 0 : NSStagnationBC::validParams() 20 : { 21 0 : InputParameters params = NodalBC::validParams(); 22 0 : params.addClassDescription( 23 : "This is the base class for the 'imposed stagnation' value boundary conditions."); 24 0 : params.addRequiredCoupledVar("mach", "Mach number"); 25 0 : params.addRequiredParam<UserObjectName>("fluid_properties", 26 : "The name of the user object for fluid properties"); 27 0 : return params; 28 0 : } 29 : 30 0 : NSStagnationBC::NSStagnationBC(const InputParameters & parameters) 31 : : NodalBC(parameters), 32 0 : _mach(coupledValue("mach")), 33 0 : _fp(getUserObject<IdealGasFluidProperties>("fluid_properties")) 34 : { 35 0 : }