www.mooseframework.org
Public Member Functions | Private Attributes | List of all members
TensorMechanicsHardeningCutExponential Class Reference

CutExponential hardening The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0 Note that while this is not smooth at internal_parameter = _intnl_0, which can produce bad numerical problems. More...

#include <TensorMechanicsHardeningCutExponential.h>

Inheritance diagram for TensorMechanicsHardeningCutExponential:
[legend]

Public Member Functions

 TensorMechanicsHardeningCutExponential (const InputParameters &parameters)
 
virtual Real value (Real intnl) const override
 
virtual Real derivative (Real intnl) const override
 
virtual std::string modelName () const override
 
void initialize ()
 
void execute ()
 
void finalize ()
 

Private Attributes

Real _val_0
 The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0. More...
 
Real _val_res
 The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0. More...
 
Real _intnl_0
 The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0. More...
 
Real _rate
 The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0. More...
 

Detailed Description

CutExponential hardening The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0 Note that while this is not smooth at internal_parameter = _intnl_0, which can produce bad numerical problems.

Definition at line 27 of file TensorMechanicsHardeningCutExponential.h.

Constructor & Destructor Documentation

◆ TensorMechanicsHardeningCutExponential()

TensorMechanicsHardeningCutExponential::TensorMechanicsHardeningCutExponential ( const InputParameters &  parameters)

Definition at line 34 of file TensorMechanicsHardeningCutExponential.C.

36  : TensorMechanicsHardeningModel(parameters),
37  _val_0(getParam<Real>("value_0")),
38  _val_res(parameters.isParamValid("value_residual") ? getParam<Real>("value_residual") : _val_0),
39  _intnl_0(getParam<Real>("internal_0")),
40  _rate(getParam<Real>("rate"))
41 {
42 }
Real _val_res
The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0.
Real _intnl_0
The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0.
Real _rate
The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0.
TensorMechanicsHardeningModel(const InputParameters &parameters)
Real _val_0
The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0.

Member Function Documentation

◆ derivative()

Real TensorMechanicsHardeningCutExponential::derivative ( Real  intnl) const
overridevirtual

Reimplemented from TensorMechanicsHardeningModel.

Definition at line 55 of file TensorMechanicsHardeningCutExponential.C.

56 {
57  Real x = intnl - _intnl_0;
58  if (x <= 0)
59  return 0;
60  else
61  return -_rate * (_val_0 - _val_res) * std::exp(-_rate * x);
62 }
Real _val_res
The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0.
Real _intnl_0
The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0.
Real _rate
The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0.
Real _val_0
The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0.

◆ execute()

void TensorMechanicsHardeningModel::execute ( )
inherited

Definition at line 35 of file TensorMechanicsHardeningModel.C.

36 {
37 }

◆ finalize()

void TensorMechanicsHardeningModel::finalize ( )
inherited

Definition at line 40 of file TensorMechanicsHardeningModel.C.

41 {
42 }

◆ initialize()

void TensorMechanicsHardeningModel::initialize ( )
inherited

Definition at line 30 of file TensorMechanicsHardeningModel.C.

31 {
32 }

◆ modelName()

std::string TensorMechanicsHardeningCutExponential::modelName ( ) const
overridevirtual

Implements TensorMechanicsHardeningModel.

Definition at line 65 of file TensorMechanicsHardeningCutExponential.C.

66 {
67  return "CutExponential";
68 }

◆ value()

Real TensorMechanicsHardeningCutExponential::value ( Real  intnl) const
overridevirtual

Reimplemented from TensorMechanicsHardeningModel.

Definition at line 45 of file TensorMechanicsHardeningCutExponential.C.

46 {
47  Real x = intnl - _intnl_0;
48  if (x <= 0)
49  return _val_0;
50  else
51  return _val_res + (_val_0 - _val_res) * std::exp(-_rate * x);
52 }
Real _val_res
The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0.
Real _intnl_0
The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0.
Real _rate
The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0.
Real _val_0
The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0.

Member Data Documentation

◆ _intnl_0

Real TensorMechanicsHardeningCutExponential::_intnl_0
private

The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0.

Definition at line 46 of file TensorMechanicsHardeningCutExponential.h.

Referenced by derivative(), and value().

◆ _rate

Real TensorMechanicsHardeningCutExponential::_rate
private

The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0.

Definition at line 49 of file TensorMechanicsHardeningCutExponential.h.

Referenced by derivative(), and value().

◆ _val_0

Real TensorMechanicsHardeningCutExponential::_val_0
private

The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0.

Definition at line 40 of file TensorMechanicsHardeningCutExponential.h.

Referenced by derivative(), and value().

◆ _val_res

Real TensorMechanicsHardeningCutExponential::_val_res
private

The value = _val_res + (val_0 - val_res)*exp(-rate*(internal_parameter - _intnl_0)), for internal_parameter >= _intnl_0, otherwise value = _val_0.

Definition at line 43 of file TensorMechanicsHardeningCutExponential.h.

Referenced by derivative(), and value().


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