www.mooseframework.org
GeneralUserObjectBasePD.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
11 #include "PeridynamicsMesh.h"
12 
13 template <>
14 InputParameters
16 {
17  InputParameters params = validParams<GeneralUserObject>();
18  params.addClassDescription("Base class for peridynamics general userobjects");
19 
20  return params;
21 }
22 
23 GeneralUserObjectBasePD::GeneralUserObjectBasePD(const InputParameters & parameters)
24  : GeneralUserObject(parameters),
25  _mesh(_subproblem.mesh()),
26  _pdmesh(dynamic_cast<PeridynamicsMesh &>(_mesh)),
27  _nnodes(2)
28 {
29 }
GeneralUserObjectBasePD.h
validParams< GeneralUserObjectBasePD >
InputParameters validParams< GeneralUserObjectBasePD >()
Definition: GeneralUserObjectBasePD.C:15
PeridynamicsMesh.h
PeridynamicsMesh
Peridynamics mesh class.
Definition: PeridynamicsMesh.h:25
GeneralUserObjectBasePD::GeneralUserObjectBasePD
GeneralUserObjectBasePD(const InputParameters &parameters)
Definition: GeneralUserObjectBasePD.C:23