https://mooseframework.inl.gov
FVDirichletBC.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 "FVDirichletBC.h"
11 
13 
16 {
18  params.addClassDescription("Defines a Dirichlet boundary condition for finite volume method.");
19  params.addRequiredParam<Real>("value", "value to enforce at the boundary face");
20  return params;
21 }
22 
24  : FVDirichletBCBase(parameters), _val(getParam<Real>("value"))
25 {
26 }
27 
28 ADReal
29 FVDirichletBC::boundaryValue(const FaceInfo & /*fi*/, const Moose::StateArg & /*state*/) const
30 {
31  return _val;
32 }
registerMooseObject("MooseApp", FVDirichletBC)
Base class for finite volume Dirichlet boundaray conditions.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
DualNumber< Real, DNDerivativeType, true > ADReal
Definition: ADRealForward.h:47
void addRequiredParam(const std::string &name, const std::string &doc_string)
This method adds a parameter and documentation string to the InputParameters object that will be extr...
Base class for finite volume Dirichlet boundary conditions.
Definition: FVDirichletBC.h:17
This data structure is used to store geometric and variable related metadata about each cell face in ...
Definition: FaceInfo.h:36
const Real & _val
Definition: FVDirichletBC.h:27
static InputParameters validParams()
ADReal boundaryValue(const FaceInfo &fi, const Moose::StateArg &state) const override
Definition: FVDirichletBC.C:29
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
FVDirichletBC(const InputParameters &parameters)
Definition: FVDirichletBC.C:23
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
State argument for evaluating functors.
static InputParameters validParams()
Definition: FVDirichletBC.C:15