https://mooseframework.inl.gov
LinearFVNormalVelocityFunctorDirichletBC.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 
11 
13 
16 {
18  params.addClassDescription(
19  "Adds a dirichlet BC for a velocity parallel to the normal direction. A positive dirichlet "
20  "value would denote outflow, while negative denotes inflow.");
21  params.renameParam("functor", "normal_velocity", "The velocity in the normal direction");
22  MooseEnum component("x y z");
24  "component",
25  component,
26  "The velocity component this object is acting on. We will multiply the prescribed normal "
27  "velocity by the corresponding face normal component");
28  return params;
29 }
30 
32  const InputParameters & parameters)
34  _component((getParam<MooseEnum>("component").getEnum<Component>()))
35 {
36 }
37 
38 Real
40 {
43 }
void renameParam(const std::string &old_name, const std::string &new_name, const std::string &new_docstring)
virtual Real computeBoundaryValue() const override
static const std::string component
Definition: NS.h:157
void addRequiredParam(const std::string &name, const std::string &doc_string)
Adds a dirichlet BC for prescribing a velocity parallel to the boundary face normal direction; this b...
LinearFVNormalVelocityFunctorDirichletBC(const InputParameters &parameters)
Class constructor.
Base class for THM components.
Definition: Component.h:28
const Point & normal() const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
enum LinearFVNormalVelocityFunctorDirichletBC::Component _component
void addClassDescription(const std::string &doc_string)
registerMooseObject("NavierStokesApp", LinearFVNormalVelocityFunctorDirichletBC)