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 "HEVPStrengthUOBase.h" 11 : 12 : InputParameters 13 60 : HEVPStrengthUOBase::validParams() 14 : { 15 60 : InputParameters params = DiscreteElementUserObject::validParams(); 16 120 : params.addParam<std::string>("intvar_prop_name", 17 : "Name of internal variable property to " 18 : "calculate material resistance: Same as " 19 : "internal variable user object"); 20 60 : params.addClassDescription("User Object to compute material resistance"); 21 60 : return params; 22 0 : } 23 : 24 30 : HEVPStrengthUOBase::HEVPStrengthUOBase(const InputParameters & parameters) 25 : : DiscreteElementUserObject(parameters), 26 30 : _intvar_prop_name(getParam<std::string>("intvar_prop_name")), 27 90 : _intvar(getMaterialPropertyByName<Real>(_intvar_prop_name)) 28 : { 29 30 : }