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 "ElementUserObjectBasePD.h" 11 : #include "AuxiliarySystem.h" 12 : #include "PeridynamicsMesh.h" 13 : 14 : InputParameters 15 171 : ElementUserObjectBasePD::validParams() 16 : { 17 171 : InputParameters params = ElementUserObject::validParams(); 18 171 : params.addClassDescription("Base class for peridynamic elemental user objects"); 19 : 20 171 : return params; 21 0 : } 22 : 23 94 : ElementUserObjectBasePD::ElementUserObjectBasePD(const InputParameters & parameters) 24 : : ElementUserObject(parameters), 25 94 : _bond_status_var(&_subproblem.getStandardVariable(_tid, "bond_status")), 26 94 : _aux(_fe_problem.getAuxiliarySystem()), 27 94 : _pdmesh(dynamic_cast<PeridynamicsMesh &>(_mesh)), 28 94 : _nnodes(2) 29 : { 30 94 : }