https://mooseframework.inl.gov
INSFVInletVelocityBC.C
Go to the documentation of this file.
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 
17 {
19  params += INSFVFlowBC::validParams();
20  params.addParam<FunctionName>("function", "Function (functor) describing the inlet velocity");
21  params.deprecateParam("function", "functor", "01/01/2024");
22  return params;
23 }
24 
26  : FVADFunctorDirichletBC(params), INSFVFlowBC(params)
27 {
28  if (!dynamic_cast<INSFVVelocityVariable *>(&_var))
29  paramError(
30  "variable",
31  "The variable argument to INSFVInletVelocityBC must be of type INSFVVelocityVariable");
32 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
static InputParameters validParams()
MooseVariableFV< Real > & _var
static InputParameters validParams()
INSFVInletVelocityBC(const InputParameters &params)
void deprecateParam(const std::string &old_name, const std::string &new_name, const std::string &removal_date)
registerMooseObject("NavierStokesApp", INSFVInletVelocityBC)
A class for velocity inlet boundary conditions.
void paramError(const std::string &param, Args... args) const
A parent class for INSFV flow boundary conditions.
Definition: INSFVFlowBC.h:17
static InputParameters validParams()
Definition: INSFVFlowBC.C:14