20template <
typename T,
typename Base>
45 const unsigned int _qp = 0;
52 using Base::_fe_problem;
53 using Base::_subproblem;
56 using Base::addJacobian;
57 using Base::addMooseVariableDependency;
58 using Base::setResidual;
70 void addResidual(const T & residual, const
std::vector<dof_id_type> & dof_indices);
75 template <typename ADResidual>
76 void addJacobian(const ADResidual & residual, const
std::vector<dof_id_type> & dof_indices);
Base class for automatic differentiation Dirichlet BCs.
An interface for accessing Moose::Functors for systems that care about automatic differentiation,...
Base class for deriving any automatic differentiation boundary condition of a integrated type.
virtual Moose::ADType< T >::type computeQpResidual()=0
Compute this NodalBC's contribution to the residual at the current quadrature point.
const Moose::ADType< T >::type & _u
Value of the unknown variable this BC is acting on.
const unsigned int _qp
Pseudo-"quadrature point" index (Always zero for the current node)
static InputParameters validParams()
bool shouldSetComp(unsigned short i) const
void computeJacobian() override final
void computeResidual() override final
const MooseVariableFE< T > & variable() const override
std::vector< bool > _set_components
void computeOffDiagJacobian(unsigned int jvar) override final
void computeOffDiagJacobianScalar(unsigned int jvar) override final
void addResidual(const T &residual, const std::vector< dof_id_type > &dof_indices)
process the residual into the global data structures
MooseVariableFE< T > & _var
The variable that this NodalBC operates on.
void addJacobian(const ADResidual &residual, const std::vector< dof_id_type > &dof_indices)
process the Jacobian into the global data structures
const Node *const & _current_node
current node being processed
void computeResidualAndJacobian() override
Assembly & _undisplaced_assembly
A reference to the undisplaced assembly in order to ensure data gets correctly incorporated into the ...
Keeps track of stuff related to assembling.
Class for stuff related to variables.
Interface for objects that need to get values of MooseVariables.
Base class for deriving any boundary condition that works at nodes.