Line data Source code
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 : 14 : InputParameters 15 14781 : FVNeumannBC::validParams() 16 : { 17 14781 : InputParameters params = FVFluxBC::validParams(); 18 14781 : params.addClassDescription("Neumann boundary condition for finite volume method."); 19 14781 : params.addParam<Real>("value", 0.0, "The value of the flux crossing the boundary."); 20 14781 : return params; 21 0 : } 22 : 23 264 : FVNeumannBC::FVNeumannBC(const InputParameters & parameters) 24 264 : : FVFluxBC(parameters), _value(getParam<Real>("value")) 25 : { 26 264 : } 27 : 28 : ADReal 29 14205 : FVNeumannBC::computeQpResidual() 30 : { 31 28410 : return -_value; 32 : }