LCOV - code coverage report
Current view: top level - src/userobjects - HEVPFlowRateUOBase.C (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: f45d79 Lines: 14 15 93.3 %
Date: 2025-07-25 05:00:39 Functions: 2 2 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 "HEVPFlowRateUOBase.h"
      11             : 
      12             : InputParameters
      13          60 : HEVPFlowRateUOBase::validParams()
      14             : {
      15          60 :   InputParameters params = DiscreteElementUserObject::validParams();
      16         120 :   params.addParam<std::string>(
      17             :       "strength_prop_name",
      18             :       "Name of strength property: Same as strength user object specified in input file");
      19         120 :   params.addParam<std::string>("base_name", "Base name of tensor properties to fetch");
      20          60 :   params.addClassDescription("User object to evaluate flow rate");
      21             : 
      22          60 :   return params;
      23           0 : }
      24             : 
      25          30 : HEVPFlowRateUOBase::HEVPFlowRateUOBase(const InputParameters & parameters)
      26             :   : DiscreteElementUserObject(parameters),
      27          30 :     _strength_prop_name(getParam<std::string>("strength_prop_name")),
      28          72 :     _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
      29          60 :     _strength(getMaterialPropertyByName<Real>(_strength_prop_name)),
      30          30 :     _pk2_prop_name(_base_name + "pk2"),
      31          60 :     _pk2(getMaterialPropertyByName<RankTwoTensor>(_pk2_prop_name)),
      32          90 :     _ce(getMaterialPropertyByName<RankTwoTensor>(_base_name + "ce"))
      33             : {
      34          30 : }

Generated by: LCOV version 1.14