www.mooseframework.org
HEVPFlowRateUOBase.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #include "HEVPFlowRateUOBase.h"
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<DiscreteElementUserObject>();
14  params.addParam<std::string>(
15  "strength_prop_name",
16  "Name of strength property: Same as strength user object specified in input file");
17  params.addParam<std::string>("base_name", "Base name of tensor properties to fetch");
18  params.addClassDescription("User object to evaluate flow rate");
19 
20  return params;
21 }
22 
23 HEVPFlowRateUOBase::HEVPFlowRateUOBase(const InputParameters & parameters)
24  : DiscreteElementUserObject(parameters),
25  _strength_prop_name(getParam<std::string>("strength_prop_name")),
26  _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
27  _strength(getMaterialPropertyByName<Real>(_strength_prop_name)),
28  _pk2_prop_name(_base_name + "pk2"),
29  _pk2(getMaterialPropertyByName<RankTwoTensor>(_pk2_prop_name)),
30  _ce(getMaterialPropertyByName<RankTwoTensor>(_base_name + "ce"))
31 {
32 }
InputParameters validParams< HEVPFlowRateUOBase >()
HEVPFlowRateUOBase(const InputParameters &parameters)