www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
NodalIntegralPostprocessorBasePD Class Referenceabstract

Postprocessor class to compute a volume integral of the specified variable Note that specializations of this integral are possible by deriving from this class and overriding computeNodalIntegral() More...

#include <NodalIntegralPostprocessorBasePD.h>

Inheritance diagram for NodalIntegralPostprocessorBasePD:
[legend]

Public Member Functions

 NodalIntegralPostprocessorBasePD (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 ()=0
 Function to evaluate the given function at each material point. More...
 

Protected Attributes

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 a volume integral of the specified variable Note that specializations of this integral are possible by deriving from this class and overriding computeNodalIntegral()

Definition at line 24 of file NodalIntegralPostprocessorBasePD.h.

Constructor & Destructor Documentation

◆ NodalIntegralPostprocessorBasePD()

NodalIntegralPostprocessorBasePD::NodalIntegralPostprocessorBasePD ( const InputParameters &  parameters)

Definition at line 22 of file NodalIntegralPostprocessorBasePD.C.

25 {
26 }

Member Function Documentation

◆ computeNodalValue()

virtual Real NodalIntegralPostprocessorBasePD::computeNodalValue ( )
protectedpure virtual

Function to evaluate the given function at each material point.

Returns
The computed nodal value

Implemented in NodalDisplacementDifferenceL2NormPD, NodalFunctionsL2NormPD, and NodalVariableIntegralPD.

Referenced by execute().

◆ execute()

void NodalIntegralPostprocessorBasePD::execute ( )
overridevirtual

Definition at line 35 of file NodalIntegralPostprocessorBasePD.C.

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

◆ getValue()

Real NodalIntegralPostprocessorBasePD::getValue ( )
overridevirtual

◆ initialize()

void NodalIntegralPostprocessorBasePD::initialize ( )
overridevirtual

Definition at line 29 of file NodalIntegralPostprocessorBasePD.C.

30 {
31  _integral_value = 0;
32 }

◆ threadJoin()

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

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
protected

nodal area integral result

Definition at line 42 of file NodalIntegralPostprocessorBasePD.h.

Referenced by execute(), getValue(), initialize(), and threadJoin().

◆ _pdmesh

PeridynamicsMesh& NodalPostprocessorBasePD::_pdmesh
protectedinherited

Reference to peridynamic mesh object.

Definition at line 31 of file NodalPostprocessorBasePD.h.

Referenced by execute().


The documentation for this class was generated from the following files:
PeridynamicsMesh::getPDNodeVolume
Real getPDNodeVolume(dof_id_type node_id)
Function to return nodal volume for node node_id.
Definition: PeridynamicsMesh.C:435
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
NodalPostprocessorBasePD::NodalPostprocessorBasePD
NodalPostprocessorBasePD(const InputParameters &parameters)
Definition: NodalPostprocessorBasePD.C:22
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.