https://mooseframework.inl.gov
PINSFVMomentumAdvectionOutflowBC.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 
12 #include "SubProblem.h"
13 #include "MooseMesh.h"
14 #include "NS.h"
15 
17 
20 {
22  params.addRequiredParam<MooseFunctorName>("u", "The superficial velocity in the x direction.");
23  params.addParam<MooseFunctorName>("v", "The superficial velocity in the y direction.");
24  params.addParam<MooseFunctorName>("w", "The superficial velocity in the z direction.");
25  params.addRequiredParam<MooseFunctorName>(NS::porosity, "The porosity");
26  params.addClassDescription(
27  "Outflow boundary condition for advecting momentum in the porous media momentum equation. "
28  "This will impose a zero normal gradient on the boundary velocity.");
29  return params;
30 }
31 
33  : INSFVMomentumAdvectionOutflowBC(params), _eps(getFunctor<ADReal>("porosity"))
34 {
35 }
A class for finite volume fully developed outflow boundary conditions for the momentum equation It ad...
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
DualNumber< Real, DNDerivativeType, true > ADReal
void addRequiredParam(const std::string &name, const std::string &doc_string)
registerMooseObject("NavierStokesApp", PINSFVMomentumAdvectionOutflowBC)
static const std::string porosity
Definition: NS.h:104
A class for finite volume fully developed outflow boundary conditions for the momentum equation It ad...
void addClassDescription(const std::string &doc_string)
PINSFVMomentumAdvectionOutflowBC(const InputParameters &params)