https://mooseframework.inl.gov
Loading...
Searching...
No Matches
HEVPFlowRateUOBase.C
Go to the documentation of this file.
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 "HEVPFlowRateUOBase.h"
11
14{
16 params.addParam<std::string>(
17 "strength_prop_name",
18 "Name of strength property: Same as strength user object specified in input file");
19 params.addParam<std::string>("base_name", "Base name of tensor properties to fetch");
20 params.addClassDescription("User object to evaluate flow rate");
21
22 return params;
23}
24
26 : DiscreteElementUserObject(parameters),
27 _strength_prop_name(getParam<std::string>("strength_prop_name")),
28 _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
29 _strength(getMaterialPropertyByName<Real>(_strength_prop_name)),
30 _pk2_prop_name(_base_name + "pk2"),
31 _pk2(getMaterialPropertyByName<RankTwoTensor>(_pk2_prop_name)),
32 _ce(getMaterialPropertyByName<RankTwoTensor>(_base_name + "ce"))
33{
34}
static InputParameters validParams()
static InputParameters validParams()
HEVPFlowRateUOBase(const InputParameters &parameters)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)