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