https://mooseframework.inl.gov
FVPostprocessorDirichletBC.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("Defines a Dirichlet boundary condition for finite volume method.");
19  params.addRequiredParam<PostprocessorName>(
20  "postprocessor", "The postprocessor to set the value to on the boundary.");
21  return params;
22 }
23 
25  : FVDirichletBCBase(parameters), _postprocessor_value(getPostprocessorValue("postprocessor"))
26 {
27 }
28 
29 ADReal
31  const Moose::StateArg & /*state*/) const
32 {
33  return _postprocessor_value;
34 }
FVPostprocessorDirichletBC(const InputParameters &parameters)
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
ADReal boundaryValue(const FaceInfo &fi, const Moose::StateArg &state) const override
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...
This data structure is used to store geometric and variable related metadata about each cell face in ...
Definition: FaceInfo.h:36
static InputParameters validParams()
const PostprocessorValue & _postprocessor_value
The value for this BC.
registerMooseObject("MooseApp", FVPostprocessorDirichletBC)
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()