www.mooseframework.org
HEVPFlowRateUOBase.C
Go to the documentation of this file.
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 
13 
14 InputParameters
16 {
17  InputParameters params = DiscreteElementUserObject::validParams();
18  params.addParam<std::string>(
19  "strength_prop_name",
20  "Name of strength property: Same as strength user object specified in input file");
21  params.addParam<std::string>("base_name", "Base name of tensor properties to fetch");
22  params.addClassDescription("User object to evaluate flow rate");
23 
24  return params;
25 }
26 
27 HEVPFlowRateUOBase::HEVPFlowRateUOBase(const InputParameters & parameters)
28  : DiscreteElementUserObject(parameters),
29  _strength_prop_name(getParam<std::string>("strength_prop_name")),
30  _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
31  _strength(getMaterialPropertyByName<Real>(_strength_prop_name)),
32  _pk2_prop_name(_base_name + "pk2"),
33  _pk2(getMaterialPropertyByName<RankTwoTensor>(_pk2_prop_name)),
34  _ce(getMaterialPropertyByName<RankTwoTensor>(_base_name + "ce"))
35 {
36 }
defineLegacyParams
defineLegacyParams(HEVPFlowRateUOBase)
HEVPFlowRateUOBase.h
HEVPFlowRateUOBase::HEVPFlowRateUOBase
HEVPFlowRateUOBase(const InputParameters &parameters)
Definition: HEVPFlowRateUOBase.C:27
HEVPFlowRateUOBase
This user object is a pure virtual base classs Derived classes computes flow rate,...
Definition: HEVPFlowRateUOBase.h:25
validParams
InputParameters validParams()
HEVPFlowRateUOBase::validParams
static InputParameters validParams()
Definition: HEVPFlowRateUOBase.C:15
RankTwoTensorTempl
Definition: ACGrGrElasticDrivingForce.h:17