Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://www.mooseframework.org 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 30 : HEVPStrengthUOBase::validParams() 14 : { 15 30 : InputParameters params = DiscreteElementUserObject::validParams(); 16 60 : 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 30 : params.addClassDescription("User Object to compute material resistance"); 21 30 : return params; 22 0 : } 23 : 24 15 : HEVPStrengthUOBase::HEVPStrengthUOBase(const InputParameters & parameters) 25 : : DiscreteElementUserObject(parameters), 26 15 : _intvar_prop_name(getParam<std::string>("intvar_prop_name")), 27 45 : _intvar(getMaterialPropertyByName<Real>(_intvar_prop_name)) 28 : { 29 15 : }