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 "INSFVInletVelocityBC.h" 11 : #include "INSFVVelocityVariable.h" 12 : 13 : registerMooseObject("NavierStokesApp", INSFVInletVelocityBC); 14 : 15 : InputParameters 16 23530 : INSFVInletVelocityBC::validParams() 17 : { 18 23530 : InputParameters params = FVADFunctorDirichletBC::validParams(); 19 23530 : params += INSFVFlowBC::validParams(); 20 47060 : params.addParam<FunctionName>("function", "Function (functor) describing the inlet velocity"); 21 47060 : params.deprecateParam("function", "functor", "01/01/2024"); 22 23530 : return params; 23 0 : } 24 : 25 13392 : INSFVInletVelocityBC::INSFVInletVelocityBC(const InputParameters & params) 26 13392 : : FVADFunctorDirichletBC(params), INSFVFlowBC(params) 27 : { 28 13392 : if (!dynamic_cast<INSFVVelocityVariable *>(&_var)) 29 0 : paramError( 30 : "variable", 31 : "The variable argument to INSFVInletVelocityBC must be of type INSFVVelocityVariable"); 32 13392 : }