https://mooseframework.inl.gov
HEVPEqvPlasticStrain.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 "HEVPEqvPlasticStrain.h"
11 
12 registerMooseObject("SolidMechanicsApp", HEVPEqvPlasticStrain);
13 
16 {
18  params.addClassDescription("User Object to integrate equivalent plastic strain");
19  return params;
20 }
21 
23  : HEVPInternalVarUOBase(parameters)
24 {
25 }
26 
27 bool
28 HEVPEqvPlasticStrain::computeValue(unsigned int qp, Real dt, Real & val) const
29 {
30  val = _this_old[qp] + _intvar_rate[qp] * dt;
31  return true;
32 }
33 
34 bool
36  Real dt,
37  const std::string & coupled_var_name,
38  Real & val) const
39 {
40  val = 0;
41 
42  if (_intvar_rate_prop_name == coupled_var_name)
43  val = dt;
44 
45  return true;
46 }
const MaterialProperty< Real > & _intvar_rate
HEVPEqvPlasticStrain(const InputParameters &parameters)
virtual bool computeDerivative(unsigned int, Real, const std::string &, Real &) const
This user object is a pure virtual base classs Derived classes integrate internal variables Currently...
static InputParameters validParams()
registerMooseObject("SolidMechanicsApp", HEVPEqvPlasticStrain)
const MaterialProperty< Real > & _this_old
void addClassDescription(const std::string &doc_string)
virtual bool computeValue(unsigned int, Real, Real &) const
This user object classs Computes equivalent plastic strain.
static InputParameters validParams()