https://mooseframework.inl.gov
NodalKernelBase.h
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 
10 #pragma once
11 
12 // MOOSE
13 #include "ResidualObject.h"
15 #include "BlockRestrictable.h"
16 #include "BoundaryRestrictable.h"
18 #include "MooseFunctorArguments.h"
19 #include "MooseVariableFieldBase.h"
20 
25  public BlockRestrictable,
26  public BoundaryRestrictable,
29 {
30 public:
36 
38 
39  void setSubdomains(const std::set<SubdomainID> & sub_ids) { _sub_ids = &sub_ids; }
40 
41 protected:
43 
46 
48  const Node * const & _current_node;
49 
51  unsigned int _qp;
52 
54  const std::set<SubdomainID> * _sub_ids;
55 };
void setSubdomains(const std::set< SubdomainID > &sub_ids)
NodalKernelBase(const InputParameters &parameters)
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:131
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
/class BoundaryRestrictable /brief Provides functionality for limiting the object to certain boundary...
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
FEProblemBase & _fe_problem
Reference to FEProblemBase.
Moose::NodeArg nodeArg() const
static InputParameters validParams()
Class constructor.
Base class for creating new types of nodal kernels.
This is the common base class for objects that give residual contributions.
const std::set< SubdomainID > * _sub_ids
The set of subdomains connected to the current node.
Intermediate base class that ties together all the interfaces for getting MooseVariableFEBases with t...
An interface that restricts an object to subdomains via the &#39;blocks&#39; input parameter.
const Node *const & _current_node
current node being processed
unsigned int _qp
Quadrature point index.