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 239193 : NodalKernelBase::validParams() 15 : { 16 239193 : InputParameters params = ResidualObject::validParams(); 17 239193 : params += BlockRestrictable::validParams(); 18 239193 : params += BoundaryRestrictable::validParams(); 19 239193 : params += GeometricSearchInterface::validParams(); 20 717579 : params.addParam<bool>("use_displaced_mesh", 21 478386 : 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 956772 : params.addParamNamesToGroup("use_displaced_mesh", "Advanced"); 28 478386 : params.registerBase("NodalKernel"); 29 239193 : params.registerSystemAttributeName("NodalKernel"); 30 239193 : 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 : }