LCOV - code coverage report
Current view: top level - src/postprocessors - NodalVariableIntegralPD.C (source / functions) Hit Total Coverage
Test: idaholab/moose peridynamics: #31405 (292dce) with base fef103 Lines: 10 11 90.9 %
Date: 2025-09-04 07:55:08 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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          44 : NodalVariableIntegralPD::validParams()
      17             : {
      18          44 :   InputParameters params = NodalIntegralPostprocessorBasePD::validParams();
      19          44 :   params.addClassDescription("Class for calculating the domain integral of nodal variables");
      20             : 
      21          88 :   params.addRequiredParam<VariableName>(
      22             :       "variable", "The name of the variable that this postprocessor operates on");
      23             : 
      24          44 :   return params;
      25           0 : }
      26             : 
      27          24 : NodalVariableIntegralPD::NodalVariableIntegralPD(const InputParameters & parameters)
      28             :   : NodalIntegralPostprocessorBasePD(parameters),
      29          48 :     _var(_subproblem.getStandardVariable(_tid, getParam<VariableName>("variable")))
      30             : {
      31          24 : }
      32             : 
      33             : Real
      34         340 : NodalVariableIntegralPD::computeNodalValue()
      35             : {
      36         340 :   return _var.getNodalValue(*_current_node);
      37             : }

Generated by: LCOV version 1.14