www.mooseframework.org
NodalVariableIntegralPD.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 "MooseVariable.h"
12 
14 
15 template <>
16 InputParameters
18 {
19  InputParameters params = validParams<NodalIntegralPostprocessorBasePD>();
20  params.addClassDescription("Class for calculating the domain integral of nodal variables");
21 
22  params.addRequiredParam<VariableName>(
23  "variable", "The name of the variable that this postprocessor operates on");
24 
25  return params;
26 }
27 
28 NodalVariableIntegralPD::NodalVariableIntegralPD(const InputParameters & parameters)
30  _var(_subproblem.getStandardVariable(_tid, getParam<VariableName>("variable")))
31 {
32 }
33 
34 Real
36 {
37  return _var.getNodalValue(*_current_node);
38 }
NodalVariableIntegralPD::_var
MooseVariable & _var
Nodal variable to be integrated.
Definition: NodalVariableIntegralPD.h:31
NodalVariableIntegralPD
Postprocessor class to compute nodal variable integral in peridynamic discretization.
Definition: NodalVariableIntegralPD.h:22
validParams< NodalVariableIntegralPD >
InputParameters validParams< NodalVariableIntegralPD >()
Definition: NodalVariableIntegralPD.C:17
validParams< NodalIntegralPostprocessorBasePD >
InputParameters validParams< NodalIntegralPostprocessorBasePD >()
Definition: NodalIntegralPostprocessorBasePD.C:14
NodalVariableIntegralPD::NodalVariableIntegralPD
NodalVariableIntegralPD(const InputParameters &parameters)
Definition: NodalVariableIntegralPD.C:28
NodalVariableIntegralPD::computeNodalValue
virtual Real computeNodalValue() override
Function to evaluate the given function at each material point.
Definition: NodalVariableIntegralPD.C:35
NodalVariableIntegralPD.h
registerMooseObject
registerMooseObject("PeridynamicsApp", NodalVariableIntegralPD)
NodalIntegralPostprocessorBasePD
Postprocessor class to compute a volume integral of the specified variable Note that specializations ...
Definition: NodalIntegralPostprocessorBasePD.h:24