Go to the documentation of this file.
24 params.
addParam<std::vector<dof_id_type>>(
"nodes",
"Supply nodes using node ids");
25 params.
addParam<std::vector<BoundaryName>>(
26 "boundary",
"The list of boundary IDs from the mesh where this nodal kernel applies");
35 _node_ids(getParam<
std::vector<dof_id_type>>(
"nodes")),
36 _boundary_names(getParam<
std::vector<BoundaryName>>(
"boundary"))
40 for (
const auto & var : coupled_vars)
45 mooseError(
"Must provide either 'nodes' or 'boundary' parameter.");
48 mooseError(
"Both 'nodes' and 'boundary' parameters were specified. Use the 'boundary' "
54 std::vector<dof_id_type> nodelist;
59 for (
auto & node_id : nodelist)
65 mooseDeprecated(
"Using the 'nodes' parameter is deprecated. Please update your input file to "
66 "use the 'boundary' parameter.");
void mooseError(Args &&... args) const
void prepareOffDiagScalar()
void addMooseVariableDependency(MooseVariableFEBase *var)
Call this function to add the passed in MooseVariableFEBase as a variable that this object depends on...
const std::vector< dof_id_type > & getNodeList(boundary_id_type nodeset_id) const
Return a writable reference to a vector of node IDs that belong to nodeset_id.
virtual void computeOffDiagJacobian(unsigned int jvar) override
BoundaryID getBoundaryID(const BoundaryName &boundary_name) const
Get the associated BoundaryID for the boundary name.
defineLegacyParams(NodalScalarKernel)
virtual void reinit() override
std::vector< BoundaryName > _boundary_names
List of node boundary names.
std::vector< dof_id_type > _node_ids
List of node IDs.
Interface for objects that needs coupling capabilities.
virtual void computeJacobian()=0
const std::vector< MooseVariableFEBase * > & getCoupledMooseVars() const
Get the list of all coupled variables.
static InputParameters validParams()
void mooseDeprecated(Args &&... args) const
virtual void reinitNodes(const std::vector< dof_id_type > &nodes, THREAD_ID tid)=0
static InputParameters validParams()
MooseVariableScalar & _var
Scalar variable.
NodalScalarKernel(const InputParameters ¶meters)
unsigned int number() const
Get variable number coming from libMesh.