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 "GeneralUserObjectBasePD.h" 11 : #include "PeridynamicsMesh.h" 12 : 13 : InputParameters 14 630 : GeneralUserObjectBasePD::validParams() 15 : { 16 630 : InputParameters params = GeneralUserObject::validParams(); 17 630 : params.addClassDescription("Base class for peridynamics general userobjects"); 18 : 19 630 : return params; 20 0 : } 21 : 22 315 : GeneralUserObjectBasePD::GeneralUserObjectBasePD(const InputParameters & parameters) 23 : : GeneralUserObject(parameters), 24 630 : _mesh(_subproblem.mesh()), 25 315 : _pdmesh(dynamic_cast<PeridynamicsMesh &>(_mesh)), 26 315 : _dim(_pdmesh.dimension()), 27 315 : _aux(_fe_problem.getAuxiliarySystem()), 28 315 : _bond_status_var(&_subproblem.getStandardVariable(_tid, "bond_status")), 29 315 : _nnodes(2) 30 : { 31 315 : }