https://mooseframework.inl.gov
NodalKernelBase.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 
10 #include "NodalKernelBase.h"
11 #include "SystemBase.h"
12 
15 {
20  params.addParam<bool>("use_displaced_mesh",
21  false,
22  "Whether or not this object should use the "
23  "displaced mesh for computation. Note that "
24  "in the case this is true but no "
25  "displacements are provided in the Mesh block "
26  "the undisplaced mesh will still be used.");
27  params.addParamNamesToGroup("use_displaced_mesh", "Advanced");
28  params.registerBase("NodalKernel");
29  params.registerSystemAttributeName("NodalKernel");
30  return params;
31 }
32 
34  : ResidualObject(parameters, true),
35  BlockRestrictable(this),
36  BoundaryRestrictable(this, true), // true for applying to nodesets
39  _fe_problem(*getCheckedPointerParam<FEProblemBase *>("_fe_problem_base")),
40  _current_node(_assembly.node())
41 {
42 }
NodalKernelBase(const InputParameters &parameters)
void registerSystemAttributeName(const std::string &value)
This method is used to define the MOOSE system name that is used by the TheWarehouse object for stori...
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.
static InputParameters validParams()
void registerBase(const std::string &value)
This method must be called from every base "Moose System" to create linkage with the Action System...
static InputParameters validParams()
static InputParameters validParams()
static InputParameters validParams()
Class constructor.
This is the common base class for objects that give residual contributions.
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.
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an optional parameter and a documentation string to the InputParameters object...
static InputParameters validParams()
void addParamNamesToGroup(const std::string &space_delim_names, const std::string group_name)
This method takes a space delimited list of parameter names and adds them to the specified group name...