LCOV - code coverage report
Current view: top level - src/userobjects - HEVPEqvPlasticStrain.C (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: f45d79 Lines: 15 16 93.8 %
Date: 2025-07-25 05:00:39 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          60 : HEVPEqvPlasticStrain::validParams()
      16             : {
      17          60 :   InputParameters params = HEVPInternalVarUOBase::validParams();
      18          60 :   params.addClassDescription("User Object to integrate equivalent plastic strain");
      19          60 :   return params;
      20           0 : }
      21             : 
      22          30 : HEVPEqvPlasticStrain::HEVPEqvPlasticStrain(const InputParameters & parameters)
      23          30 :   : HEVPInternalVarUOBase(parameters)
      24             : {
      25          30 : }
      26             : 
      27             : bool
      28     1068640 : HEVPEqvPlasticStrain::computeValue(unsigned int qp, Real dt, Real & val) const
      29             : {
      30     1068640 :   val = _this_old[qp] + _intvar_rate[qp] * dt;
      31     1068640 :   return true;
      32             : }
      33             : 
      34             : bool
      35     1250400 : HEVPEqvPlasticStrain::computeDerivative(unsigned int /*qp*/,
      36             :                                         Real dt,
      37             :                                         const std::string & coupled_var_name,
      38             :                                         Real & val) const
      39             : {
      40     1250400 :   val = 0;
      41             : 
      42     1250400 :   if (_intvar_rate_prop_name == coupled_var_name)
      43      888800 :     val = dt;
      44             : 
      45     1250400 :   return true;
      46             : }

Generated by: LCOV version 1.14