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  return params;
21 }
22 
24  : FVADFunctorDirichletBC(params), INSFVFlowBC(params)
25 {
26  if (!dynamic_cast<INSFVVelocityVariable *>(&_var))
27  paramError(
28  "variable",
29  "The variable argument to INSFVInletVelocityBC must be of type INSFVVelocityVariable");
30 }
void paramError(const std::string &param, Args... args) const
static InputParameters validParams()
MooseVariableFV< Real > & _var
static InputParameters validParams()
INSFVInletVelocityBC(const InputParameters &params)
registerMooseObject("NavierStokesApp", INSFVInletVelocityBC)
A class for velocity inlet boundary conditions.
A parent class for INSFV flow boundary conditions.
Definition: INSFVFlowBC.h:17
static InputParameters validParams()
Definition: INSFVFlowBC.C:14