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 "BoundaryCondition.h" 11 : 12 : InputParameters 13 1437709 : BoundaryCondition::validParams() 14 : { 15 1437709 : InputParameters params = ResidualObject::validParams(); 16 1437709 : params += BoundaryRestrictableRequired::validParams(); 17 : 18 4313127 : params.addParam<bool>("use_displaced_mesh", 19 2875418 : false, 20 : "Whether or not this object should use the " 21 : "displaced mesh for computation. Note that " 22 : "in the case this is true but no " 23 : "displacements are provided in the Mesh block " 24 : "the undisplaced mesh will still be used."); 25 : 26 1437709 : params.addParamNamesToGroup("use_displaced_mesh", "Advanced"); 27 1437709 : params.addCoupledVar("displacements", "The displacements"); 28 1437709 : params.registerBase("BoundaryCondition"); 29 1437709 : params.registerSystemAttributeName("BoundaryCondition"); 30 : 31 1437709 : return params; 32 0 : } 33 : 34 76247 : BoundaryCondition::BoundaryCondition(const InputParameters & parameters, bool nodal) 35 : : ResidualObject(parameters, nodal), 36 : BoundaryRestrictableRequired(this, nodal), 37 : DistributionInterface(this), 38 76247 : GeometricSearchInterface(this) 39 : { 40 76239 : }