LCOV - code coverage report
Current view: top level - src/postprocessors - TemporalCorrelation.C (source / functions) Hit Total Coverage
Test: idaholab/magpie: 5710af Lines: 11 12 91.7 %
Date: 2025-07-21 23:34:39 Functions: 4 4 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /**********************************************************************/
       2             : /*                     DO NOT MODIFY THIS HEADER                      */
       3             : /* MAGPIE - Mesoscale Atomistic Glue Program for Integrated Execution */
       4             : /*                                                                    */
       5             : /*            Copyright 2017 Battelle Energy Alliance, LLC            */
       6             : /*                        ALL RIGHTS RESERVED                         */
       7             : /**********************************************************************/
       8             : 
       9             : #include "TemporalCorrelation.h"
      10             : 
      11             : registerMooseObject("MagpieApp", TemporalCorrelation);
      12             : 
      13             : InputParameters
      14          18 : TemporalCorrelation::validParams()
      15             : {
      16          18 :   InputParameters params = ElementAverageValue::validParams();
      17          18 :   params.addClassDescription("Integrate over the L2 norm of a variable time derivative.");
      18          18 :   return params;
      19           0 : }
      20             : 
      21          10 : TemporalCorrelation::TemporalCorrelation(const InputParameters & parameters)
      22          10 :   : ElementAverageValue(parameters), _u_dot(_is_transient ? coupledDot("variable") : _zero)
      23             : {
      24          10 : }
      25             : 
      26             : Real
      27       12000 : TemporalCorrelation::computeQpIntegral()
      28             : {
      29       12000 :   return _u_dot[_qp] * _u_dot[_qp];
      30             : }
      31             : 
      32             : Real
      33          40 : TemporalCorrelation::getValue() const
      34             : {
      35          40 :   return std::sqrt(ElementAverageValue::getValue());
      36             : }

Generated by: LCOV version 1.14