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 "HEVPFlowRateUOBase.h" 11 : 12 : InputParameters 13 30 : HEVPFlowRateUOBase::validParams() 14 : { 15 30 : InputParameters params = DiscreteElementUserObject::validParams(); 16 60 : params.addParam<std::string>( 17 : "strength_prop_name", 18 : "Name of strength property: Same as strength user object specified in input file"); 19 60 : params.addParam<std::string>("base_name", "Base name of tensor properties to fetch"); 20 30 : params.addClassDescription("User object to evaluate flow rate"); 21 : 22 30 : return params; 23 0 : } 24 : 25 15 : HEVPFlowRateUOBase::HEVPFlowRateUOBase(const InputParameters & parameters) 26 : : DiscreteElementUserObject(parameters), 27 15 : _strength_prop_name(getParam<std::string>("strength_prop_name")), 28 36 : _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""), 29 30 : _strength(getMaterialPropertyByName<Real>(_strength_prop_name)), 30 15 : _pk2_prop_name(_base_name + "pk2"), 31 30 : _pk2(getMaterialPropertyByName<RankTwoTensor>(_pk2_prop_name)), 32 45 : _ce(getMaterialPropertyByName<RankTwoTensor>(_base_name + "ce")) 33 : { 34 15 : }