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 "FVDirichletBC.h" 11 : 12 : registerMooseObject("MooseApp", FVDirichletBC); 13 : 14 : InputParameters 15 22195 : FVDirichletBC::validParams() 16 : { 17 22195 : InputParameters params = FVDirichletBCBase::validParams(); 18 22195 : params.addClassDescription("Defines a Dirichlet boundary condition for finite volume method."); 19 22195 : params.addRequiredParam<Real>("value", "value to enforce at the boundary face"); 20 22195 : return params; 21 0 : } 22 : 23 4078 : FVDirichletBC::FVDirichletBC(const InputParameters & parameters) 24 4078 : : FVDirichletBCBase(parameters), _val(getParam<Real>("value")) 25 : { 26 4078 : } 27 : 28 : ADReal 29 3194177 : FVDirichletBC::boundaryValue(const FaceInfo & /*fi*/, const Moose::StateArg & /*state*/) const 30 : { 31 3194177 : return _val; 32 : }