www.mooseframework.org
HEVPStrengthUOBase.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 "HEVPStrengthUOBase.h"
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<DiscreteElementUserObject>();
14  params.addParam<std::string>("intvar_prop_name",
15  "Name of internal variable property to "
16  "calculate material resistance: Same as "
17  "internal variable user object");
18  params.addClassDescription("User Object to compute material resistance");
19  return params;
20 }
21 
22 HEVPStrengthUOBase::HEVPStrengthUOBase(const InputParameters & parameters)
23  : DiscreteElementUserObject(parameters),
24  _intvar_prop_name(getParam<std::string>("intvar_prop_name")),
25  _intvar(getMaterialPropertyByName<Real>(_intvar_prop_name))
26 {
27 }
InputParameters validParams< HEVPStrengthUOBase >()
HEVPStrengthUOBase(const InputParameters &parameters)