https://mooseframework.inl.gov
NodalIntegralPostprocessorBasePD.C
Go to the documentation of this file.
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 
11 
14 {
16  params.addClassDescription("Base class for peridynamic nodal integral Postprocessors");
17 
18  return params;
19 }
20 
22  const InputParameters & parameters)
23  : NodalPostprocessorBasePD(parameters), _integral_value(0)
24 {
25 }
26 
27 void
29 {
30  _integral_value = 0;
31 }
32 
33 void
35 {
37 }
38 
39 Real
41 {
42  return _integral_value;
43 }
44 void
46 {
48 }
49 void
51 {
52  const auto & pps = static_cast<const NodalIntegralPostprocessorBasePD &>(uo);
53  _integral_value += pps._integral_value;
54 }
Postprocessor class to compute a volume integral of the specified variable Note that specializations ...
const Node *const & _current_node
Real _integral_value
nodal area integral result
void gatherSum(T &value)
static InputParameters validParams()
virtual Real computeNodalValue()=0
Function to evaluate the given function at each material point.
Base postprocessor class for peridynamic calculation.
Real getNodeVolume(dof_id_type node_id)
Function to return nodal volume for node node_id.
PeridynamicsMesh & _pdmesh
Reference to peridynamic mesh object.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void threadJoin(const UserObject &uo) override
NodalIntegralPostprocessorBasePD(const InputParameters &parameters)
void addClassDescription(const std::string &doc_string)