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 "KokkosDirectionalNeumannBC.h" 11 : 12 443905 : registerKokkosResidualObject("MooseApp", KokkosDirectionalNeumannBC); 13 : 14 : InputParameters 15 2302 : KokkosDirectionalNeumannBC::validParams() 16 : { 17 2302 : InputParameters params = IntegratedBCValue::validParams(); 18 7004 : params.addParam<RealVectorValue>( 19 4408 : "vector_value", RealVectorValue(), "vector this BC should act in"); 20 2302 : params.addClassDescription("Imposes the integrated boundary condition " 21 : "$\\frac{\\partial u}{\\partial n}=\\vec{V}\\cdot\\hat{n}$, " 22 : "where $\\vec{V}$ is a user-defined, constant vector."); 23 2302 : return params; 24 0 : } 25 : 26 150 : KokkosDirectionalNeumannBC::KokkosDirectionalNeumannBC(const InputParameters & parameters) 27 108 : : IntegratedBCValue(parameters), _value(getParam<RealVectorValue>("vector_value")) 28 : { 29 102 : }