Loading [MathJax]/extensions/tex2jax.js
https://mooseframework.inl.gov
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
FVFunctorNeumannBC.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 "FVFunctorNeumannBC.h"
11 #include "Function.h"
12 
14 
17 {
19  params.addClassDescription("Neumann boundary condition for the finite volume method.");
20  params.addParam<MooseFunctorName>("factor",
21  1.,
22  "A factor in the form of a functor for multiplying the "
23  "function. This could be useful for flipping "
24  "the sign of the function for example based off the normal");
25  params.addRequiredParam<MooseFunctorName>("functor",
26  "The value of the flux crossing the boundary.");
27  return params;
28 }
29 
31  : FVFluxBC(parameters),
32  _functor(getFunctor<ADReal>("functor")),
33  _factor(getFunctor<ADReal>("factor"))
34 {
35 }
36 
37 ADReal
39 {
42 }
const Moose::Functor< ADReal > & _factor
static InputParameters validParams()
Definition: FVFluxBC.C:17
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Moose::FaceArg singleSidedFaceArg(const FaceInfo *fi=nullptr, Moose::FV::LimiterType limiter_type=Moose::FV::LimiterType::CentralDifference, bool correct_skewness=false, const Moose::StateArg *state_limiter=nullptr) const
Determine the single sided face argument when evaluating a functor on a face.
const Moose::Functor< ADReal > & _functor
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...
FVFunctorNeumannBC(const InputParameters &parameters)
virtual ADReal computeQpResidual() override
Provides an interface for computing residual contributions from finite volume numerical fluxes comput...
Definition: FVFluxBC.h:23
registerMooseObject("MooseApp", FVFunctorNeumannBC)
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...
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an optional parameter and a documentation string to the InputParameters object...
Neumann boundary (== inflow) condition for finite volume scheme where the inflow is given as a functo...
static InputParameters validParams()