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 1448910 : BoundaryCondition::validParams() 14 : { 15 1448910 : InputParameters params = ResidualObject::validParams(); 16 1448910 : params += BoundaryRestrictableRequired::validParams(); 17 : 18 4346730 : params.addParam<bool>("use_displaced_mesh", 19 2897820 : 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 1448910 : params.addParamNamesToGroup("use_displaced_mesh", "Advanced"); 27 1448910 : params.addCoupledVar("displacements", "The displacements"); 28 1448910 : params.registerBase("BoundaryCondition"); 29 1448910 : params.registerSystemAttributeName("BoundaryCondition"); 30 : 31 1448910 : return params; 32 0 : } 33 : 34 81836 : BoundaryCondition::BoundaryCondition(const InputParameters & parameters, bool nodal) 35 : : ResidualObject(parameters, nodal), 36 : BoundaryRestrictableRequired(this, nodal), 37 : DistributionInterface(this), 38 81836 : GeometricSearchInterface(this) 39 : { 40 81828 : }