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 : #pragma once 11 : 12 : #include "GeneralUserObjectBasePD.h" 13 : #include "PeridynamicsMesh.h" 14 : 15 : /** 16 : * Userobject class to ghost the required element for calculation on current processor from other 17 : * processors 18 : */ 19 : class GhostElemPD : public GeneralUserObjectBasePD 20 : { 21 : public: 22 : static InputParameters validParams(); 23 : 24 : GhostElemPD(const InputParameters & parameters); 25 : 26 : virtual void meshChanged() override; 27 315 : virtual void initialize() override {} 28 315 : virtual void execute() override {} 29 315 : virtual void finalize() override {} 30 : 31 : protected: 32 : /** 33 : * Function to ghost/copy element information from other processors 34 : */ 35 : void ghostElements(); 36 : };