www.mooseframework.org
HEVPEqvPlasticStrain.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 "HEVPEqvPlasticStrain.h"
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<HEVPInternalVarUOBase>();
14  params.addClassDescription("User Object to integrate equivalent plastic strain");
15  return params;
16 }
17 
18 HEVPEqvPlasticStrain::HEVPEqvPlasticStrain(const InputParameters & parameters)
19  : HEVPInternalVarUOBase(parameters)
20 {
21 }
22 
23 bool
24 HEVPEqvPlasticStrain::computeValue(unsigned int qp, Real dt, Real & val) const
25 {
26  val = _this_old[qp] + _intvar_rate[qp] * dt;
27  return true;
28 }
29 
30 bool
32  Real dt,
33  const std::string & coupled_var_name,
34  Real & val) const
35 {
36  val = 0;
37 
38  if (_intvar_rate_prop_name == coupled_var_name)
39  val = dt;
40 
41  return true;
42 }
const MaterialProperty< Real > & _intvar_rate
virtual bool computeDerivative(unsigned int, Real, const std::string &, Real &) const
HEVPEqvPlasticStrain(const InputParameters &parameters)
InputParameters validParams< HEVPEqvPlasticStrain >()
This user object is a pure virtual base classs Derived classes integrate internal variables Currently...
virtual bool computeValue(unsigned int, Real, Real &) const
const MaterialProperty< Real > & _this_old
InputParameters validParams< HEVPInternalVarUOBase >()