https://mooseframework.inl.gov
INSADDummyDisplaceBoundaryIntegratedBC.C
Go to the documentation of this file.
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 
11 
13 
16 {
18  params.addClassDescription(
19  "This object adds Jacobian entries for the boundary displacement dependence on the velocity");
20  params.addRequiredParam<MooseFunctorName>("velocity", "The velocity at which to displace");
21  params.addRequiredParam<unsigned short>(
22  "component", "What component of velocity/displacement this object is acting on.");
23  return params;
24 }
25 
27  const InputParameters & parameters)
28  : ADIntegratedBC(parameters),
29  _velocity(getFunctor<ADRealVectorValue>("velocity")),
30  _component(getParam<unsigned short>("component"))
31 {
32 }
33 
34 ADReal
36 {
37  const Moose::ElemSideQpArg elem_side_qp = {
39  return 0 * _velocity(elem_side_qp, determineState())(_component);
40 }
const Elem *const & _current_elem
Moose::StateArg determineState() const
DualNumber< Real, DNDerivativeType, true > ADReal
const unsigned short _component
What component of velocity/displacement this object is acting on.
static InputParameters validParams()
void addRequiredParam(const std::string &name, const std::string &doc_string)
unsigned int _qp
const MooseArray< Point > & _q_point
const Moose::Functor< ADRealVectorValue > & _velocity
The velocity vector.
INSADDummyDisplaceBoundaryIntegratedBC(const InputParameters &parameters)
registerMooseObject("NavierStokesApp", INSADDummyDisplaceBoundaryIntegratedBC)
const QBase *const & _qrule
const unsigned int & _current_side
void addClassDescription(const std::string &doc_string)
This object adds the sparsity dependence of the surface displacement degrees of freedom on surface ve...