https://mooseframework.inl.gov
peridynamics
src
postprocessors
NodalVariableIntegralPD.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
10
#include "
NodalVariableIntegralPD.h
"
11
#include "
MooseVariable.h
"
12
13
registerMooseObject
(
"PeridynamicsApp"
,
NodalVariableIntegralPD
);
14
15
InputParameters
16
NodalVariableIntegralPD::validParams
()
17
{
18
InputParameters
params =
NodalIntegralPostprocessorBasePD::validParams
();
19
params.
addClassDescription
(
"Class for calculating the domain integral of nodal variables"
);
20
21
params.
addRequiredParam
<VariableName>(
22
"variable"
,
"The name of the variable that this postprocessor operates on"
);
23
24
return
params;
25
}
26
27
NodalVariableIntegralPD::NodalVariableIntegralPD
(
const
InputParameters
& parameters)
28
:
NodalIntegralPostprocessorBasePD
(parameters),
29
_var(_subproblem.getStandardVariable(_tid, getParam<VariableName>(
"variable"
)))
30
{
31
}
32
33
Real
34
NodalVariableIntegralPD::computeNodalValue
()
35
{
36
return
_var
.
getNodalValue
(*
_current_node
);
37
}
NodalIntegralPostprocessorBasePD
Postprocessor class to compute a volume integral of the specified variable Note that specializations ...
Definition:
NodalIntegralPostprocessorBasePD.h:19
NodalVariableIntegralPD.h
NodalPostprocessor::_current_node
const Node *const & _current_node
registerMooseObject
registerMooseObject("PeridynamicsApp", NodalVariableIntegralPD)
MooseVariable.h
NodalIntegralPostprocessorBasePD::validParams
static InputParameters validParams()
Definition:
NodalIntegralPostprocessorBasePD.C:13
NodalVariableIntegralPD::_var
MooseVariable & _var
Nodal variable to be integrated.
Definition:
NodalVariableIntegralPD.h:28
InputParameters::addRequiredParam
void addRequiredParam(const std::string &name, const std::string &doc_string)
InputParameters
NodalVariableIntegralPD::validParams
static InputParameters validParams()
Definition:
NodalVariableIntegralPD.C:16
MooseVariableFE< Real >::getNodalValue
OutputData getNodalValue(const Node &node) const
Real
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
NodalVariableIntegralPD::NodalVariableIntegralPD
NodalVariableIntegralPD(const InputParameters ¶meters)
Definition:
NodalVariableIntegralPD.C:27
NodalVariableIntegralPD
Postprocessor class to compute nodal variable integral in peridynamic discretization.
Definition:
NodalVariableIntegralPD.h:17
InputParameters::addClassDescription
void addClassDescription(const std::string &doc_string)
NodalVariableIntegralPD::computeNodalValue
virtual Real computeNodalValue() override
Function to evaluate the given function at each material point.
Definition:
NodalVariableIntegralPD.C:34
Generated on Fri Jul 18 2025 13:43:14 for https://mooseframework.inl.gov by
1.8.14