www.mooseframework.org
HEVPEqvPlasticStrainRate.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 /****************************************************************/
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<HEVPInternalVarRateUOBase>();
14  params.addParam<Real>("h_scaling", 1.0, "Scaling parameter");
15  params.addClassDescription("User Object computing equivalent plastic strain rate");
16  return params;
17 }
18 
19 HEVPEqvPlasticStrainRate::HEVPEqvPlasticStrainRate(const InputParameters & parameters)
20  : HEVPInternalVarRateUOBase(parameters), _h(getParam<Real>("h_scaling"))
21 {
22 }
23 
24 bool
25 HEVPEqvPlasticStrainRate::computeValue(unsigned int qp, Real & val) const
26 {
27  val = _h * _flow_rate[qp];
28  return true;
29 }
30 
31 bool
33  const std::string & coupled_var_name,
34  Real & val) const
35 {
36  val = 0;
37 
38  if (_flow_rate_prop_name == coupled_var_name)
39  val = _h;
40 
41  return true;
42 }
virtual bool computeValue(unsigned int, Real &) const
const MaterialProperty< Real > & _flow_rate
HEVPEqvPlasticStrainRate(const InputParameters &parameters)
virtual bool computeDerivative(unsigned int, const std::string &, Real &) const
InputParameters validParams< HEVPInternalVarRateUOBase >()
InputParameters validParams< HEVPEqvPlasticStrainRate >()
This user object is a pure virtual base classs Derived classes computes internal variable rate and de...