www.mooseframework.org
Public Member Functions | Protected Attributes | List of all members
HEVPLinearHardening Class Reference

This user object classs Computes linear hardening. More...

#include <HEVPLinearHardening.h>

Inheritance diagram for HEVPLinearHardening:
[legend]

Public Member Functions

 HEVPLinearHardening (const InputParameters &parameters)
 
virtual bool computeValue (unsigned int, Real &) const
 
virtual bool computeDerivative (unsigned int, const std::string &, Real &) const
 

Protected Attributes

Real _sig0
 
Real _slope
 
std::string _intvar_prop_name
 
const MaterialProperty< Real > & _intvar
 

Detailed Description

This user object classs Computes linear hardening.

Definition at line 24 of file HEVPLinearHardening.h.

Constructor & Destructor Documentation

◆ HEVPLinearHardening()

HEVPLinearHardening::HEVPLinearHardening ( const InputParameters &  parameters)

Definition at line 25 of file HEVPLinearHardening.C.

26  : HEVPStrengthUOBase(parameters),
27  _sig0(getParam<Real>("yield_stress")),
28  _slope(getParam<Real>("slope"))
29 {
30 }
HEVPStrengthUOBase(const InputParameters &parameters)

Member Function Documentation

◆ computeDerivative()

bool HEVPLinearHardening::computeDerivative ( unsigned int  ,
const std::string &  coupled_var_name,
Real &  val 
) const
virtual

Implements HEVPStrengthUOBase.

Definition at line 40 of file HEVPLinearHardening.C.

43 {
44  val = 0;
45 
46  if (_intvar_prop_name == coupled_var_name)
47  val = _slope;
48 
49  return true;
50 }
std::string _intvar_prop_name

◆ computeValue()

bool HEVPLinearHardening::computeValue ( unsigned int  qp,
Real &  val 
) const
virtual

Implements HEVPStrengthUOBase.

Definition at line 33 of file HEVPLinearHardening.C.

34 {
35  val = _sig0 + _slope * _intvar[qp];
36  return true;
37 }
const MaterialProperty< Real > & _intvar

Member Data Documentation

◆ _intvar

const MaterialProperty<Real>& HEVPStrengthUOBase::_intvar
protectedinherited

◆ _intvar_prop_name

std::string HEVPStrengthUOBase::_intvar_prop_name
protectedinherited

◆ _sig0

Real HEVPLinearHardening::_sig0
protected

Definition at line 33 of file HEVPLinearHardening.h.

Referenced by computeValue().

◆ _slope

Real HEVPLinearHardening::_slope
protected

Definition at line 34 of file HEVPLinearHardening.h.

Referenced by computeDerivative(), and computeValue().


The documentation for this class was generated from the following files: