https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
11#include "MooseVariable.h"
12
14
17{
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
29 _var(_subproblem.getStandardVariable(_tid, getParam<VariableName>("variable")))
30{
31}
32
33Real
registerMooseObject("PeridynamicsApp", NodalVariableIntegralPD)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
DofValue getNodalValue(const Node &node) const
Postprocessor class to compute a volume integral of the specified variable Note that specializations ...
const Node *const & _current_node
Postprocessor class to compute nodal variable integral in peridynamic discretization.
static InputParameters validParams()
NodalVariableIntegralPD(const InputParameters &parameters)
MooseVariable & _var
Nodal variable to be integrated.
virtual Real computeNodalValue() override
Function to evaluate the given function at each material point.