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 "HEVPInternalVarRateUOBase.h" 11 : 12 : InputParameters 13 60 : HEVPInternalVarRateUOBase::validParams() 14 : { 15 60 : InputParameters params = DiscreteElementUserObject::validParams(); 16 120 : params.addParam<std::string>( 17 : "flow_rate_prop_name", 18 : "Name of flow rate property: Same as the flow rate user object name specified in input file"); 19 60 : params.addClassDescription("User Object"); 20 60 : return params; 21 0 : } 22 : 23 30 : HEVPInternalVarRateUOBase::HEVPInternalVarRateUOBase(const InputParameters & parameters) 24 : : DiscreteElementUserObject(parameters), 25 30 : _flow_rate_prop_name(getParam<std::string>("flow_rate_prop_name")), 26 90 : _flow_rate(getMaterialPropertyByName<Real>(_flow_rate_prop_name)) 27 : { 28 30 : }