https://mooseframework.inl.gov
FVNeumannBC.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 "FVNeumannBC.h"
11 
12 registerMooseObject("MooseApp", FVNeumannBC);
13 
16 {
18  params.addClassDescription("Neumann boundary condition for finite volume method.");
19  params.addParam<Real>("value", 0.0, "The value of the flux crossing the boundary.");
20  return params;
21 }
22 
24  : FVFluxBC(parameters), _value(getParam<Real>("value"))
25 {
26 }
27 
28 ADReal
30 {
31  return -_value;
32 }
static InputParameters validParams()
Definition: FVFluxBC.C:17
static InputParameters validParams()
Definition: FVNeumannBC.C:15
const Real _value
Definition: FVNeumannBC.h:27
Neumann boundary (== fixed inflow) condition for finite volume scheme.
Definition: FVNeumannBC.h:17
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
DualNumber< Real, DNDerivativeType, true > ADReal
Definition: ADRealForward.h:47
virtual ADReal computeQpResidual() override
Definition: FVNeumannBC.C:29
Provides an interface for computing residual contributions from finite volume numerical fluxes comput...
Definition: FVFluxBC.h:23
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
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...
FVNeumannBC(const InputParameters &parameters)
Definition: FVNeumannBC.C:23
registerMooseObject("MooseApp", FVNeumannBC)