https://mooseframework.inl.gov
Loading...
Searching...
No Matches
HEVPEqvPlasticStrainRate.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
11
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
28bool
29HEVPEqvPlasticStrainRate::computeValue(unsigned int qp, Real & val) const
30{
31 val = _h * _flow_rate[qp];
32 return true;
33}
34
35bool
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}
registerMooseObject("SolidMechanicsApp", HEVPEqvPlasticStrainRate)
This user object classs Computes equivalent plastic strain rate.
HEVPEqvPlasticStrainRate(const InputParameters &parameters)
static InputParameters validParams()
virtual bool computeValue(unsigned int, Real &) const
virtual bool computeDerivative(unsigned int, const std::string &, Real &) const
This user object is a pure virtual base classs Derived classes computes internal variable rate and de...
static InputParameters validParams()
const MaterialProperty< Real > & _flow_rate
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)