www.mooseframework.org
HEVPEqvPlasticStrainRate.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 
11 
12 registerMooseObject("SolidMechanicsApp", HEVPEqvPlasticStrainRate);
13 
16 {
18  params.addParam<Real>("h_scaling", 1.0, "Scaling parameter");
19  params.addClassDescription("User Object computing equivalent plastic strain rate");
20  return params;
21 }
22 
24  : HEVPInternalVarRateUOBase(parameters), _h(getParam<Real>("h_scaling"))
25 {
26 }
27 
28 bool
29 HEVPEqvPlasticStrainRate::computeValue(unsigned int qp, Real & val) const
30 {
31  val = _h * _flow_rate[qp];
32  return true;
33 }
34 
35 bool
37  const std::string & coupled_var_name,
38  Real & val) const
39 {
40  val = 0;
41 
42  if (_flow_rate_prop_name == coupled_var_name)
43  val = _h;
44 
45  return true;
46 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
const MaterialProperty< Real > & _flow_rate
static InputParameters validParams()
virtual bool computeDerivative(unsigned int, const std::string &, Real &) const
HEVPEqvPlasticStrainRate(const InputParameters &parameters)
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
registerMooseObject("SolidMechanicsApp", HEVPEqvPlasticStrainRate)
virtual bool computeValue(unsigned int, Real &) const
void addClassDescription(const std::string &doc_string)
This user object classs Computes equivalent plastic strain rate.
This user object is a pure virtual base classs Derived classes computes internal variable rate and de...