LCOV - code coverage report
Current view: top level - src/userobjects - HEVPEqvPlasticStrain.C (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: #31405 (292dce) with base fef103 Lines: 15 16 93.8 %
Date: 2025-09-04 07:57:23 Functions: 4 4 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 "HEVPEqvPlasticStrain.h"
      11             : 
      12             : registerMooseObject("SolidMechanicsApp", HEVPEqvPlasticStrain);
      13             : 
      14             : InputParameters
      15          70 : HEVPEqvPlasticStrain::validParams()
      16             : {
      17          70 :   InputParameters params = HEVPInternalVarUOBase::validParams();
      18          70 :   params.addClassDescription("User Object to integrate equivalent plastic strain");
      19          70 :   return params;
      20           0 : }
      21             : 
      22          35 : HEVPEqvPlasticStrain::HEVPEqvPlasticStrain(const InputParameters & parameters)
      23          35 :   : HEVPInternalVarUOBase(parameters)
      24             : {
      25          35 : }
      26             : 
      27             : bool
      28     1371232 : HEVPEqvPlasticStrain::computeValue(unsigned int qp, Real dt, Real & val) const
      29             : {
      30     1371232 :   val = _this_old[qp] + _intvar_rate[qp] * dt;
      31     1371232 :   return true;
      32             : }
      33             : 
      34             : bool
      35     1604536 : HEVPEqvPlasticStrain::computeDerivative(unsigned int /*qp*/,
      36             :                                         Real dt,
      37             :                                         const std::string & coupled_var_name,
      38             :                                         Real & val) const
      39             : {
      40     1604536 :   val = 0;
      41             : 
      42     1604536 :   if (_intvar_rate_prop_name == coupled_var_name)
      43     1140632 :     val = dt;
      44             : 
      45     1604536 :   return true;
      46             : }

Generated by: LCOV version 1.14