www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
NodalVariableIntegralPD Class Reference

Postprocessor class to compute nodal variable integral in peridynamic discretization. More...

#include <NodalVariableIntegralPD.h>

Inheritance diagram for NodalVariableIntegralPD:
[legend]

Public Member Functions

 NodalVariableIntegralPD (const InputParameters &parameters)
 
virtual void initialize () override
 
virtual void execute () override
 
virtual void threadJoin (const UserObject &uo) override
 
virtual Real getValue () override
 

Protected Member Functions

virtual Real computeNodalValue () override
 Function to evaluate the given function at each material point. More...
 

Protected Attributes

MooseVariable & _var
 Nodal variable to be integrated. More...
 
Real _integral_value
 nodal area integral result More...
 
PeridynamicsMesh_pdmesh
 Reference to peridynamic mesh object. More...
 
const unsigned int _dim
 Mesh dimension. More...
 

Detailed Description

Postprocessor class to compute nodal variable integral in peridynamic discretization.

Definition at line 22 of file NodalVariableIntegralPD.h.

Constructor & Destructor Documentation

◆ NodalVariableIntegralPD()

NodalVariableIntegralPD::NodalVariableIntegralPD ( const InputParameters &  parameters)

Definition at line 28 of file NodalVariableIntegralPD.C.

30  _var(_subproblem.getStandardVariable(_tid, getParam<VariableName>("variable")))
31 {
32 }

Member Function Documentation

◆ computeNodalValue()

Real NodalVariableIntegralPD::computeNodalValue ( )
overrideprotectedvirtual

Function to evaluate the given function at each material point.

Returns
The computed nodal value

Implements NodalIntegralPostprocessorBasePD.

Definition at line 35 of file NodalVariableIntegralPD.C.

36 {
37  return _var.getNodalValue(*_current_node);
38 }

◆ execute()

void NodalIntegralPostprocessorBasePD::execute ( )
overridevirtualinherited

Definition at line 35 of file NodalIntegralPostprocessorBasePD.C.

36 {
37  _integral_value += computeNodalValue() * _pdmesh.getPDNodeVolume(_current_node->id());
38 }

◆ getValue()

Real NodalIntegralPostprocessorBasePD::getValue ( )
overridevirtualinherited

◆ initialize()

void NodalIntegralPostprocessorBasePD::initialize ( )
overridevirtualinherited

Definition at line 29 of file NodalIntegralPostprocessorBasePD.C.

30 {
31  _integral_value = 0;
32 }

◆ threadJoin()

void NodalIntegralPostprocessorBasePD::threadJoin ( const UserObject &  uo)
overridevirtualinherited

Definition at line 49 of file NodalIntegralPostprocessorBasePD.C.

50 {
52  static_cast<const NodalIntegralPostprocessorBasePD &>(uo);
54 }

Member Data Documentation

◆ _dim

const unsigned int NodalPostprocessorBasePD::_dim
protectedinherited

◆ _integral_value

Real NodalIntegralPostprocessorBasePD::_integral_value
protectedinherited

◆ _pdmesh

PeridynamicsMesh& NodalPostprocessorBasePD::_pdmesh
protectedinherited

Reference to peridynamic mesh object.

Definition at line 31 of file NodalPostprocessorBasePD.h.

Referenced by NodalIntegralPostprocessorBasePD::execute().

◆ _var

MooseVariable& NodalVariableIntegralPD::_var
protected

Nodal variable to be integrated.

Definition at line 31 of file NodalVariableIntegralPD.h.

Referenced by computeNodalValue().


The documentation for this class was generated from the following files:
NodalVariableIntegralPD::_var
MooseVariable & _var
Nodal variable to be integrated.
Definition: NodalVariableIntegralPD.h:31
PeridynamicsMesh::getPDNodeVolume
Real getPDNodeVolume(dof_id_type node_id)
Function to return nodal volume for node node_id.
Definition: PeridynamicsMesh.C:435
NodalIntegralPostprocessorBasePD::NodalIntegralPostprocessorBasePD
NodalIntegralPostprocessorBasePD(const InputParameters &parameters)
Definition: NodalIntegralPostprocessorBasePD.C:22
NodalIntegralPostprocessorBasePD::_integral_value
Real _integral_value
nodal area integral result
Definition: NodalIntegralPostprocessorBasePD.h:42
NodalPostprocessorBasePD::_pdmesh
PeridynamicsMesh & _pdmesh
Reference to peridynamic mesh object.
Definition: NodalPostprocessorBasePD.h:31
NodalIntegralPostprocessorBasePD
Postprocessor class to compute a volume integral of the specified variable Note that specializations ...
Definition: NodalIntegralPostprocessorBasePD.h:24
NodalIntegralPostprocessorBasePD::computeNodalValue
virtual Real computeNodalValue()=0
Function to evaluate the given function at each material point.