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 "KokkosMatchedValueBC.h" 11 : 12 : registerMooseObject("MooseApp", KokkosMatchedValueBC); 13 : 14 : InputParameters 15 9134 : KokkosMatchedValueBC::validParams() 16 : { 17 9134 : InputParameters params = NodalBC::validParams(); 18 36536 : params.addRequiredCoupledVar("v", "The variable whose value we are to match."); 19 36536 : params.addParam<Real>("u_coeff", 1.0, " A coefficient for primary variable u"); 20 36536 : params.addParam<Real>("v_coeff", 1.0, " A coefficient for coupled variable v"); 21 9134 : params.addClassDescription("Implements a NodalBC which equates two different Variables' values " 22 : "on a specified boundary."); 23 9134 : return params; 24 0 : } 25 : 26 33 : KokkosMatchedValueBC::KokkosMatchedValueBC(const InputParameters & parameters) 27 : : NodalBC(parameters), 28 9 : _v(kokkosCoupledNodalValue("v")), 29 18 : _v_num(coupled("v")), 30 18 : _u_coeff(getParam<Real>("u_coeff")), 31 27 : _v_coeff(getParam<Real>("v_coeff")) 32 : { 33 12 : }