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 "MooseVariableInterface.h"
19 #include "MooseFunctorArguments.h"
20 
25  public BlockRestrictable,
26  public BoundaryRestrictable,
29  public MooseVariableInterface<Real>
30 {
31 public:
37 
39 
44  const MooseVariable & variable() const override { return _var; }
45 
46  void setSubdomains(const std::set<SubdomainID> & sub_ids) { _sub_ids = &sub_ids; }
47 
48 protected:
50 
53 
56 
58  const Node * const & _current_node;
59 
61  unsigned int _qp;
62 
64  const std::set<SubdomainID> * _sub_ids;
65 };
void setSubdomains(const std::set< SubdomainID > &sub_ids)
NodalKernelBase(const InputParameters &parameters)
Class for stuff related to variables.
Definition: Adaptivity.h:31
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...
MooseVariable & _var
variable this works on
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
const MooseVariable & variable() const override
Gets the variable this is active on.
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...
Interface for objects that need to get values of MooseVariables.
An interface that restricts an object to subdomains via the &#39;blocks&#39; input parameter.
const InputParameters & parameters() const
Get the parameters of the object.
const Node *const & _current_node
current node being processed
unsigned int _qp
Quadrature point index.