Line data Source code
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 : 13 : InputParameters 14 229593 : NodalKernelBase::validParams() 15 : { 16 229593 : InputParameters params = ResidualObject::validParams(); 17 229593 : params += BlockRestrictable::validParams(); 18 229593 : params += BoundaryRestrictable::validParams(); 19 229593 : params += GeometricSearchInterface::validParams(); 20 688779 : params.addParam<bool>("use_displaced_mesh", 21 459186 : 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 918372 : params.addParamNamesToGroup("use_displaced_mesh", "Advanced"); 28 459186 : params.registerBase("NodalKernel"); 29 229593 : params.registerSystemAttributeName("NodalKernel"); 30 229593 : return params; 31 0 : } 32 : 33 721 : NodalKernelBase::NodalKernelBase(const InputParameters & parameters) 34 : : ResidualObject(parameters, true), 35 : BlockRestrictable(this), 36 : BoundaryRestrictable(this, true), // true for applying to nodesets 37 : GeometricSearchInterface(this), 38 : CoupleableMooseVariableDependencyIntermediateInterface(this, true), 39 2163 : _fe_problem(*getCheckedPointerParam<FEProblemBase *>("_fe_problem_base")), 40 1442 : _current_node(_assembly.node()) 41 : { 42 721 : }