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 "INSADDummyDisplaceBoundaryIntegratedBC.h" 11 : 12 : registerMooseObject("NavierStokesApp", INSADDummyDisplaceBoundaryIntegratedBC); 13 : 14 : InputParameters 15 287 : INSADDummyDisplaceBoundaryIntegratedBC::validParams() 16 : { 17 287 : InputParameters params = ADIntegratedBC::validParams(); 18 287 : params.addClassDescription( 19 : "This object adds Jacobian entries for the boundary displacement dependence on the velocity"); 20 574 : params.addRequiredParam<MooseFunctorName>("velocity", "The velocity at which to displace"); 21 574 : params.addRequiredParam<unsigned short>( 22 : "component", "What component of velocity/displacement this object is acting on."); 23 287 : return params; 24 0 : } 25 : 26 154 : INSADDummyDisplaceBoundaryIntegratedBC::INSADDummyDisplaceBoundaryIntegratedBC( 27 154 : const InputParameters & parameters) 28 : : ADIntegratedBC(parameters), 29 154 : _velocity(getFunctor<ADRealVectorValue>("velocity")), 30 462 : _component(getParam<unsigned short>("component")) 31 : { 32 154 : } 33 : 34 : ADReal 35 826176 : INSADDummyDisplaceBoundaryIntegratedBC::computeQpResidual() 36 : { 37 : const Moose::ElemSideQpArg elem_side_qp = { 38 826176 : _current_elem, _current_side, _qp, _qrule, _q_point[_qp]}; 39 826176 : return 0 * _velocity(elem_side_qp, determineState())(_component); 40 : }